blob: 01835d9546f8f148b5045016b3ea49fbdfa09ca1 [file] [log] [blame]
Peng Huang417f0cf72017-11-20 20:06:161# Copyright 2017 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Yuta Hijikata62dbeaf2020-12-10 04:15:515import("//build/config/chromeos/ui_mode.gni")
Peng Huang417f0cf72017-11-20 20:06:166import("//mojo/public/tools/bindings/mojom.gni")
7
Hirokazu Honda12eaf9c2017-12-12 02:40:168# This needs to be conditionally-compiled since the typemaps are
9# unconditionally-included from //mojo/public/tools/bindings/mojom.gni. The
10# inclusion is done through read_file(), which does not respect the global
11# defines for GN, so it itself cannot use the "is_chromeos" variable.
Yuta Hijikata62dbeaf2020-12-10 04:15:5112if (is_chromeos_ash) {
Miyoung Shin314259e2019-08-05 06:41:4813 mojom("mojom") {
Peng Huang417f0cf72017-11-20 20:06:1614 sources = [
Peng Huang417f0cf72017-11-20 20:06:1615 "app.mojom",
Melissa Zhang12eff4b62019-01-22 23:42:0816 "app_permissions.mojom",
Kazuki Takisea990f25a2021-03-09 03:32:0617 "compatibility_mode.mojom",
Peng Huang417f0cf72017-11-20 20:06:1618 "file_system.mojom",
Satoshi Niwa3a908cdc2018-08-22 07:27:1819 "intent_common.mojom",
Peng Huang417f0cf72017-11-20 20:06:1620 "intent_helper.mojom",
Peng Huang417f0cf72017-11-20 20:06:1621 "rotation_lock.mojom",
22 "scale_factor.mojom",
Jeffrey Kardatzkeebed2efde2018-01-22 18:55:0623 "screen_capture.mojom",
Ryo Hashimoto471b6f82020-07-16 04:47:2424 "sensor.mojom",
25 "sensor_service.mojom",
Prameet Shah10491532020-11-11 18:55:3026 "sharesheet.mojom",
Peng Huang417f0cf72017-11-20 20:06:1627 "storage_manager.mojom",
Abhishek Bhardwaj2dd044b2018-01-27 16:53:0628 "timer.mojom",
Peng Huang417f0cf72017-11-20 20:06:1629 "tracing.mojom",
30 "tts.mojom",
Vincent Palatin63f4e4e2017-12-13 16:58:4331 "usb_host.mojom",
Peng Huang417f0cf72017-11-20 20:06:1632 "volume_mounter.mojom",
Abhishek Bhardwajd344b782018-03-13 01:28:1333 "wake_lock.mojom",
Peng Huang417f0cf72017-11-20 20:06:1634 "wallpaper.mojom",
Tim Sergeant19be9ea2021-05-05 16:44:5935 "webapk.mojom",
Peng Huang417f0cf72017-11-20 20:06:1636 ]
37
38 public_deps = [
Yao Li2b46d6f2021-11-29 21:32:2239 "//ash/components/arc/mojom:camera_intent",
Yao Li243e5e4a2021-11-29 23:18:0240 "//ash/components/arc/mojom:media",
Yao Li2b46d6f2021-11-29 21:32:2241 "//ash/components/arc/mojom:notifications",
42 "//ash/components/arc/mojom:oemcrypto",
Gwendal Grignou2f50bf6b2021-01-29 23:10:4643 "//chromeos/components/sensors/mojom:mojom",
Jeevan Shikaram1ba631a2020-11-07 03:57:4144 "//components/payments/mojom:mojom",
Miyoung Shin571d3612019-07-31 01:14:3845 "//media/capture/video/chromeos/mojom:cros_camera",
Oksana Zhuravlova015487b32018-03-09 06:58:2246 "//mojo/public/mojom/base",
Julie Jeongeun Kime454f2602020-04-30 05:20:0747 "//printing/mojom",
Alex Goughfe81df62021-08-26 02:22:3348 "//sandbox/policy/mojom",
Donna Wu4dc9df32019-05-20 03:56:2149 "//services/device/public/mojom:usb",
Becca Hughesd92a86192018-10-05 17:49:0950 "//services/media_session/public/mojom",
Willie Koomson1b9a3a42018-10-30 19:33:3251 "//services/resource_coordinator/public/mojom",
Jeevan Shikaram1ba631a2020-11-07 03:57:4152 "//third_party/blink/public/mojom:android_mojo_bindings",
David Tsengb5752b22021-05-18 02:49:3453 "//ui/accessibility/mojom:ax_assistant_mojom",
Miyoung Shin87943f502019-07-26 13:31:5854 "//ui/gfx/geometry/mojom",
Satoshi Niwa3a908cdc2018-08-22 07:27:1855 "//url/mojom:url_mojom_gurl",
Peng Huang417f0cf72017-11-20 20:06:1656 ]
Ken Rockotfe05d152020-09-15 22:34:5457
58 cpp_typemaps = [
59 {
60 types = [
61 {
62 mojom = "arc.mojom.AppDiscoveryRequestState"
63 cpp = "::arc::ArcPlayStoreSearchRequestState"
64 },
65 ]
66 traits_headers = [ "app_mojom_traits.h" ]
67 },
68 {
69 types = [
70 {
Ken Rockotfe05d152020-09-15 22:34:5471 mojom = "arc.mojom.ChangeType"
72 cpp = "::storage::WatcherManager::ChangeType"
73 },
74 ]
75 traits_headers =
76 [ "//components/arc/file_system/file_system_mojom_traits.h" ]
77 traits_sources =
78 [ "//components/arc/file_system/file_system_mojom_traits.cc" ]
79 traits_public_deps = [ "//storage/browser" ]
80 },
81 {
82 types = [
83 {
Ken Rockotfe05d152020-09-15 22:34:5484 mojom = "arc.mojom.IntentFilter"
85 cpp = "::arc::IntentFilter"
86 move_only = true
87 },
88 {
89 mojom = "arc.mojom.AuthorityEntry"
90 cpp = "::arc::IntentFilter::AuthorityEntry"
91 move_only = true
92 },
93 {
94 mojom = "arc.mojom.PatternMatcher"
95 cpp = "::arc::IntentFilter::PatternMatcher"
96 move_only = true
97 },
98 ]
99 traits_headers =
100 [ "//components/arc/intent_helper/intent_filter_mojom_traits.h" ]
101 traits_sources =
102 [ "//components/arc/intent_helper/intent_filter_mojom_traits.cc" ]
103 },
104 {
105 types = [
106 {
Ken Rockotfe05d152020-09-15 22:34:54107 mojom = "arc.mojom.ClockId"
108 cpp = "::clockid_t"
109 },
110 ]
Yao Lie5107bf2021-11-17 23:44:53111 traits_headers =
112 [ "//ash/components/arc/timer/arc_timer_mojom_traits.h" ]
113 traits_sources =
114 [ "//ash/components/arc/timer/arc_timer_mojom_traits.cc" ]
Ken Rockotfe05d152020-09-15 22:34:54115 },
116 {
117 types = [
118 {
119 mojom = "arc.mojom.DeviceType"
120 cpp = "::chromeos::DeviceType"
121 },
122 {
123 mojom = "arc.mojom.MountEvent"
124 cpp = "::chromeos::disks::DiskMountManager::MountEvent"
125 },
126 ]
Yao Lie5107bf2021-11-17 23:44:53127 traits_headers = [
128 "//ash/components/arc/volume_mounter/volume_mounter_mojom_traits.h",
129 ]
130 traits_sources = [
131 "//ash/components/arc/volume_mounter/volume_mounter_mojom_traits.cc",
132 ]
Ken Rockotfe05d152020-09-15 22:34:54133 },
134 ]
Peng Huang417f0cf72017-11-20 20:06:16135 }
Peng Huang417f0cf72017-11-20 20:06:16136}