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