Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 1 | # Copyright 2018 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 | |
| 5 | import("//mojo/public/tools/bindings/mojom.gni") |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 6 | import("//third_party/blink/public/public_features.gni") |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 7 | |
Michael Thiessen | 909ba03 | 2019-03-26 23:47:43 | [diff] [blame] | 8 | if (is_android) { |
| 9 | import("//build/config/android/config.gni") |
| 10 | } |
| 11 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 12 | # This target includes all mojom interfaces which can be used from |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 13 | # renderer/platform. In particular these mojom interfaces can't use types that |
| 14 | # are typemapped to a type in renderer/core. |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 15 | mojom("mojom_platform") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 16 | generate_java = true |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 17 | sources = [ |
John Delaney | 74efc1d | 2018-12-20 18:29:18 | [diff] [blame] | 18 | "ad_tagging/ad_frame.mojom", |
David Bokan | d7c4347 | 2019-10-26 04:38:14 | [diff] [blame] | 19 | "agents/agent_metrics.mojom", |
Julie Jeongeun Kim | 0abed30c | 2019-03-04 12:18:20 | [diff] [blame] | 20 | "app_banner/app_banner.mojom", |
Staphany Park | 5e095488 | 2019-01-14 20:18:28 | [diff] [blame] | 21 | "appcache/appcache.mojom", |
| 22 | "appcache/appcache_info.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 23 | "array_buffer/array_buffer_contents.mojom", |
Ken Rockot | 26e4e80 | 2018-07-31 15:03:33 | [diff] [blame] | 24 | "associated_interfaces/associated_interfaces.mojom", |
Julie Jeongeun Kim | daa631e | 2019-02-21 14:17:25 | [diff] [blame] | 25 | "autoplay/autoplay.mojom", |
Richard Li | 912523f | 2018-12-13 08:10:40 | [diff] [blame] | 26 | "background_fetch/background_fetch.mojom", |
Julie Jeongeun Kim | 781703f | 2019-03-09 02:49:10 | [diff] [blame] | 27 | "background_sync/background_sync.mojom", |
Julie Jeongeun Kim | 78e772b | 2019-03-08 23:21:59 | [diff] [blame] | 28 | "badging/badging.mojom", |
Oksana Zhuravlova | fee097c | 2019-07-26 17:01:30 | [diff] [blame] | 29 | "browser_interface_broker.mojom", |
Richard Li | bcc09eb | 2018-11-30 15:00:35 | [diff] [blame] | 30 | "cache_storage/cache_storage.mojom", |
Abhijeet Kandalkar | 849ceff | 2019-02-28 17:37:29 | [diff] [blame] | 31 | "choosers/color_chooser.mojom", |
Gyuyoung Kim | 5f3da84 | 2019-06-19 08:07:57 | [diff] [blame] | 32 | "choosers/date_time_chooser.mojom", |
Kent Tamura | c260c9a | 2018-09-14 09:10:56 | [diff] [blame] | 33 | "choosers/file_chooser.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 34 | "clipboard/clipboard.mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 35 | "commit_result/commit_result.mojom", |
Finnur Thorarinsson | 522d378 | 2018-12-05 02:17:43 | [diff] [blame] | 36 | "contacts/contacts_manager.mojom", |
Rayan Kanso | e78e94a | 2019-06-20 13:29:08 | [diff] [blame] | 37 | "content_index/content_index.mojom", |
Victor Costan | 7184272a | 2018-05-15 13:17:43 | [diff] [blame] | 38 | "cookie_store/cookie_store.mojom", |
Yuzu Saijo | 2d12ef9 | 2018-08-21 04:52:07 | [diff] [blame] | 39 | "crash/crash_memory_metrics_reporter.mojom", |
Findit | e6ed5abb | 2019-07-03 20:33:59 | [diff] [blame] | 40 | "credentialmanager/credential_manager.mojom", |
Hiroki Nakagawa | 792fcc3 | 2018-12-06 06:50:57 | [diff] [blame] | 41 | "csp/content_security_policy.mojom", |
Leon Han | 797b213 | 2019-01-20 12:43:18 | [diff] [blame] | 42 | "devtools/console_message.mojom", |
Hiroki Nakagawa | 7c0a7e7 | 2018-12-10 04:31:29 | [diff] [blame] | 43 | "devtools/devtools_agent.mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 44 | "devtools/devtools_frontend.mojom", |
Marijn Kruisselbrink | 4712c33 | 2018-06-13 19:06:59 | [diff] [blame] | 45 | "dom_storage/session_storage_namespace.mojom", |
Marijn Kruisselbrink | f9a9e76 | 2018-06-07 18:57:12 | [diff] [blame] | 46 | "dom_storage/storage_area.mojom", |
Marijn Kruisselbrink | 4712c33 | 2018-06-13 19:06:59 | [diff] [blame] | 47 | "dom_storage/storage_partition_service.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 48 | "feature_policy/feature_policy.mojom", |
Ian Clelland | 82c5542c | 2019-09-06 15:35:45 | [diff] [blame] | 49 | "feature_policy/feature_policy_feature.mojom", |
| 50 | "feature_policy/policy_value.mojom", |
Richard Li | e689995 | 2018-11-30 08:42:00 | [diff] [blame] | 51 | "fetch/fetch_api_request.mojom", |
Han Leon | 6bbe791 | 2018-07-31 01:13:46 | [diff] [blame] | 52 | "fetch/fetch_api_response.mojom", |
Jeremy Roman | 89a4d0d | 2018-04-26 19:05:28 | [diff] [blame] | 53 | "file/file_utilities.mojom", |
Adithya Srinivasan | 0c72ff0 | 2018-08-13 19:47:29 | [diff] [blame] | 54 | "filesystem/file_system.mojom", |
Findit | e6ed5abb | 2019-07-03 20:33:59 | [diff] [blame] | 55 | "frame/document_interface_broker.mojom", |
Rakina Zata Amni | acf4049 | 2018-05-08 22:59:33 | [diff] [blame] | 56 | "frame/find_in_page.mojom", |
Mario Sanchez Prada | b81acd7c | 2019-08-13 08:59:33 | [diff] [blame] | 57 | "frame/frame.mojom", |
Findit | e6ed5abb | 2019-07-03 20:33:59 | [diff] [blame] | 58 | "frame/frame_host_test_interface.mojom", |
Dave Tapuska | a418951 | 2019-10-15 20:27:34 | [diff] [blame] | 59 | "frame/fullscreen.mojom", |
Dave Tapuska | d6703f91 | 2019-01-31 23:13:11 | [diff] [blame] | 60 | "frame/lifecycle.mojom", |
Andy Paicu | c93d3086 | 2018-10-10 15:33:45 | [diff] [blame] | 61 | "frame/navigation_initiator.mojom", |
Julie Jeongeun Kim | 162c2d28 | 2019-03-13 07:23:52 | [diff] [blame] | 62 | "geolocation/geolocation_service.mojom", |
Matt Reynolds | 3ece5aa4 | 2019-06-10 22:14:34 | [diff] [blame] | 63 | "hid/hid.mojom", |
Julie Jeongeun Kim | ea2e19a | 2019-03-13 09:59:49 | [diff] [blame] | 64 | "hyphenation/hyphenation.mojom", |
Julie Jeongeun Kim | 9f06c5a | 2019-03-21 07:27:31 | [diff] [blame] | 65 | "idle/idle_manager.mojom", |
Gyuyoung Kim | e370bdb | 2019-06-28 00:31:52 | [diff] [blame] | 66 | "image_downloader/image_downloader.mojom", |
Julie Jeongeun Kim | 0cecf4b | 2019-03-13 11:52:35 | [diff] [blame] | 67 | "insecure_input/insecure_input_service.mojom", |
Julie Jeongeun Kim | 4140119 | 2019-03-11 13:02:32 | [diff] [blame] | 68 | "keyboard_lock/keyboard_lock.mojom", |
Dmitry Gozman | d016d88 | 2018-04-20 01:55:24 | [diff] [blame] | 69 | "leak_detector/leak_detector.mojom", |
Bill Budge | 24c1dc1a | 2018-09-25 18:51:32 | [diff] [blame] | 70 | "loader/code_cache.mojom", |
Hiroki Nakagawa | 686d5f5 | 2019-06-27 05:12:43 | [diff] [blame] | 71 | "loader/fetch_client_settings_object.mojom", |
Lu Chen | 5bec7a30 | 2018-06-26 18:52:32 | [diff] [blame] | 72 | "loader/navigation_predictor.mojom", |
Ryan Sturm | c65dbe4 | 2018-05-31 20:37:04 | [diff] [blame] | 73 | "loader/pause_subresource_loading_handle.mojom", |
Tarun Bansal | dc97029 | 2018-07-12 00:02:58 | [diff] [blame] | 74 | "loader/previews_resource_loading_hints.mojom", |
Kinuko Yasuda | 4be168c | 2019-05-16 05:14:33 | [diff] [blame] | 75 | "loader/request_context_frame_type.mojom", |
Hiroki Nakagawa | 75375834 | 2018-12-27 04:13:49 | [diff] [blame] | 76 | "loader/url_loader_factory_bundle.mojom", |
Julie Jeongeun Kim | 4a064a9 | 2019-03-13 10:17:45 | [diff] [blame] | 77 | "locks/lock_manager.mojom", |
Dmitry Gozman | 88ca5a99 | 2018-05-18 00:13:33 | [diff] [blame] | 78 | "manifest/display_mode.mojom", |
| 79 | "manifest/manifest.mojom", |
| 80 | "manifest/manifest_manager.mojom", |
Miyoung Shin | 0de5d9b | 2019-05-06 05:42:34 | [diff] [blame] | 81 | "manifest/manifest_observer.mojom", |
Antonio Gomes | afe481a | 2019-07-18 01:32:52 | [diff] [blame] | 82 | "mediastream/aec_dump.mojom", |
Guido Urdaneta | d45f3ed6 | 2019-01-16 13:48:18 | [diff] [blame] | 83 | "mediastream/media_devices.mojom", |
Guido Urdaneta | 73fa663 | 2019-01-14 18:46:26 | [diff] [blame] | 84 | "mediastream/media_stream.mojom", |
Julie Jeongeun Kim | 97410ad | 2019-02-27 08:04:51 | [diff] [blame] | 85 | "mime/mime_registry.mojom", |
Marijn Kruisselbrink | 2d84803 | 2019-05-07 19:38:38 | [diff] [blame] | 86 | "native_file_system/native_file_system_directory_handle.mojom", |
| 87 | "native_file_system/native_file_system_error.mojom", |
| 88 | "native_file_system/native_file_system_file_handle.mojom", |
Olivier Yiptong | 74cf65e4 | 2019-06-22 13:51:41 | [diff] [blame] | 89 | "native_file_system/native_file_system_file_writer.mojom", |
Marijn Kruisselbrink | 2d84803 | 2019-05-07 19:38:38 | [diff] [blame] | 90 | "native_file_system/native_file_system_manager.mojom", |
| 91 | "native_file_system/native_file_system_transfer_token.mojom", |
Han Leon | 96d6b6e8c2 | 2018-09-06 06:21:06 | [diff] [blame] | 92 | "notifications/notification.mojom", |
Julie Jeongeun Kim | 5413450 | 2019-03-22 10:40:13 | [diff] [blame] | 93 | "notifications/notification_service.mojom", |
Julie Jeongeun Kim | 08999f29 | 2019-02-27 23:30:41 | [diff] [blame] | 94 | "oom_intervention/oom_intervention.mojom", |
Becca Hughes | 6fe54e43 | 2018-06-09 04:18:56 | [diff] [blame] | 95 | "page/display_cutout.mojom", |
Michael Thiessen | 07c444c | 2019-04-26 03:53:11 | [diff] [blame] | 96 | "page/spatial_navigation.mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 97 | "payments/payment_app.mojom", |
Antonio Gomes | 37d645f9 | 2019-10-23 03:50:08 | [diff] [blame] | 98 | "peerconnection/peer_connection_tracker.mojom", |
Julie Jeongeun Kim | 162c2d28 | 2019-03-13 07:23:52 | [diff] [blame] | 99 | "permissions/permission.mojom", |
| 100 | "permissions/permission_status.mojom", |
Mounir Lamouri | 99ba5a6 | 2019-02-12 01:27:47 | [diff] [blame] | 101 | "picture_in_picture/picture_in_picture.mojom", |
Jeremy Roman | b702474 | 2018-06-18 22:00:22 | [diff] [blame] | 102 | "plugins/plugin_registry.mojom", |
mark a. foltz | 6bbe59f | 2018-07-24 20:06:24 | [diff] [blame] | 103 | "presentation/presentation.mojom", |
Mario Sanchez Prada | 683f2f4a | 2019-05-07 12:41:46 | [diff] [blame] | 104 | "push_messaging/push_messaging.mojom", |
Mario Sanchez Prada | d299011 | 2019-05-07 08:13:49 | [diff] [blame] | 105 | "push_messaging/push_messaging_status.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 106 | "quota/quota_dispatcher_host.mojom", |
| 107 | "quota/quota_types.mojom", |
Leon Han | 075e0b3 | 2018-11-06 07:59:44 | [diff] [blame] | 108 | "referrer.mojom", |
Leon Han | f4003a16 | 2019-01-28 05:31:58 | [diff] [blame] | 109 | "renderer_preference_watcher.mojom", |
Leon Han | c819dc6 | 2019-01-28 04:30:19 | [diff] [blame] | 110 | "renderer_preferences.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 111 | "reporting/reporting.mojom", |
Staphany Park | afda6dd7 | 2019-09-02 08:51:49 | [diff] [blame] | 112 | "screen_enumeration/screen_enumeration.mojom", |
Hiroki Nakagawa | 4b072c6 | 2018-11-07 03:57:25 | [diff] [blame] | 113 | "script/script_type.mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 114 | "selection_menu/selection_menu_behavior.mojom", |
Leon Han | 74d7ed3 | 2019-04-02 11:29:14 | [diff] [blame] | 115 | "service_worker/controller_service_worker_mode.mojom", |
Han Leon | 122d2818 | 2018-06-26 07:56:55 | [diff] [blame] | 116 | "service_worker/dispatch_fetch_event_params.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 117 | "service_worker/navigation_preload_state.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 118 | "service_worker/service_worker_client.mojom", |
| 119 | "service_worker/service_worker_error_type.mojom", |
| 120 | "service_worker/service_worker_event_status.mojom", |
Han Leon | 9a3a2fb | 2018-08-07 02:56:01 | [diff] [blame] | 121 | "service_worker/service_worker_fetch_response_callback.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 122 | "service_worker/service_worker_installed_scripts_manager.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 123 | "service_worker/service_worker_provider_type.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 124 | "service_worker/service_worker_state.mojom", |
| 125 | "service_worker/service_worker_stream_handle.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 126 | "site_engagement/site_engagement.mojom", |
Jun Cai | c5030f57 | 2019-06-19 22:47:44 | [diff] [blame] | 127 | "sms/sms_receiver.mojom", |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 128 | "speech/speech_recognition_error.mojom", |
Adithya Srinivasan | 8038337 | 2019-04-17 21:29:24 | [diff] [blame] | 129 | "speech/speech_recognition_error_code.mojom", |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 130 | "speech/speech_recognition_grammar.mojom", |
| 131 | "speech/speech_recognition_result.mojom", |
| 132 | "speech/speech_recognizer.mojom", |
Darin Fisher | a26aa7e | 2019-09-02 20:22:59 | [diff] [blame] | 133 | "speech/speech_synthesis.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 134 | "ukm/ukm.mojom", |
Mike West | 6e4cbb3 | 2019-02-13 09:40:17 | [diff] [blame] | 135 | "user_agent/user_agent_metadata.mojom", |
Leon Han | caae6db | 2019-02-03 03:37:54 | [diff] [blame] | 136 | "v8_cache_options.mojom", |
Mounir Lamouri | 54c31f5 | 2018-12-09 02:52:54 | [diff] [blame] | 137 | "wake_lock/wake_lock.mojom", |
Jay Harris | f6a6b9a | 2019-07-24 01:42:00 | [diff] [blame] | 138 | "web_launch/web_launch.mojom", |
Findit | e6ed5abb | 2019-07-03 20:33:59 | [diff] [blame] | 139 | "webaudio/audio_context_manager.mojom", |
Julie Jeongeun Kim | 4fee1cd8 | 2019-03-20 07:34:03 | [diff] [blame] | 140 | "webdatabase/web_database.mojom", |
Yutaka Hirano | 8e0b4d43 | 2019-07-04 07:12:38 | [diff] [blame] | 141 | "websockets/websocket_connector.mojom", |
Yutaka Hirano | 492c93d | 2019-11-05 11:28:03 | [diff] [blame] | 142 | "webtransport/quic_transport_connector.mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 143 | "window_features/window_features.mojom", |
Dave Tapuska | 5c84c02 | 2019-08-22 13:00:08 | [diff] [blame] | 144 | "worker/dedicated_worker_host.mojom", |
Hiroki Nakagawa | 2da3b58 | 2018-12-10 06:44:52 | [diff] [blame] | 145 | "worker/shared_worker.mojom", |
Hiroki Nakagawa | d0dee83 | 2018-12-04 11:19:10 | [diff] [blame] | 146 | "worker/shared_worker_client.mojom", |
Hiroki Nakagawa | 0e67776 | 2018-12-06 14:55:38 | [diff] [blame] | 147 | "worker/shared_worker_connector.mojom", |
Hiroki Nakagawa | 32376a5 | 2018-12-03 10:49:23 | [diff] [blame] | 148 | "worker/shared_worker_creation_context_type.mojom", |
Hiroki Nakagawa | 86d9e0e | 2018-12-06 10:55:00 | [diff] [blame] | 149 | "worker/shared_worker_host.mojom", |
Hiroki Nakagawa | 1f236df | 2018-12-06 06:55:27 | [diff] [blame] | 150 | "worker/shared_worker_info.mojom", |
Hiroki Nakagawa | 579d02a | 2019-09-10 04:13:51 | [diff] [blame] | 151 | "worker/subresource_loader_updater.mojom", |
Leon Han | 6ac123d | 2019-01-17 07:52:25 | [diff] [blame] | 152 | "worker/worker_content_settings_proxy.mojom", |
Hiroki Nakagawa | 32376a5 | 2018-12-03 10:49:23 | [diff] [blame] | 153 | "worker/worker_main_script_load_params.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 154 | ] |
| 155 | |
Reilly Grant | 2814fb7 | 2019-03-19 17:04:46 | [diff] [blame] | 156 | if (!is_android) { |
| 157 | sources += [ "serial/serial.mojom" ] |
| 158 | } |
| 159 | |
Dominik Röttsches | 24f9d16 | 2019-01-04 10:43:56 | [diff] [blame] | 160 | if (is_win) { |
| 161 | sources += [ "dwrite_font_proxy/dwrite_font_proxy.mojom" ] |
| 162 | } |
| 163 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 164 | public_deps = [ |
Findit | e6ed5abb | 2019-07-03 20:33:59 | [diff] [blame] | 165 | ":android_mojo_bindings", |
| 166 | ":authenticator_test_mojo_bindings", |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 167 | ":mojom_mhtml_load_result", |
Julie Jeongeun Kim | 573ba3d | 2019-03-01 11:35:22 | [diff] [blame] | 168 | ":web_client_hints_types_mojo_bindings", |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 169 | ":web_feature_mojo_bindings", |
Dave Tapuska | 6e9982b | 2019-10-30 22:18:42 | [diff] [blame] | 170 | "//cc/mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 171 | "//components/payments/mojom", |
Miyoung Shin | a2622651 | 2019-07-17 09:44:38 | [diff] [blame] | 172 | "//components/services/filesystem/public/mojom", |
Oksana Zhuravlova | 015487b3 | 2018-03-09 06:58:22 | [diff] [blame] | 173 | "//mojo/public/mojom/base", |
Dmitry Gozman | 88ca5a99 | 2018-05-18 00:13:33 | [diff] [blame] | 174 | "//services/device/public/mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 175 | "//services/network/public/mojom", |
Minggang Wang | 1449cc5 | 2019-07-04 08:52:24 | [diff] [blame] | 176 | "//services/network/public/mojom:data_pipe_interfaces", |
Yutaka Hirano | 8e0b4d43 | 2019-07-04 07:12:38 | [diff] [blame] | 177 | "//services/network/public/mojom:websocket_mojom", |
Hiroki Nakagawa | c30b9f0 | 2018-12-03 11:26:01 | [diff] [blame] | 178 | "//services/service_manager/public/mojom", |
Miyoung Shin | 99505dd | 2019-07-27 12:45:35 | [diff] [blame] | 179 | "//services/viz/public/mojom", |
Miyoung Shin | 40adbd6 | 2019-07-30 07:33:40 | [diff] [blame] | 180 | "//skia/public/mojom", |
Donna Wu | 838ac36 | 2018-08-10 10:36:33 | [diff] [blame] | 181 | "//third_party/blink/public/mojom/usb", |
Miyoung Shin | b18c476 | 2019-07-27 08:14:40 | [diff] [blame] | 182 | "//ui/base/ime/mojom", |
Mike Wasserman | 988465ae | 2019-11-06 00:52:13 | [diff] [blame^] | 183 | "//ui/display/mojom", |
Miyoung Shin | 87943f50 | 2019-07-26 13:31:58 | [diff] [blame] | 184 | "//ui/gfx/geometry/mojom", |
Miyoung Shin | 16bb4c0 | 2019-07-30 03:46:14 | [diff] [blame] | 185 | "//ui/gfx/mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 186 | "//url/mojom:url_mojom_gurl", |
| 187 | "//url/mojom:url_mojom_origin", |
| 188 | ] |
| 189 | |
Guido Urdaneta | 73fa663 | 2019-01-14 18:46:26 | [diff] [blame] | 190 | # iOS doesn't use and must not depend on //media |
| 191 | if (!is_ios) { |
| 192 | public_deps += [ |
| 193 | "//media/capture/mojom:video_capture", |
Miyoung Shin | 25bb8c09 | 2019-08-03 00:56:57 | [diff] [blame] | 194 | "//media/mojo/mojom", |
Guido Urdaneta | 73fa663 | 2019-01-14 18:46:26 | [diff] [blame] | 195 | ] |
| 196 | } |
| 197 | |
Leon Han | c819dc6 | 2019-01-28 04:30:19 | [diff] [blame] | 198 | if (is_linux || is_chromeos) { |
| 199 | enabled_features = [ "renderer_pref_system_font_family_name" ] |
| 200 | } |
| 201 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 202 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 203 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 204 | export_header = "third_party/blink/public/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 205 | |
| 206 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 207 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 208 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
Suzy Li | 5ec40b1 | 2019-07-12 20:25:58 | [diff] [blame] | 209 | |
| 210 | # Don't scramble message IDs so they are redistributable to external tests. |
| 211 | scramble_message_ids = false |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 212 | } |
| 213 | |
Julie Jeongeun Kim | 17abfc7 | 2019-03-26 22:49:18 | [diff] [blame] | 214 | # Kept separate from "mojom_platform" because the Java bindings are |
| 215 | # needed by Android's implementation (in chrome/android or in android_webview) |
| 216 | # for following mojom files. |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 217 | mojom("android_mojo_bindings") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 218 | generate_java = true |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 219 | sources = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 220 | "blob/blob.mojom", |
| 221 | "blob/blob_registry.mojom", |
| 222 | "blob/blob_url_store.mojom", |
| 223 | "blob/data_element.mojom", |
| 224 | "blob/serialized_blob.mojom", |
Julie Jeongeun Kim | 17abfc7 | 2019-03-26 22:49:18 | [diff] [blame] | 225 | "document_metadata/copyless_paste.mojom", |
Julie Jeongeun Kim | e617852 | 2019-03-31 06:02:25 | [diff] [blame] | 226 | "font_unique_name_lookup/font_unique_name_lookup.mojom", |
Julie Jeongeun Kim | 7de77e9 | 2019-02-27 00:14:15 | [diff] [blame] | 227 | "input/input_host.mojom", |
| 228 | "input/input_messages.mojom", |
Julie Jeongeun Kim | e617852 | 2019-03-31 06:02:25 | [diff] [blame] | 229 | "installation/installation.mojom", |
Julie Jeongeun Kim | d3d00a1 | 2019-03-25 01:46:25 | [diff] [blame] | 230 | "installedapp/installed_app_provider.mojom", |
| 231 | "installedapp/related_application.mojom", |
Julie Jeongeun Kim | e617852 | 2019-03-31 06:02:25 | [diff] [blame] | 232 | "mediasession/media_session.mojom", |
Rouslan Solomakhin | a480efa | 2019-05-06 15:37:22 | [diff] [blame] | 233 | "payments/payment_handler_host.mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 234 | "payments/payment_request.mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 235 | "remote_objects/remote_objects.mojom", |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 236 | "webauthn/authenticator.mojom", |
Manas Verma | 77aeb178 | 2019-05-13 20:40:52 | [diff] [blame] | 237 | "webauthn/internal_authenticator.mojom", |
Eric Willigers | 3eeae17c | 2019-03-13 17:32:10 | [diff] [blame] | 238 | "webshare/webshare.mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 239 | ] |
| 240 | public_deps = [ |
| 241 | "//components/payments/mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 242 | "//mojo/public/mojom/base", |
Julie Jeongeun Kim | e617852 | 2019-03-31 06:02:25 | [diff] [blame] | 243 | "//services/media_session/public/mojom", |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 244 | "//services/network/public/mojom", |
Eric Willigers | 3eeae17c | 2019-03-13 17:32:10 | [diff] [blame] | 245 | "//url/mojom:url_mojom_gurl", |
| 246 | "//url/mojom:url_mojom_origin", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 247 | ] |
| 248 | |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 249 | # This Android unhandled-tap feature uses another mojo source, add it in. |
| 250 | if (enable_unhandled_tap) { |
| 251 | sources += [ "unhandled_tap_notifier/unhandled_tap_notifier.mojom" ] |
Miyoung Shin | 87943f50 | 2019-07-26 13:31:58 | [diff] [blame] | 252 | public_deps += [ "//ui/gfx/geometry/mojom" ] |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 253 | } |
| 254 | |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 255 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 256 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 257 | export_header = "third_party/blink/public/common/common_export.h" |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 258 | |
| 259 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 260 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 261 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 262 | |
| 263 | # Don't scramble message IDs so they are redistributable to external tests. |
| 264 | scramble_message_ids = false |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 265 | } |
| 266 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 267 | # This target can include mojom interfaces which do use types that are |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 268 | # typemapped to a type in renderer/core. This also means these interfaces are |
| 269 | # not available from renderer/platform. |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 270 | # |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 271 | # In future we may have a separate mojom target for the things that may have |
| 272 | # modules dependencies if it looks necessary, at that time we can put all of |
| 273 | # those high-level service worker mojom files there. |
Han Leon | 19420c7 | 2018-03-08 01:59:55 | [diff] [blame] | 274 | mojom("mojom_core") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 275 | generate_java = true |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 276 | sources = [ |
Zhuoyu Qian | b647e77 | 2018-09-19 04:04:47 | [diff] [blame] | 277 | "messaging/cloneable_message.mojom", |
Chris Hamilton | b08dc86 | 2019-08-07 15:46:04 | [diff] [blame] | 278 | "messaging/message_port_descriptor.mojom", |
Zhuoyu Qian | b647e77 | 2018-09-19 04:04:47 | [diff] [blame] | 279 | "messaging/transferable_message.mojom", |
Zhuoyu Qian | 47ed0fc5 | 2018-09-06 02:13:40 | [diff] [blame] | 280 | "messaging/user_activation_snapshot.mojom", |
Lucas Furukawa Gadani | 7265507 | 2018-07-26 22:34:33 | [diff] [blame] | 281 | "portal/portal.mojom", |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 282 | |
| 283 | # Note that service_worker_object.mojom and service_worker.mojom depend on |
| 284 | # transferable_message.mojom, and controller_service_worker.mojom and |
| 285 | # service_worker_registration.mojom depend on service_worker_object.mojom, |
| 286 | # so we put these service worker mojom files here rather than mojom_platform |
| 287 | # target. |
Hiroki Nakagawa | cdbc791 | 2018-11-30 11:30:05 | [diff] [blame] | 288 | "service_worker/controller_service_worker.mojom", |
Leon Han | 6e7c6e2f | 2019-02-03 07:26:56 | [diff] [blame] | 289 | "service_worker/embedded_worker.mojom", |
Han Leon | 94335e4 | 2018-03-15 08:44:18 | [diff] [blame] | 290 | "service_worker/service_worker.mojom", |
Richard Li | 743a69f | 2018-12-21 06:44:56 | [diff] [blame] | 291 | "service_worker/service_worker_container.mojom", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 292 | "service_worker/service_worker_object.mojom", |
Richard Li | 32fb3920 | 2018-12-21 06:49:41 | [diff] [blame] | 293 | "service_worker/service_worker_provider.mojom", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 294 | "service_worker/service_worker_registration.mojom", |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 295 | |
| 296 | # Depends on controller_service_worker.mojom. |
Hiroki Nakagawa | 3d14c4f | 2019-02-09 01:27:30 | [diff] [blame] | 297 | "worker/dedicated_worker_host_factory.mojom", |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 298 | "worker/shared_worker_factory.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 299 | ] |
| 300 | |
| 301 | public_deps = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 302 | ":android_mojo_bindings", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 303 | ":mojom_platform", |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 304 | ":web_feature_mojo_bindings", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 305 | "//components/payments/mojom", |
Ken Rockot | 1ca3931 | 2018-04-12 05:32:55 | [diff] [blame] | 306 | "//mojo/public/mojom/base", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 307 | "//services/network/public/mojom", |
Richard Li | 32fb3920 | 2018-12-21 06:49:41 | [diff] [blame] | 308 | "//services/service_manager/public/mojom", |
Miyoung Shin | 40adbd6 | 2019-07-30 07:33:40 | [diff] [blame] | 309 | "//skia/public/mojom", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 310 | "//url/mojom:url_mojom_gurl", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 311 | "//url/mojom:url_mojom_origin", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 312 | ] |
| 313 | |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 314 | overridden_deps_blink = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 315 | ":android_mojo_bindings", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 316 | ":mojom_platform", |
| 317 | "//services/network/public/mojom", |
| 318 | ] |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 319 | component_deps_blink = [ "//third_party/blink/renderer/platform" ] |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 320 | |
| 321 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 322 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 323 | export_header = "third_party/blink/public/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 324 | |
| 325 | export_class_attribute_blink = "CORE_EXPORT" |
| 326 | export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 327 | export_header_blink = "third_party/blink/renderer/core/core_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 328 | } |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 329 | |
| 330 | # This target can include mojom interfaces which use types that are typemapped |
| 331 | # to a type in renderer/modules. This also means these interfaces are not |
| 332 | # available from renderer/platform or renderer/core. |
| 333 | mojom("mojom_modules") { |
| 334 | sources = [ |
| 335 | "indexeddb/indexeddb.mojom", |
| 336 | ] |
| 337 | |
| 338 | public_deps = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 339 | ":android_mojo_bindings", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 340 | ":mojom_core", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 341 | "//mojo/public/mojom/base", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 342 | ] |
| 343 | |
| 344 | overridden_deps_blink = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 345 | ":android_mojo_bindings", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 346 | ":mojom_core", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 347 | ] |
Daniel Bratell | a8e802a | 2019-04-03 13:27:18 | [diff] [blame] | 348 | component_deps_blink = [ "//third_party/blink/renderer/core" ] |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 349 | |
| 350 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 351 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 352 | export_header = "third_party/blink/public/common/common_export.h" |
| 353 | |
| 354 | export_class_attribute_blink = "MODULES_EXPORT" |
| 355 | export_define_blink = "BLINK_MODULES_IMPLEMENTATION=1" |
| 356 | export_header_blink = "third_party/blink/renderer/modules/modules_export.h" |
| 357 | } |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 358 | |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 359 | mojom("web_bluetooth_mojo_bindings") { |
| 360 | visibility = [ |
Ovidio Henriquez | 0e8ab707 | 2019-05-31 21:38:07 | [diff] [blame] | 361 | "//third_party/blink/common", |
| 362 | "//third_party/blink/public/common:common", |
| 363 | "//third_party/blink/public/common:headers", |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 364 | ] |
| 365 | |
Ovidio Henriquez | 0e8ab707 | 2019-05-31 21:38:07 | [diff] [blame] | 366 | visibility_blink = [ |
| 367 | "//third_party/blink/common", |
| 368 | "//third_party/blink/public/common:common", |
| 369 | "//third_party/blink/public/common:headers", |
| 370 | "//third_party/blink/renderer/platform:blink_platform_public_deps", |
| 371 | ] |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 372 | |
| 373 | sources = [ |
| 374 | "bluetooth/web_bluetooth.mojom", |
| 375 | ] |
| 376 | |
| 377 | public_deps = [ |
| 378 | "//device/bluetooth/public/mojom", |
| 379 | ] |
| 380 | |
| 381 | # The chromium variant must be linked with content and use the same export |
| 382 | # settings in component build because of the WebBluetoothDeviceId typemap |
| 383 | # inside content. |
Ovidio Henriquez | 0e8ab707 | 2019-05-31 21:38:07 | [diff] [blame] | 384 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 385 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 386 | export_header = "third_party/blink/public/common/common_export.h" |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 387 | |
| 388 | # Similarly, the blink variant must be linked with the platform component |
| 389 | # since it uses types from it in its typemaps. |
| 390 | export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| 391 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 392 | export_header_blink = "third_party/blink/public/platform/web_common.h" |
| 393 | } |
| 394 | |
Julie Jeongeun Kim | 6d9562f | 2019-03-27 09:17:43 | [diff] [blame] | 395 | # The mojom_broadcastchannel_bindings is separated from the rest of mojom files |
| 396 | # to allow blink/renderer/core to depend on this. |
| 397 | mojom("mojom_broadcastchannel_bindings") { |
| 398 | visibility = [ "//content/*" ] |
| 399 | visibility_blink = [ "//third_party/blink/renderer/core/*" ] |
| 400 | sources = [ |
| 401 | "broadcastchannel/broadcast_channel.mojom", |
| 402 | ] |
| 403 | public_deps = [ |
| 404 | ":mojom_core", |
| 405 | "//url/mojom:url_mojom_origin", |
| 406 | ] |
| 407 | |
| 408 | overridden_deps = [ ":mojom_core" ] |
| 409 | component_deps = [ "//third_party/blink/public/common" ] |
| 410 | |
| 411 | component_output_prefix = "blink_mojom_broadcastchannel_bindings" |
| 412 | |
| 413 | # See comment above. |
| 414 | export_class_attribute = "CONTENT_EXPORT" |
| 415 | export_define = "CONTENT_IMPLEMENTATION=1" |
| 416 | export_header = "content/common/content_export.h" |
| 417 | |
| 418 | # Similarly, the blink variant must be linked with the core component |
| 419 | # since it uses types from it in its typemaps. |
| 420 | export_class_attribute_blink = "CORE_EXPORT" |
| 421 | export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
| 422 | export_header_blink = "third_party/blink/renderer/core/core_export.h" |
| 423 | } |
| 424 | |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 425 | mojom("mojom_mhtml_load_result") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 426 | generate_java = true |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 427 | sources = [ |
| 428 | "loader/mhtml_load_result.mojom", |
| 429 | ] |
| 430 | |
| 431 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 432 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 433 | export_header = "third_party/blink/public/common/common_export.h" |
| 434 | } |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 435 | |
| 436 | # The web_feature_mojo_bindings is separated from the rest of the mojom files |
| 437 | # because the chromium typemap for blink mojo_bindings has private content |
| 438 | # dependencies. |
| 439 | mojom_component("web_feature_mojo_bindings") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 440 | generate_java = true |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 441 | sources = [ |
Majid Valipour | b9ee097 | 2019-08-22 15:16:23 | [diff] [blame] | 442 | "use_counter/css_property_id.mojom", |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 443 | "web_feature/web_feature.mojom", |
| 444 | ] |
| 445 | |
| 446 | macro_prefix = "WEB_FEATURE_MOJO_BINDINGS_MOJOM" |
| 447 | output_prefix = "web_feature_mojo_bindings_mojom" |
| 448 | } |
Julie Jeongeun Kim | 573ba3d | 2019-03-01 11:35:22 | [diff] [blame] | 449 | |
| 450 | # The web_client_hints_types_mojo_bindings is separated from the rest of the |
| 451 | # mojom files because the chromium typemap for blink mojo_bindings has private |
| 452 | # content dependencies. |
| 453 | mojom("web_client_hints_types_mojo_bindings") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 454 | generate_java = true |
Julie Jeongeun Kim | 573ba3d | 2019-03-01 11:35:22 | [diff] [blame] | 455 | sources = [ |
| 456 | "web_client_hints/web_client_hints_types.mojom", |
| 457 | ] |
| 458 | } |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 459 | |
Julie Jeongeun Kim | 8b3d5524 | 2019-03-27 00:05:56 | [diff] [blame] | 460 | # The embedded_frame_sink_mojo_bindings is separated from the rest of mojom |
| 461 | # files because its deps contain too many files in Chromium that would pollute |
| 462 | # the include paths in generated mojom-blink files for other services. |
| 463 | mojom("embedded_frame_sink_mojo_bindings") { |
| 464 | visibility = [ "//content/*" ] |
| 465 | visibility_blink = [ "//third_party/blink/renderer/platform" ] |
| 466 | sources = [ |
| 467 | "frame_sinks/embedded_frame_sink.mojom", |
| 468 | ] |
| 469 | deps = [ |
Miyoung Shin | 99505dd | 2019-07-27 12:45:35 | [diff] [blame] | 470 | "//services/viz/public/mojom", |
Julie Jeongeun Kim | 8b3d5524 | 2019-03-27 00:05:56 | [diff] [blame] | 471 | ] |
| 472 | |
| 473 | component_output_prefix = "blink_embedded_frame_sink_mojo_bindings" |
| 474 | |
| 475 | # The chromium variant must be linked with content and use the same export |
| 476 | # settings in component build. |
| 477 | export_class_attribute = "CONTENT_EXPORT" |
| 478 | export_define = "CONTENT_IMPLEMENTATION=1" |
| 479 | export_header = "content/common/content_export.h" |
| 480 | export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| 481 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 482 | export_header_blink = "third_party/blink/public/platform/web_common.h" |
| 483 | } |
| 484 | |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 485 | # This is a separate target because it needs unscrambled message IDs. |
| 486 | mojom("authenticator_test_mojo_bindings") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 487 | generate_java = true |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 488 | sources = [ |
| 489 | "webauthn/virtual_authenticator.mojom", |
| 490 | ] |
| 491 | |
| 492 | public_deps = [ |
| 493 | ":android_mojo_bindings", |
| 494 | "//url/mojom:url_mojom_gurl", |
| 495 | ] |
| 496 | |
| 497 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 498 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 499 | export_header = "third_party/blink/public/common/common_export.h" |
| 500 | |
| 501 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 502 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 503 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| 504 | |
| 505 | # Don't scramble message IDs so they are redistributable to external tests. |
| 506 | scramble_message_ids = false |
| 507 | } |