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", |
Leon Han | 797b213 | 2019-01-20 12:43:18 | [diff] [blame] | 41 | "devtools/console_message.mojom", |
Hiroki Nakagawa | 7c0a7e7 | 2018-12-10 04:31:29 | [diff] [blame] | 42 | "devtools/devtools_agent.mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 43 | "devtools/devtools_frontend.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 44 | "feature_policy/feature_policy.mojom", |
Ian Clelland | 82c5542c | 2019-09-06 15:35:45 | [diff] [blame] | 45 | "feature_policy/feature_policy_feature.mojom", |
| 46 | "feature_policy/policy_value.mojom", |
Richard Li | e689995 | 2018-11-30 08:42:00 | [diff] [blame] | 47 | "fetch/fetch_api_request.mojom", |
Han Leon | 6bbe791 | 2018-07-31 01:13:46 | [diff] [blame] | 48 | "fetch/fetch_api_response.mojom", |
Jeremy Roman | 89a4d0d | 2018-04-26 19:05:28 | [diff] [blame] | 49 | "file/file_utilities.mojom", |
Adithya Srinivasan | 0c72ff0 | 2018-08-13 19:47:29 | [diff] [blame] | 50 | "filesystem/file_system.mojom", |
Abhijeet Kandalkar | de7348e | 2020-01-13 06:06:54 | [diff] [blame] | 51 | "frame/blocked_navigation_types.mojom", |
Mario Sanchez Prada | b81acd7c | 2019-08-13 08:59:33 | [diff] [blame] | 52 | "frame/frame.mojom", |
Charlie Hu | 0b97fce | 2019-11-12 14:54:44 | [diff] [blame] | 53 | "frame/frame_policy.mojom", |
Dave Tapuska | a418951 | 2019-10-15 20:27:34 | [diff] [blame] | 54 | "frame/fullscreen.mojom", |
Dave Tapuska | d6703f91 | 2019-01-31 23:13:11 | [diff] [blame] | 55 | "frame/lifecycle.mojom", |
Abhijeet Kandalkar | ad9e6dfd | 2020-01-23 18:35:31 | [diff] [blame] | 56 | "frame/media_player_action.mojom", |
Andy Paicu | c93d3086 | 2018-10-10 15:33:45 | [diff] [blame] | 57 | "frame/navigation_initiator.mojom", |
Dave Tapuska | 97d22ab | 2019-12-03 17:56:36 | [diff] [blame] | 58 | "frame/sudden_termination_disabler_type.mojom", |
Antonio Gomes | 4b2c513 | 2020-01-16 11:49:48 | [diff] [blame] | 59 | "frame/user_activation_update_types.mojom", |
Julie Jeongeun Kim | 162c2d28 | 2019-03-13 07:23:52 | [diff] [blame] | 60 | "geolocation/geolocation_service.mojom", |
Matt Reynolds | 3ece5aa4 | 2019-06-10 22:14:34 | [diff] [blame] | 61 | "hid/hid.mojom", |
Julie Jeongeun Kim | ea2e19a | 2019-03-13 09:59:49 | [diff] [blame] | 62 | "hyphenation/hyphenation.mojom", |
Julie Jeongeun Kim | 9f06c5a | 2019-03-21 07:27:31 | [diff] [blame] | 63 | "idle/idle_manager.mojom", |
Gyuyoung Kim | e370bdb | 2019-06-28 00:31:52 | [diff] [blame] | 64 | "image_downloader/image_downloader.mojom", |
Miyoung Shin | ff5aff3 | 2020-01-25 04:15:25 | [diff] [blame] | 65 | "input/focus_type.mojom", |
Dave Tapuska | c25629b3 | 2020-01-03 15:45:41 | [diff] [blame] | 66 | "input/scroll_direction.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", |
Raphael Kubo da Costa | 25f8a22 | 2020-01-14 16:20:07 | [diff] [blame] | 100 | "permissions/permission_automation.mojom", |
Julie Jeongeun Kim | 162c2d28 | 2019-03-13 07:23:52 | [diff] [blame] | 101 | "permissions/permission_status.mojom", |
Mounir Lamouri | 99ba5a6 | 2019-02-12 01:27:47 | [diff] [blame] | 102 | "picture_in_picture/picture_in_picture.mojom", |
Jeremy Roman | b702474 | 2018-06-18 22:00:22 | [diff] [blame] | 103 | "plugins/plugin_registry.mojom", |
mark a. foltz | 6bbe59f | 2018-07-24 20:06:24 | [diff] [blame] | 104 | "presentation/presentation.mojom", |
Mario Sanchez Prada | 683f2f4a | 2019-05-07 12:41:46 | [diff] [blame] | 105 | "push_messaging/push_messaging.mojom", |
Mario Sanchez Prada | d299011 | 2019-05-07 08:13:49 | [diff] [blame] | 106 | "push_messaging/push_messaging_status.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 107 | "quota/quota_dispatcher_host.mojom", |
| 108 | "quota/quota_types.mojom", |
Leon Han | 075e0b3 | 2018-11-06 07:59:44 | [diff] [blame] | 109 | "referrer.mojom", |
Leon Han | f4003a16 | 2019-01-28 05:31:58 | [diff] [blame] | 110 | "renderer_preference_watcher.mojom", |
Leon Han | c819dc6 | 2019-01-28 04:30:19 | [diff] [blame] | 111 | "renderer_preferences.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 112 | "reporting/reporting.mojom", |
Staphany Park | afda6dd7 | 2019-09-02 08:51:49 | [diff] [blame] | 113 | "screen_enumeration/screen_enumeration.mojom", |
Hiroki Nakagawa | 4b072c6 | 2018-11-07 03:57:25 | [diff] [blame] | 114 | "script/script_type.mojom", |
Miyoung Shin | d4b79b0 | 2020-01-27 09:34:56 | [diff] [blame^] | 115 | "scroll/scroll_into_view_params.mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 116 | "selection_menu/selection_menu_behavior.mojom", |
Alexey Baskakov | 9bafd8c | 2019-11-19 23:51:37 | [diff] [blame] | 117 | "service_worker/controller_service_worker_mode.mojom", |
| 118 | "service_worker/dispatch_fetch_event_params.mojom", |
| 119 | "service_worker/navigation_preload_state.mojom", |
| 120 | "service_worker/service_worker_client.mojom", |
Hiroki Nakagawa | 8739f73a | 2020-01-21 17:01:14 | [diff] [blame] | 121 | "service_worker/service_worker_container_type.mojom", |
Kenichi Ishibashi | 23310a8 | 2019-11-21 09:27:29 | [diff] [blame] | 122 | "service_worker/service_worker_database.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 123 | "service_worker/service_worker_error_type.mojom", |
Alexey Baskakov | 9bafd8c | 2019-11-19 23:51:37 | [diff] [blame] | 124 | "service_worker/service_worker_event_status.mojom", |
| 125 | "service_worker/service_worker_fetch_response_callback.mojom", |
| 126 | "service_worker/service_worker_installed_scripts_manager.mojom", |
Kenichi Ishibashi | 23310a8 | 2019-11-21 09:27:29 | [diff] [blame] | 127 | "service_worker/service_worker_registration_options.mojom", |
Alexey Baskakov | 9bafd8c | 2019-11-19 23:51:37 | [diff] [blame] | 128 | "service_worker/service_worker_state.mojom", |
| 129 | "service_worker/service_worker_stream_handle.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 130 | "site_engagement/site_engagement.mojom", |
Jun Cai | c5030f57 | 2019-06-19 22:47:44 | [diff] [blame] | 131 | "sms/sms_receiver.mojom", |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 132 | "speech/speech_recognition_error.mojom", |
Adithya Srinivasan | 8038337 | 2019-04-17 21:29:24 | [diff] [blame] | 133 | "speech/speech_recognition_error_code.mojom", |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 134 | "speech/speech_recognition_grammar.mojom", |
| 135 | "speech/speech_recognition_result.mojom", |
| 136 | "speech/speech_recognizer.mojom", |
Darin Fisher | a26aa7e | 2019-09-02 20:22:59 | [diff] [blame] | 137 | "speech/speech_synthesis.mojom", |
Yuta Kasai | e1f61030 | 2019-11-14 03:31:16 | [diff] [blame] | 138 | "timing/performance_mark_or_measure.mojom", |
Dave Tapuska | 8cc2539 | 2020-01-22 18:36:48 | [diff] [blame] | 139 | "timing/resource_timing.mojom", |
Yuta Kasai | e1f61030 | 2019-11-14 03:31:16 | [diff] [blame] | 140 | "timing/worker_timing_container.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 141 | "ukm/ukm.mojom", |
Mike West | 6e4cbb3 | 2019-02-13 09:40:17 | [diff] [blame] | 142 | "user_agent/user_agent_metadata.mojom", |
Leon Han | caae6db | 2019-02-03 03:37:54 | [diff] [blame] | 143 | "v8_cache_options.mojom", |
Mounir Lamouri | 54c31f5 | 2018-12-09 02:52:54 | [diff] [blame] | 144 | "wake_lock/wake_lock.mojom", |
Jay Harris | f6a6b9a | 2019-07-24 01:42:00 | [diff] [blame] | 145 | "web_launch/web_launch.mojom", |
Findit | e6ed5abb | 2019-07-03 20:33:59 | [diff] [blame] | 146 | "webaudio/audio_context_manager.mojom", |
Julie Jeongeun Kim | 4fee1cd8 | 2019-03-20 07:34:03 | [diff] [blame] | 147 | "webdatabase/web_database.mojom", |
Yutaka Hirano | 8e0b4d43 | 2019-07-04 07:12:38 | [diff] [blame] | 148 | "websockets/websocket_connector.mojom", |
Yutaka Hirano | 492c93d | 2019-11-05 11:28:03 | [diff] [blame] | 149 | "webtransport/quic_transport_connector.mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 150 | "window_features/window_features.mojom", |
Dave Tapuska | 5c84c02 | 2019-08-22 13:00:08 | [diff] [blame] | 151 | "worker/dedicated_worker_host.mojom", |
Hiroki Nakagawa | 2da3b58 | 2018-12-10 06:44:52 | [diff] [blame] | 152 | "worker/shared_worker.mojom", |
Hiroki Nakagawa | d0dee83 | 2018-12-04 11:19:10 | [diff] [blame] | 153 | "worker/shared_worker_client.mojom", |
Hiroki Nakagawa | 0e67776 | 2018-12-06 14:55:38 | [diff] [blame] | 154 | "worker/shared_worker_connector.mojom", |
Hiroki Nakagawa | 32376a5 | 2018-12-03 10:49:23 | [diff] [blame] | 155 | "worker/shared_worker_creation_context_type.mojom", |
Hiroki Nakagawa | 86d9e0e | 2018-12-06 10:55:00 | [diff] [blame] | 156 | "worker/shared_worker_host.mojom", |
Hiroki Nakagawa | 1f236df | 2018-12-06 06:55:27 | [diff] [blame] | 157 | "worker/shared_worker_info.mojom", |
Hiroki Nakagawa | 579d02a | 2019-09-10 04:13:51 | [diff] [blame] | 158 | "worker/subresource_loader_updater.mojom", |
Leon Han | 6ac123d | 2019-01-17 07:52:25 | [diff] [blame] | 159 | "worker/worker_content_settings_proxy.mojom", |
Hiroki Nakagawa | 32376a5 | 2018-12-03 10:49:23 | [diff] [blame] | 160 | "worker/worker_main_script_load_params.mojom", |
Eriko Kurimoto | 1f69cbbc | 2020-01-15 08:02:43 | [diff] [blame] | 161 | "worker/worker_options.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 162 | ] |
| 163 | |
Reilly Grant | 2814fb7 | 2019-03-19 17:04:46 | [diff] [blame] | 164 | if (!is_android) { |
| 165 | sources += [ "serial/serial.mojom" ] |
| 166 | } |
| 167 | |
Dominik Röttsches | 24f9d16 | 2019-01-04 10:43:56 | [diff] [blame] | 168 | if (is_win) { |
| 169 | sources += [ "dwrite_font_proxy/dwrite_font_proxy.mojom" ] |
| 170 | } |
| 171 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 172 | public_deps = [ |
Findit | e6ed5abb | 2019-07-03 20:33:59 | [diff] [blame] | 173 | ":android_mojo_bindings", |
| 174 | ":authenticator_test_mojo_bindings", |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 175 | ":mojom_mhtml_load_result", |
Julie Jeongeun Kim | 573ba3d | 2019-03-01 11:35:22 | [diff] [blame] | 176 | ":web_client_hints_types_mojo_bindings", |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 177 | ":web_feature_mojo_bindings", |
Dave Tapuska | 6e9982b | 2019-10-30 22:18:42 | [diff] [blame] | 178 | "//cc/mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 179 | "//components/payments/mojom", |
Miyoung Shin | a2622651 | 2019-07-17 09:44:38 | [diff] [blame] | 180 | "//components/services/filesystem/public/mojom", |
Oksana Zhuravlova | 015487b3 | 2018-03-09 06:58:22 | [diff] [blame] | 181 | "//mojo/public/mojom/base", |
Dmitry Gozman | 88ca5a99 | 2018-05-18 00:13:33 | [diff] [blame] | 182 | "//services/device/public/mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 183 | "//services/network/public/mojom", |
Minggang Wang | 1449cc5 | 2019-07-04 08:52:24 | [diff] [blame] | 184 | "//services/network/public/mojom:data_pipe_interfaces", |
Yutaka Hirano | 8e0b4d43 | 2019-07-04 07:12:38 | [diff] [blame] | 185 | "//services/network/public/mojom:websocket_mojom", |
Hiroki Nakagawa | c30b9f0 | 2018-12-03 11:26:01 | [diff] [blame] | 186 | "//services/service_manager/public/mojom", |
Miyoung Shin | 99505dd | 2019-07-27 12:45:35 | [diff] [blame] | 187 | "//services/viz/public/mojom", |
Miyoung Shin | 40adbd6 | 2019-07-30 07:33:40 | [diff] [blame] | 188 | "//skia/public/mojom", |
Ken Rockot | 5cacb40 | 2019-11-18 20:54:05 | [diff] [blame] | 189 | "//third_party/blink/public/mojom/dom_storage", |
Evan Stade | 61ccab7 | 2020-01-17 20:17:51 | [diff] [blame] | 190 | "//third_party/blink/public/mojom/frame", |
Donna Wu | 838ac36 | 2018-08-10 10:36:33 | [diff] [blame] | 191 | "//third_party/blink/public/mojom/usb", |
Miyoung Shin | b18c476 | 2019-07-27 08:14:40 | [diff] [blame] | 192 | "//ui/base/ime/mojom", |
Mike Wasserman | 988465ae | 2019-11-06 00:52:13 | [diff] [blame] | 193 | "//ui/display/mojom", |
Dave Tapuska | c25629b3 | 2020-01-03 15:45:41 | [diff] [blame] | 194 | "//ui/events/mojom", |
Miyoung Shin | 87943f50 | 2019-07-26 13:31:58 | [diff] [blame] | 195 | "//ui/gfx/geometry/mojom", |
Miyoung Shin | 16bb4c0 | 2019-07-30 03:46:14 | [diff] [blame] | 196 | "//ui/gfx/mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 197 | "//url/mojom:url_mojom_gurl", |
| 198 | "//url/mojom:url_mojom_origin", |
| 199 | ] |
| 200 | |
Guido Urdaneta | 73fa663 | 2019-01-14 18:46:26 | [diff] [blame] | 201 | # iOS doesn't use and must not depend on //media |
| 202 | if (!is_ios) { |
| 203 | public_deps += [ |
| 204 | "//media/capture/mojom:video_capture", |
Miyoung Shin | 25bb8c09 | 2019-08-03 00:56:57 | [diff] [blame] | 205 | "//media/mojo/mojom", |
Guido Urdaneta | 73fa663 | 2019-01-14 18:46:26 | [diff] [blame] | 206 | ] |
| 207 | } |
| 208 | |
Leon Han | c819dc6 | 2019-01-28 04:30:19 | [diff] [blame] | 209 | if (is_linux || is_chromeos) { |
| 210 | enabled_features = [ "renderer_pref_system_font_family_name" ] |
| 211 | } |
| 212 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 213 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 214 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 215 | export_header = "third_party/blink/public/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 216 | |
| 217 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 218 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 219 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
Suzy Li | 5ec40b1 | 2019-07-12 20:25:58 | [diff] [blame] | 220 | |
| 221 | # Don't scramble message IDs so they are redistributable to external tests. |
| 222 | scramble_message_ids = false |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 223 | } |
| 224 | |
Julie Jeongeun Kim | 17abfc7 | 2019-03-26 22:49:18 | [diff] [blame] | 225 | # Kept separate from "mojom_platform" because the Java bindings are |
| 226 | # needed by Android's implementation (in chrome/android or in android_webview) |
| 227 | # for following mojom files. |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 228 | mojom("android_mojo_bindings") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 229 | generate_java = true |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 230 | sources = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 231 | "blob/blob.mojom", |
| 232 | "blob/blob_registry.mojom", |
| 233 | "blob/blob_url_store.mojom", |
| 234 | "blob/data_element.mojom", |
| 235 | "blob/serialized_blob.mojom", |
Julie Jeongeun Kim | 17abfc7 | 2019-03-26 22:49:18 | [diff] [blame] | 236 | "document_metadata/copyless_paste.mojom", |
Julie Jeongeun Kim | e617852 | 2019-03-31 06:02:25 | [diff] [blame] | 237 | "font_unique_name_lookup/font_unique_name_lookup.mojom", |
Julie Jeongeun Kim | 7de77e9 | 2019-02-27 00:14:15 | [diff] [blame] | 238 | "input/input_host.mojom", |
| 239 | "input/input_messages.mojom", |
Julie Jeongeun Kim | e617852 | 2019-03-31 06:02:25 | [diff] [blame] | 240 | "installation/installation.mojom", |
Julie Jeongeun Kim | d3d00a1 | 2019-03-25 01:46:25 | [diff] [blame] | 241 | "installedapp/installed_app_provider.mojom", |
| 242 | "installedapp/related_application.mojom", |
Julie Jeongeun Kim | e617852 | 2019-03-31 06:02:25 | [diff] [blame] | 243 | "mediasession/media_session.mojom", |
Rouslan Solomakhin | a480efa | 2019-05-06 15:37:22 | [diff] [blame] | 244 | "payments/payment_handler_host.mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 245 | "payments/payment_request.mojom", |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 246 | "webauthn/authenticator.mojom", |
Manas Verma | 77aeb178 | 2019-05-13 20:40:52 | [diff] [blame] | 247 | "webauthn/internal_authenticator.mojom", |
Eric Willigers | 3eeae17c | 2019-03-13 17:32:10 | [diff] [blame] | 248 | "webshare/webshare.mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 249 | ] |
Oksana Zhuravlova | 052f7a5 | 2020-01-14 23:15:03 | [diff] [blame] | 250 | |
| 251 | if (is_android) { |
| 252 | sources += [ "remote_objects/remote_objects.mojom" ] |
| 253 | } |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 254 | public_deps = [ |
| 255 | "//components/payments/mojom", |
Julie Jeongeun Kim | 42a90df | 2019-03-20 23:13:10 | [diff] [blame] | 256 | "//mojo/public/mojom/base", |
Julie Jeongeun Kim | e617852 | 2019-03-31 06:02:25 | [diff] [blame] | 257 | "//services/media_session/public/mojom", |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 258 | "//services/network/public/mojom", |
Eric Willigers | 3eeae17c | 2019-03-13 17:32:10 | [diff] [blame] | 259 | "//url/mojom:url_mojom_gurl", |
| 260 | "//url/mojom:url_mojom_origin", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 261 | ] |
| 262 | |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 263 | # This Android unhandled-tap feature uses another mojo source, add it in. |
| 264 | if (enable_unhandled_tap) { |
| 265 | sources += [ "unhandled_tap_notifier/unhandled_tap_notifier.mojom" ] |
Miyoung Shin | 87943f50 | 2019-07-26 13:31:58 | [diff] [blame] | 266 | public_deps += [ "//ui/gfx/geometry/mojom" ] |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 267 | } |
| 268 | |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 269 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 270 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 271 | export_header = "third_party/blink/public/common/common_export.h" |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 272 | |
| 273 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 274 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 275 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 276 | |
| 277 | # Don't scramble message IDs so they are redistributable to external tests. |
| 278 | scramble_message_ids = false |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 279 | } |
| 280 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 281 | # This target can include mojom interfaces which do use types that are |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 282 | # typemapped to a type in renderer/core. This also means these interfaces are |
| 283 | # not available from renderer/platform. |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 284 | # |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 285 | # In future we may have a separate mojom target for the things that may have |
| 286 | # modules dependencies if it looks necessary, at that time we can put all of |
| 287 | # those high-level service worker mojom files there. |
Han Leon | 19420c7 | 2018-03-08 01:59:55 | [diff] [blame] | 288 | mojom("mojom_core") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 289 | generate_java = true |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 290 | sources = [ |
Zhuoyu Qian | b647e77 | 2018-09-19 04:04:47 | [diff] [blame] | 291 | "messaging/cloneable_message.mojom", |
Chris Hamilton | b08dc86 | 2019-08-07 15:46:04 | [diff] [blame] | 292 | "messaging/message_port_descriptor.mojom", |
Zhuoyu Qian | b647e77 | 2018-09-19 04:04:47 | [diff] [blame] | 293 | "messaging/transferable_message.mojom", |
Zhuoyu Qian | 47ed0fc5 | 2018-09-06 02:13:40 | [diff] [blame] | 294 | "messaging/user_activation_snapshot.mojom", |
Lucas Furukawa Gadani | 7265507 | 2018-07-26 22:34:33 | [diff] [blame] | 295 | "portal/portal.mojom", |
Alexey Baskakov | 9bafd8c | 2019-11-19 23:51:37 | [diff] [blame] | 296 | |
| 297 | # Note that service_worker_object.mojom and service_worker.mojom depend on |
| 298 | # transferable_message.mojom, and controller_service_worker.mojom and |
| 299 | # service_worker_registration.mojom depend on service_worker_object.mojom, |
| 300 | # so we put these service worker mojom files here rather than mojom_platform |
| 301 | # target. |
| 302 | "service_worker/controller_service_worker.mojom", |
| 303 | "service_worker/embedded_worker.mojom", |
| 304 | "service_worker/service_worker.mojom", |
| 305 | "service_worker/service_worker_container.mojom", |
| 306 | "service_worker/service_worker_object.mojom", |
| 307 | "service_worker/service_worker_provider.mojom", |
| 308 | "service_worker/service_worker_registration.mojom", |
| 309 | |
| 310 | # Depends on controller_service_worker.mojom. |
| 311 | "worker/dedicated_worker_host_factory.mojom", |
| 312 | "worker/shared_worker_factory.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 313 | ] |
| 314 | |
| 315 | public_deps = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 316 | ":android_mojo_bindings", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 317 | ":mojom_platform", |
Alexey Baskakov | 9bafd8c | 2019-11-19 23:51:37 | [diff] [blame] | 318 | ":web_feature_mojo_bindings", |
| 319 | "//components/payments/mojom", |
Ken Rockot | 1ca3931 | 2018-04-12 05:32:55 | [diff] [blame] | 320 | "//mojo/public/mojom/base", |
Alexey Baskakov | 9bafd8c | 2019-11-19 23:51:37 | [diff] [blame] | 321 | "//services/network/public/mojom", |
| 322 | "//services/service_manager/public/mojom", |
Miyoung Shin | 40adbd6 | 2019-07-30 07:33:40 | [diff] [blame] | 323 | "//skia/public/mojom", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 324 | "//url/mojom:url_mojom_gurl", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 325 | "//url/mojom:url_mojom_origin", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 326 | ] |
| 327 | |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 328 | overridden_deps_blink = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 329 | ":android_mojo_bindings", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 330 | ":mojom_platform", |
Alexey Baskakov | 9bafd8c | 2019-11-19 23:51:37 | [diff] [blame] | 331 | "//services/network/public/mojom", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 332 | ] |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 333 | component_deps_blink = [ "//third_party/blink/renderer/platform" ] |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 334 | |
| 335 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 336 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 337 | export_header = "third_party/blink/public/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 338 | |
| 339 | export_class_attribute_blink = "CORE_EXPORT" |
| 340 | export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 341 | export_header_blink = "third_party/blink/renderer/core/core_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 342 | } |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 343 | |
| 344 | # This target can include mojom interfaces which use types that are typemapped |
| 345 | # to a type in renderer/modules. This also means these interfaces are not |
| 346 | # available from renderer/platform or renderer/core. |
| 347 | mojom("mojom_modules") { |
Nico Weber | 102095cc | 2020-01-16 17:43:23 | [diff] [blame] | 348 | sources = [ "indexeddb/indexeddb.mojom" ] |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 349 | |
| 350 | public_deps = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 351 | ":android_mojo_bindings", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 352 | ":mojom_core", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 353 | "//mojo/public/mojom/base", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 354 | ] |
| 355 | |
| 356 | overridden_deps_blink = [ |
Eric Willigers | e99debf5 | 2019-04-05 01:32:05 | [diff] [blame] | 357 | ":android_mojo_bindings", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 358 | ":mojom_core", |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 359 | ] |
Daniel Bratell | a8e802a | 2019-04-03 13:27:18 | [diff] [blame] | 360 | component_deps_blink = [ "//third_party/blink/renderer/core" ] |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 361 | |
| 362 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 363 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 364 | export_header = "third_party/blink/public/common/common_export.h" |
| 365 | |
| 366 | export_class_attribute_blink = "MODULES_EXPORT" |
| 367 | export_define_blink = "BLINK_MODULES_IMPLEMENTATION=1" |
| 368 | export_header_blink = "third_party/blink/renderer/modules/modules_export.h" |
| 369 | } |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 370 | |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 371 | mojom("web_bluetooth_mojo_bindings") { |
| 372 | visibility = [ |
Ovidio Henriquez | 0e8ab707 | 2019-05-31 21:38:07 | [diff] [blame] | 373 | "//third_party/blink/common", |
| 374 | "//third_party/blink/public/common:common", |
| 375 | "//third_party/blink/public/common:headers", |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 376 | ] |
| 377 | |
Ovidio Henriquez | 0e8ab707 | 2019-05-31 21:38:07 | [diff] [blame] | 378 | visibility_blink = [ |
| 379 | "//third_party/blink/common", |
| 380 | "//third_party/blink/public/common:common", |
| 381 | "//third_party/blink/public/common:headers", |
| 382 | "//third_party/blink/renderer/platform:blink_platform_public_deps", |
| 383 | ] |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 384 | |
Nico Weber | 102095cc | 2020-01-16 17:43:23 | [diff] [blame] | 385 | sources = [ "bluetooth/web_bluetooth.mojom" ] |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 386 | |
Nico Weber | 102095cc | 2020-01-16 17:43:23 | [diff] [blame] | 387 | public_deps = [ "//device/bluetooth/public/mojom" ] |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 388 | |
| 389 | # The chromium variant must be linked with content and use the same export |
| 390 | # settings in component build because of the WebBluetoothDeviceId typemap |
| 391 | # inside content. |
Ovidio Henriquez | 0e8ab707 | 2019-05-31 21:38:07 | [diff] [blame] | 392 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 393 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 394 | export_header = "third_party/blink/public/common/common_export.h" |
Julie Jeongeun Kim | 4f1b5aa | 2019-05-08 01:32:09 | [diff] [blame] | 395 | |
| 396 | # Similarly, the blink variant must be linked with the platform component |
| 397 | # since it uses types from it in its typemaps. |
| 398 | export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| 399 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 400 | export_header_blink = "third_party/blink/public/platform/web_common.h" |
| 401 | } |
| 402 | |
Julie Jeongeun Kim | 6d9562f | 2019-03-27 09:17:43 | [diff] [blame] | 403 | # The mojom_broadcastchannel_bindings is separated from the rest of mojom files |
| 404 | # to allow blink/renderer/core to depend on this. |
| 405 | mojom("mojom_broadcastchannel_bindings") { |
| 406 | visibility = [ "//content/*" ] |
| 407 | visibility_blink = [ "//third_party/blink/renderer/core/*" ] |
Nico Weber | 102095cc | 2020-01-16 17:43:23 | [diff] [blame] | 408 | sources = [ "broadcastchannel/broadcast_channel.mojom" ] |
Julie Jeongeun Kim | 6d9562f | 2019-03-27 09:17:43 | [diff] [blame] | 409 | public_deps = [ |
| 410 | ":mojom_core", |
| 411 | "//url/mojom:url_mojom_origin", |
| 412 | ] |
| 413 | |
| 414 | overridden_deps = [ ":mojom_core" ] |
| 415 | component_deps = [ "//third_party/blink/public/common" ] |
| 416 | |
| 417 | component_output_prefix = "blink_mojom_broadcastchannel_bindings" |
| 418 | |
| 419 | # See comment above. |
| 420 | export_class_attribute = "CONTENT_EXPORT" |
| 421 | export_define = "CONTENT_IMPLEMENTATION=1" |
| 422 | export_header = "content/common/content_export.h" |
| 423 | |
| 424 | # Similarly, the blink variant must be linked with the core component |
| 425 | # since it uses types from it in its typemaps. |
| 426 | export_class_attribute_blink = "CORE_EXPORT" |
| 427 | export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
| 428 | export_header_blink = "third_party/blink/renderer/core/core_export.h" |
| 429 | } |
| 430 | |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 431 | mojom("mojom_mhtml_load_result") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 432 | generate_java = true |
Nico Weber | 102095cc | 2020-01-16 17:43:23 | [diff] [blame] | 433 | sources = [ "loader/mhtml_load_result.mojom" ] |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 434 | |
| 435 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 436 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 437 | export_header = "third_party/blink/public/common/common_export.h" |
| 438 | } |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 439 | |
| 440 | # The web_feature_mojo_bindings is separated from the rest of the mojom files |
| 441 | # because the chromium typemap for blink mojo_bindings has private content |
| 442 | # dependencies. |
| 443 | mojom_component("web_feature_mojo_bindings") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 444 | generate_java = true |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 445 | sources = [ |
Majid Valipour | b9ee097 | 2019-08-22 15:16:23 | [diff] [blame] | 446 | "use_counter/css_property_id.mojom", |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 447 | "web_feature/web_feature.mojom", |
| 448 | ] |
| 449 | |
| 450 | macro_prefix = "WEB_FEATURE_MOJO_BINDINGS_MOJOM" |
| 451 | output_prefix = "web_feature_mojo_bindings_mojom" |
| 452 | } |
Julie Jeongeun Kim | 573ba3d | 2019-03-01 11:35:22 | [diff] [blame] | 453 | |
| 454 | # The web_client_hints_types_mojo_bindings is separated from the rest of the |
| 455 | # mojom files because the chromium typemap for blink mojo_bindings has private |
| 456 | # content dependencies. |
| 457 | mojom("web_client_hints_types_mojo_bindings") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 458 | generate_java = true |
Nico Weber | 102095cc | 2020-01-16 17:43:23 | [diff] [blame] | 459 | sources = [ "web_client_hints/web_client_hints_types.mojom" ] |
Julie Jeongeun Kim | 573ba3d | 2019-03-01 11:35:22 | [diff] [blame] | 460 | } |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 461 | |
Julie Jeongeun Kim | 8b3d5524 | 2019-03-27 00:05:56 | [diff] [blame] | 462 | # The embedded_frame_sink_mojo_bindings is separated from the rest of mojom |
| 463 | # files because its deps contain too many files in Chromium that would pollute |
| 464 | # the include paths in generated mojom-blink files for other services. |
| 465 | mojom("embedded_frame_sink_mojo_bindings") { |
| 466 | visibility = [ "//content/*" ] |
| 467 | visibility_blink = [ "//third_party/blink/renderer/platform" ] |
Nico Weber | 102095cc | 2020-01-16 17:43:23 | [diff] [blame] | 468 | sources = [ "frame_sinks/embedded_frame_sink.mojom" ] |
| 469 | deps = [ "//services/viz/public/mojom" ] |
Julie Jeongeun Kim | 8b3d5524 | 2019-03-27 00:05:56 | [diff] [blame] | 470 | |
| 471 | component_output_prefix = "blink_embedded_frame_sink_mojo_bindings" |
| 472 | |
| 473 | # The chromium variant must be linked with content and use the same export |
| 474 | # settings in component build. |
| 475 | export_class_attribute = "CONTENT_EXPORT" |
| 476 | export_define = "CONTENT_IMPLEMENTATION=1" |
| 477 | export_header = "content/common/content_export.h" |
| 478 | export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| 479 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 480 | export_header_blink = "third_party/blink/public/platform/web_common.h" |
| 481 | } |
| 482 | |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 483 | # This is a separate target because it needs unscrambled message IDs. |
| 484 | mojom("authenticator_test_mojo_bindings") { |
danakj | 7c03b6d | 2019-10-22 20:01:31 | [diff] [blame] | 485 | generate_java = true |
Nico Weber | 102095cc | 2020-01-16 17:43:23 | [diff] [blame] | 486 | sources = [ "webauthn/virtual_authenticator.mojom" ] |
Julie Jeongeun Kim | b6a0a1f | 2019-03-21 05:08:26 | [diff] [blame] | 487 | |
| 488 | public_deps = [ |
| 489 | ":android_mojo_bindings", |
| 490 | "//url/mojom:url_mojom_gurl", |
| 491 | ] |
| 492 | |
| 493 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 494 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 495 | export_header = "third_party/blink/public/common/common_export.h" |
| 496 | |
| 497 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 498 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 499 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| 500 | |
| 501 | # Don't scramble message IDs so they are redistributable to external tests. |
| 502 | scramble_message_ids = false |
| 503 | } |
Takashi Sakamoto | a1554f1 | 2020-01-20 05:50:39 | [diff] [blame] | 504 | |
| 505 | mojom("memory_usage_monitor_linux_mojo_bindings") { |
| 506 | visibility = [ |
| 507 | "//content/browser:browser", |
| 508 | "//third_party/blink/renderer/controller:controller", |
| 509 | ] |
| 510 | visibility_blink = [ "//third_party/blink/renderer/controller:controller" ] |
| 511 | |
| 512 | sources = [ "memory_usage_monitor_linux.mojom" ] |
| 513 | |
| 514 | public_deps = [ "//mojo/public/mojom/base" ] |
| 515 | |
| 516 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 517 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 518 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| 519 | } |