Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 1 | # 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 Hijikata | 62dbeaf | 2020-12-10 04:15:51 | [diff] [blame] | 5 | import("//build/config/chromeos/ui_mode.gni") |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 6 | import("//mojo/public/tools/bindings/mojom.gni") |
| 7 | |
Hirokazu Honda | 12eaf9c | 2017-12-12 02:40:16 | [diff] [blame] | 8 | # 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 Hijikata | 62dbeaf | 2020-12-10 04:15:51 | [diff] [blame] | 12 | if (is_chromeos_ash) { |
Miyoung Shin | 314259e | 2019-08-05 06:41:48 | [diff] [blame] | 13 | mojom("mojom") { |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 14 | sources = [ |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 15 | "app.mojom", |
Melissa Zhang | 12eff4b6 | 2019-01-22 23:42:08 | [diff] [blame] | 16 | "app_permissions.mojom", |
Kazuki Takise | a990f25a | 2021-03-09 03:32:06 | [diff] [blame] | 17 | "compatibility_mode.mojom", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 18 | "file_system.mojom", |
Satoshi Niwa | 3a908cdc | 2018-08-22 07:27:18 | [diff] [blame] | 19 | "intent_common.mojom", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 20 | "intent_helper.mojom", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 21 | "rotation_lock.mojom", |
| 22 | "scale_factor.mojom", |
Jeffrey Kardatzke | ebed2efde | 2018-01-22 18:55:06 | [diff] [blame] | 23 | "screen_capture.mojom", |
Ryo Hashimoto | 471b6f8 | 2020-07-16 04:47:24 | [diff] [blame] | 24 | "sensor.mojom", |
| 25 | "sensor_service.mojom", |
Prameet Shah | 1049153 | 2020-11-11 18:55:30 | [diff] [blame] | 26 | "sharesheet.mojom", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 27 | "storage_manager.mojom", |
Abhishek Bhardwaj | 2dd044b | 2018-01-27 16:53:06 | [diff] [blame] | 28 | "timer.mojom", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 29 | "tracing.mojom", |
| 30 | "tts.mojom", |
Vincent Palatin | 63f4e4e | 2017-12-13 16:58:43 | [diff] [blame] | 31 | "usb_host.mojom", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 32 | "volume_mounter.mojom", |
Abhishek Bhardwaj | d344b78 | 2018-03-13 01:28:13 | [diff] [blame] | 33 | "wake_lock.mojom", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 34 | "wallpaper.mojom", |
Tim Sergeant | 19be9ea | 2021-05-05 16:44:59 | [diff] [blame] | 35 | "webapk.mojom", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 36 | ] |
| 37 | |
| 38 | public_deps = [ |
Yao Li | 2b46d6f | 2021-11-29 21:32:22 | [diff] [blame] | 39 | "//ash/components/arc/mojom:camera_intent", |
Yao Li | 243e5e4a | 2021-11-29 23:18:02 | [diff] [blame] | 40 | "//ash/components/arc/mojom:media", |
Yao Li | 2b46d6f | 2021-11-29 21:32:22 | [diff] [blame] | 41 | "//ash/components/arc/mojom:notifications", |
| 42 | "//ash/components/arc/mojom:oemcrypto", |
Gwendal Grignou | 2f50bf6b | 2021-01-29 23:10:46 | [diff] [blame] | 43 | "//chromeos/components/sensors/mojom:mojom", |
Jeevan Shikaram | 1ba631a | 2020-11-07 03:57:41 | [diff] [blame] | 44 | "//components/payments/mojom:mojom", |
Miyoung Shin | 571d361 | 2019-07-31 01:14:38 | [diff] [blame] | 45 | "//media/capture/video/chromeos/mojom:cros_camera", |
Oksana Zhuravlova | 015487b3 | 2018-03-09 06:58:22 | [diff] [blame] | 46 | "//mojo/public/mojom/base", |
Julie Jeongeun Kim | e454f260 | 2020-04-30 05:20:07 | [diff] [blame] | 47 | "//printing/mojom", |
Alex Gough | fe81df6 | 2021-08-26 02:22:33 | [diff] [blame] | 48 | "//sandbox/policy/mojom", |
Donna Wu | 4dc9df3 | 2019-05-20 03:56:21 | [diff] [blame] | 49 | "//services/device/public/mojom:usb", |
Becca Hughes | d92a8619 | 2018-10-05 17:49:09 | [diff] [blame] | 50 | "//services/media_session/public/mojom", |
Willie Koomson | 1b9a3a4 | 2018-10-30 19:33:32 | [diff] [blame] | 51 | "//services/resource_coordinator/public/mojom", |
Jeevan Shikaram | 1ba631a | 2020-11-07 03:57:41 | [diff] [blame] | 52 | "//third_party/blink/public/mojom:android_mojo_bindings", |
David Tseng | b5752b2 | 2021-05-18 02:49:34 | [diff] [blame] | 53 | "//ui/accessibility/mojom:ax_assistant_mojom", |
Miyoung Shin | 87943f50 | 2019-07-26 13:31:58 | [diff] [blame] | 54 | "//ui/gfx/geometry/mojom", |
Satoshi Niwa | 3a908cdc | 2018-08-22 07:27:18 | [diff] [blame] | 55 | "//url/mojom:url_mojom_gurl", |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 56 | ] |
Ken Rockot | fe05d15 | 2020-09-15 22:34:54 | [diff] [blame] | 57 | |
| 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 Rockot | fe05d15 | 2020-09-15 22:34:54 | [diff] [blame] | 71 | 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 Rockot | fe05d15 | 2020-09-15 22:34:54 | [diff] [blame] | 84 | 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 Rockot | fe05d15 | 2020-09-15 22:34:54 | [diff] [blame] | 107 | mojom = "arc.mojom.ClockId" |
| 108 | cpp = "::clockid_t" |
| 109 | }, |
| 110 | ] |
Yao Li | e5107bf | 2021-11-17 23:44:53 | [diff] [blame] | 111 | 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 Rockot | fe05d15 | 2020-09-15 22:34:54 | [diff] [blame] | 115 | }, |
| 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 Li | e5107bf | 2021-11-17 23:44:53 | [diff] [blame] | 127 | 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 Rockot | fe05d15 | 2020-09-15 22:34:54 | [diff] [blame] | 133 | }, |
| 134 | ] |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 135 | } |
Peng Huang | 417f0cf7 | 2017-11-20 20:06:16 | [diff] [blame] | 136 | } |