blob: 0643d603395dd4463aea13240a71ad1eb066f07d [file] [log] [blame]
Kinuko Yasudafa0f2512018-03-01 07:13:011# 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
5import("//mojo/public/tools/bindings/mojom.gni")
Julie Jeongeun Kim9912f2e2019-03-01 03:30:186import("//third_party/blink/public/public_features.gni")
Kinuko Yasudafa0f2512018-03-01 07:13:017
Michael Thiessen909ba032019-03-26 23:47:438if (is_android) {
9 import("//build/config/android/config.gni")
10}
11
Kinuko Yasudafa0f2512018-03-01 07:13:0112# This target includes all mojom interfaces which can be used from
Chase Phillips4f62c052018-11-06 01:43:5113# renderer/platform. In particular these mojom interfaces can't use types that
14# are typemapped to a type in renderer/core.
Kinuko Yasudafa0f2512018-03-01 07:13:0115mojom("mojom_platform") {
16 sources = [
John Delaney74efc1d2018-12-20 18:29:1817 "ad_tagging/ad_frame.mojom",
Julie Jeongeun Kim0abed30c2019-03-04 12:18:2018 "app_banner/app_banner.mojom",
Staphany Park5e0954882019-01-14 20:18:2819 "appcache/appcache.mojom",
20 "appcache/appcache_info.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0121 "array_buffer/array_buffer_contents.mojom",
Ken Rockot26e4e802018-07-31 15:03:3322 "associated_interfaces/associated_interfaces.mojom",
Julie Jeongeun Kimdaa631e2019-02-21 14:17:2523 "autoplay/autoplay.mojom",
Richard Li912523f2018-12-13 08:10:4024 "background_fetch/background_fetch.mojom",
Julie Jeongeun Kim781703f2019-03-09 02:49:1025 "background_sync/background_sync.mojom",
Julie Jeongeun Kim78e772b2019-03-08 23:21:5926 "badging/badging.mojom",
Oksana Zhuravlovafee097c2019-07-26 17:01:3027 "browser_interface_broker.mojom",
Richard Libcc09eb2018-11-30 15:00:3528 "cache_storage/cache_storage.mojom",
Abhijeet Kandalkar849ceff2019-02-28 17:37:2929 "choosers/color_chooser.mojom",
Gyuyoung Kim5f3da842019-06-19 08:07:5730 "choosers/date_time_chooser.mojom",
Kent Tamurac260c9a2018-09-14 09:10:5631 "choosers/file_chooser.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0132 "clipboard/clipboard.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1033 "commit_result/commit_result.mojom",
Finnur Thorarinsson522d3782018-12-05 02:17:4334 "contacts/contacts_manager.mojom",
Rayan Kansoe78e94a2019-06-20 13:29:0835 "content_index/content_index.mojom",
Victor Costan7184272a2018-05-15 13:17:4336 "cookie_store/cookie_store.mojom",
Yuzu Saijo2d12ef92018-08-21 04:52:0737 "crash/crash_memory_metrics_reporter.mojom",
Findite6ed5abb2019-07-03 20:33:5938 "credentialmanager/credential_manager.mojom",
Hiroki Nakagawa792fcc32018-12-06 06:50:5739 "csp/content_security_policy.mojom",
Leon Han797b2132019-01-20 12:43:1840 "devtools/console_message.mojom",
Hiroki Nakagawa7c0a7e72018-12-10 04:31:2941 "devtools/devtools_agent.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1042 "devtools/devtools_frontend.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5943 "dom_storage/session_storage_namespace.mojom",
Marijn Kruisselbrinkf9a9e762018-06-07 18:57:1244 "dom_storage/storage_area.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5945 "dom_storage/storage_partition_service.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0146 "feature_policy/feature_policy.mojom",
Richard Lie6899952018-11-30 08:42:0047 "fetch/fetch_api_request.mojom",
Han Leon6bbe7912018-07-31 01:13:4648 "fetch/fetch_api_response.mojom",
Jeremy Roman89a4d0d2018-04-26 19:05:2849 "file/file_utilities.mojom",
Adithya Srinivasan0c72ff02018-08-13 19:47:2950 "filesystem/file_system.mojom",
Findite6ed5abb2019-07-03 20:33:5951 "frame/document_interface_broker.mojom",
Rakina Zata Amniacf40492018-05-08 22:59:3352 "frame/find_in_page.mojom",
Mario Sanchez Pradab81acd7c2019-08-13 08:59:3353 "frame/frame.mojom",
Findite6ed5abb2019-07-03 20:33:5954 "frame/frame_host_test_interface.mojom",
Dave Tapuskad6703f912019-01-31 23:13:1155 "frame/lifecycle.mojom",
Andy Paicuc93d30862018-10-10 15:33:4556 "frame/navigation_initiator.mojom",
Julie Jeongeun Kim162c2d282019-03-13 07:23:5257 "geolocation/geolocation_service.mojom",
Matt Reynolds3ece5aa42019-06-10 22:14:3458 "hid/hid.mojom",
Julie Jeongeun Kimea2e19a2019-03-13 09:59:4959 "hyphenation/hyphenation.mojom",
Julie Jeongeun Kim9f06c5a2019-03-21 07:27:3160 "idle/idle_manager.mojom",
Gyuyoung Kime370bdb2019-06-28 00:31:5261 "image_downloader/image_downloader.mojom",
Julie Jeongeun Kim0cecf4b2019-03-13 11:52:3562 "insecure_input/insecure_input_service.mojom",
Julie Jeongeun Kim41401192019-03-11 13:02:3263 "keyboard_lock/keyboard_lock.mojom",
Dmitry Gozmand016d882018-04-20 01:55:2464 "leak_detector/leak_detector.mojom",
Bill Budge24c1dc1a2018-09-25 18:51:3265 "loader/code_cache.mojom",
Hiroki Nakagawa686d5f52019-06-27 05:12:4366 "loader/fetch_client_settings_object.mojom",
Lu Chen5bec7a302018-06-26 18:52:3267 "loader/navigation_predictor.mojom",
Ryan Sturmc65dbe42018-05-31 20:37:0468 "loader/pause_subresource_loading_handle.mojom",
Tarun Bansaldc970292018-07-12 00:02:5869 "loader/previews_resource_loading_hints.mojom",
Kinuko Yasuda4be168c2019-05-16 05:14:3370 "loader/request_context_frame_type.mojom",
Hiroki Nakagawa753758342018-12-27 04:13:4971 "loader/url_loader_factory_bundle.mojom",
Julie Jeongeun Kim4a064a92019-03-13 10:17:4572 "locks/lock_manager.mojom",
Dmitry Gozman88ca5a992018-05-18 00:13:3373 "manifest/display_mode.mojom",
74 "manifest/manifest.mojom",
75 "manifest/manifest_manager.mojom",
Miyoung Shin0de5d9b2019-05-06 05:42:3476 "manifest/manifest_observer.mojom",
Antonio Gomesafe481a2019-07-18 01:32:5277 "mediastream/aec_dump.mojom",
Guido Urdanetad45f3ed62019-01-16 13:48:1878 "mediastream/media_devices.mojom",
Guido Urdaneta73fa6632019-01-14 18:46:2679 "mediastream/media_stream.mojom",
Julie Jeongeun Kim97410ad2019-02-27 08:04:5180 "mime/mime_registry.mojom",
Marijn Kruisselbrink2d848032019-05-07 19:38:3881 "native_file_system/native_file_system_directory_handle.mojom",
82 "native_file_system/native_file_system_error.mojom",
83 "native_file_system/native_file_system_file_handle.mojom",
Olivier Yiptong74cf65e42019-06-22 13:51:4184 "native_file_system/native_file_system_file_writer.mojom",
Marijn Kruisselbrink2d848032019-05-07 19:38:3885 "native_file_system/native_file_system_manager.mojom",
86 "native_file_system/native_file_system_transfer_token.mojom",
Han Leon96d6b6e8c22018-09-06 06:21:0687 "notifications/notification.mojom",
Julie Jeongeun Kim54134502019-03-22 10:40:1388 "notifications/notification_service.mojom",
Julie Jeongeun Kim08999f292019-02-27 23:30:4189 "oom_intervention/oom_intervention.mojom",
Becca Hughes6fe54e432018-06-09 04:18:5690 "page/display_cutout.mojom",
Michael Thiessen07c444c2019-04-26 03:53:1191 "page/spatial_navigation.mojom",
Han Leonabbe7c902018-08-30 02:08:1092 "payments/payment_app.mojom",
Julie Jeongeun Kim162c2d282019-03-13 07:23:5293 "permissions/permission.mojom",
94 "permissions/permission_status.mojom",
Mounir Lamouri99ba5a62019-02-12 01:27:4795 "picture_in_picture/picture_in_picture.mojom",
Jeremy Romanb7024742018-06-18 22:00:2296 "plugins/plugin_registry.mojom",
mark a. foltz6bbe59f2018-07-24 20:06:2497 "presentation/presentation.mojom",
Mario Sanchez Prada683f2f4a2019-05-07 12:41:4698 "push_messaging/push_messaging.mojom",
Mario Sanchez Pradad2990112019-05-07 08:13:4999 "push_messaging/push_messaging_status.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01100 "quota/quota_dispatcher_host.mojom",
101 "quota/quota_types.mojom",
Leon Han075e0b32018-11-06 07:59:44102 "referrer.mojom",
Leon Hanf4003a162019-01-28 05:31:58103 "renderer_preference_watcher.mojom",
Leon Hanc819dc62019-01-28 04:30:19104 "renderer_preferences.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18105 "reporting/reporting.mojom",
Hiroki Nakagawa4b072c62018-11-07 03:57:25106 "script/script_type.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10107 "selection_menu/selection_menu_behavior.mojom",
Leon Han74d7ed32019-04-02 11:29:14108 "service_worker/controller_service_worker_mode.mojom",
Han Leon122d28182018-06-26 07:56:55109 "service_worker/dispatch_fetch_event_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01110 "service_worker/navigation_preload_state.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01111 "service_worker/service_worker_client.mojom",
112 "service_worker/service_worker_error_type.mojom",
113 "service_worker/service_worker_event_status.mojom",
Han Leon9a3a2fb2018-08-07 02:56:01114 "service_worker/service_worker_fetch_response_callback.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01115 "service_worker/service_worker_installed_scripts_manager.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01116 "service_worker/service_worker_provider_type.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01117 "service_worker/service_worker_state.mojom",
118 "service_worker/service_worker_stream_handle.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18119 "site_engagement/site_engagement.mojom",
Jun Caic5030f572019-06-19 22:47:44120 "sms/sms_receiver.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:14121 "speech/speech_recognition_error.mojom",
Adithya Srinivasan80383372019-04-17 21:29:24122 "speech/speech_recognition_error_code.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:14123 "speech/speech_recognition_grammar.mojom",
124 "speech/speech_recognition_result.mojom",
125 "speech/speech_recognizer.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18126 "ukm/ukm.mojom",
Mike West6e4cbb32019-02-13 09:40:17127 "user_agent/user_agent_metadata.mojom",
Leon Hancaae6db2019-02-03 03:37:54128 "v8_cache_options.mojom",
Mounir Lamouri54c31f52018-12-09 02:52:54129 "wake_lock/wake_lock.mojom",
Jay Harrisf6a6b9a2019-07-24 01:42:00130 "web_launch/web_launch.mojom",
Findite6ed5abb2019-07-03 20:33:59131 "webaudio/audio_context_manager.mojom",
Julie Jeongeun Kim4fee1cd82019-03-20 07:34:03132 "webdatabase/web_database.mojom",
Yutaka Hirano8e0b4d432019-07-04 07:12:38133 "websockets/websocket_connector.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10134 "window_features/window_features.mojom",
Dave Tapuska5c84c022019-08-22 13:00:08135 "worker/dedicated_worker_host.mojom",
Hiroki Nakagawa2da3b582018-12-10 06:44:52136 "worker/shared_worker.mojom",
Hiroki Nakagawad0dee832018-12-04 11:19:10137 "worker/shared_worker_client.mojom",
Hiroki Nakagawa0e677762018-12-06 14:55:38138 "worker/shared_worker_connector.mojom",
Hiroki Nakagawa32376a52018-12-03 10:49:23139 "worker/shared_worker_creation_context_type.mojom",
Hiroki Nakagawa86d9e0e2018-12-06 10:55:00140 "worker/shared_worker_host.mojom",
Hiroki Nakagawa1f236df2018-12-06 06:55:27141 "worker/shared_worker_info.mojom",
Leon Han6ac123d2019-01-17 07:52:25142 "worker/worker_content_settings_proxy.mojom",
Hiroki Nakagawa32376a52018-12-03 10:49:23143 "worker/worker_main_script_load_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01144 ]
145
Reilly Grant2814fb72019-03-19 17:04:46146 if (!is_android) {
147 sources += [ "serial/serial.mojom" ]
148 }
149
Dominik Röttsches24f9d162019-01-04 10:43:56150 if (is_win) {
151 sources += [ "dwrite_font_proxy/dwrite_font_proxy.mojom" ]
152 }
153
Kinuko Yasudafa0f2512018-03-01 07:13:01154 public_deps = [
Findite6ed5abb2019-07-03 20:33:59155 ":android_mojo_bindings",
156 ":authenticator_test_mojo_bindings",
Ian Wellscbc4e6f2019-02-07 22:07:57157 ":mojom_mhtml_load_result",
Julie Jeongeun Kim573ba3d2019-03-01 11:35:22158 ":web_client_hints_types_mojo_bindings",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15159 ":web_feature_mojo_bindings",
Han Leonabbe7c902018-08-30 02:08:10160 "//components/payments/mojom",
Miyoung Shina26226512019-07-17 09:44:38161 "//components/services/filesystem/public/mojom",
Oksana Zhuravlova015487b32018-03-09 06:58:22162 "//mojo/public/mojom/base",
Dmitry Gozman88ca5a992018-05-18 00:13:33163 "//services/device/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01164 "//services/network/public/mojom",
Minggang Wang1449cc52019-07-04 08:52:24165 "//services/network/public/mojom:data_pipe_interfaces",
Yutaka Hirano8e0b4d432019-07-04 07:12:38166 "//services/network/public/mojom:websocket_mojom",
Hiroki Nakagawac30b9f02018-12-03 11:26:01167 "//services/service_manager/public/mojom",
Miyoung Shin99505dd2019-07-27 12:45:35168 "//services/viz/public/mojom",
Miyoung Shin40adbd62019-07-30 07:33:40169 "//skia/public/mojom",
Donna Wu838ac362018-08-10 10:36:33170 "//third_party/blink/public/mojom/usb",
Miyoung Shinb18c4762019-07-27 08:14:40171 "//ui/base/ime/mojom",
Miyoung Shin87943f502019-07-26 13:31:58172 "//ui/gfx/geometry/mojom",
Miyoung Shin16bb4c02019-07-30 03:46:14173 "//ui/gfx/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01174 "//url/mojom:url_mojom_gurl",
175 "//url/mojom:url_mojom_origin",
176 ]
177
Guido Urdaneta73fa6632019-01-14 18:46:26178 # iOS doesn't use and must not depend on //media
179 if (!is_ios) {
180 public_deps += [
181 "//media/capture/mojom:video_capture",
Miyoung Shin25bb8c092019-08-03 00:56:57182 "//media/mojo/mojom",
Guido Urdaneta73fa6632019-01-14 18:46:26183 ]
184 }
185
Leon Hanc819dc62019-01-28 04:30:19186 if (is_linux || is_chromeos) {
187 enabled_features = [ "renderer_pref_system_font_family_name" ]
188 }
189
Kinuko Yasudafa0f2512018-03-01 07:13:01190 export_class_attribute = "BLINK_COMMON_EXPORT"
191 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43192 export_header = "third_party/blink/public/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01193
194 export_class_attribute_blink = "PLATFORM_EXPORT"
195 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06196 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Suzy Li5ec40b12019-07-12 20:25:58197
198 # Don't scramble message IDs so they are redistributable to external tests.
199 scramble_message_ids = false
Kinuko Yasudafa0f2512018-03-01 07:13:01200}
201
Julie Jeongeun Kim17abfc72019-03-26 22:49:18202# Kept separate from "mojom_platform" because the Java bindings are
203# needed by Android's implementation (in chrome/android or in android_webview)
204# for following mojom files.
Han Leonabbe7c902018-08-30 02:08:10205mojom("android_mojo_bindings") {
206 sources = [
Eric Willigerse99debf52019-04-05 01:32:05207 "blob/blob.mojom",
208 "blob/blob_registry.mojom",
209 "blob/blob_url_store.mojom",
210 "blob/data_element.mojom",
211 "blob/serialized_blob.mojom",
Julie Jeongeun Kim17abfc72019-03-26 22:49:18212 "document_metadata/copyless_paste.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25213 "font_unique_name_lookup/font_unique_name_lookup.mojom",
Julie Jeongeun Kim7de77e92019-02-27 00:14:15214 "input/input_host.mojom",
215 "input/input_messages.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25216 "installation/installation.mojom",
Julie Jeongeun Kimd3d00a12019-03-25 01:46:25217 "installedapp/installed_app_provider.mojom",
218 "installedapp/related_application.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25219 "mediasession/media_session.mojom",
Rouslan Solomakhina480efa2019-05-06 15:37:22220 "payments/payment_handler_host.mojom",
Han Leonabbe7c902018-08-30 02:08:10221 "payments/payment_request.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10222 "remote_objects/remote_objects.mojom",
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26223 "webauthn/authenticator.mojom",
Manas Verma77aeb1782019-05-13 20:40:52224 "webauthn/internal_authenticator.mojom",
Eric Willigers3eeae17c2019-03-13 17:32:10225 "webshare/webshare.mojom",
Han Leonabbe7c902018-08-30 02:08:10226 ]
Michael Thiessen909ba032019-03-26 23:47:43227 if (is_android && notouch_build) {
228 sources += [ "media_controls/touchless/media_controls.mojom" ]
229 }
Han Leonabbe7c902018-08-30 02:08:10230 public_deps = [
231 "//components/payments/mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10232 "//mojo/public/mojom/base",
Julie Jeongeun Kime6178522019-03-31 06:02:25233 "//services/media_session/public/mojom",
Eric Willigerse99debf52019-04-05 01:32:05234 "//services/network/public/mojom",
Eric Willigers3eeae17c2019-03-13 17:32:10235 "//url/mojom:url_mojom_gurl",
236 "//url/mojom:url_mojom_origin",
Han Leonabbe7c902018-08-30 02:08:10237 ]
238
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18239 # This Android unhandled-tap feature uses another mojo source, add it in.
240 if (enable_unhandled_tap) {
241 sources += [ "unhandled_tap_notifier/unhandled_tap_notifier.mojom" ]
Miyoung Shin87943f502019-07-26 13:31:58242 public_deps += [ "//ui/gfx/geometry/mojom" ]
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18243 }
244
Han Leonabbe7c902018-08-30 02:08:10245 export_class_attribute = "BLINK_COMMON_EXPORT"
246 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43247 export_header = "third_party/blink/public/common/common_export.h"
Han Leonabbe7c902018-08-30 02:08:10248
249 export_class_attribute_blink = "PLATFORM_EXPORT"
250 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
251 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26252
253 # Don't scramble message IDs so they are redistributable to external tests.
254 scramble_message_ids = false
Han Leonabbe7c902018-08-30 02:08:10255}
256
Kinuko Yasudafa0f2512018-03-01 07:13:01257# This target can include mojom interfaces which do use types that are
Chase Phillips4f62c052018-11-06 01:43:51258# typemapped to a type in renderer/core. This also means these interfaces are
259# not available from renderer/platform.
Hiroki Nakagawa9144ec862019-01-28 10:12:44260#
Han Leonb2f46cd2018-03-09 01:59:16261# In future we may have a separate mojom target for the things that may have
262# modules dependencies if it looks necessary, at that time we can put all of
263# those high-level service worker mojom files there.
Han Leon19420c72018-03-08 01:59:55264mojom("mojom_core") {
Kinuko Yasudafa0f2512018-03-01 07:13:01265 sources = [
Zhuoyu Qianb647e772018-09-19 04:04:47266 "messaging/cloneable_message.mojom",
Chris Hamiltonb08dc862019-08-07 15:46:04267 "messaging/message_port_descriptor.mojom",
Zhuoyu Qianb647e772018-09-19 04:04:47268 "messaging/transferable_message.mojom",
Zhuoyu Qian47ed0fc52018-09-06 02:13:40269 "messaging/user_activation_snapshot.mojom",
Lucas Furukawa Gadani72655072018-07-26 22:34:33270 "portal/portal.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44271
272 # Note that service_worker_object.mojom and service_worker.mojom depend on
273 # transferable_message.mojom, and controller_service_worker.mojom and
274 # service_worker_registration.mojom depend on service_worker_object.mojom,
275 # so we put these service worker mojom files here rather than mojom_platform
276 # target.
Hiroki Nakagawacdbc7912018-11-30 11:30:05277 "service_worker/controller_service_worker.mojom",
Leon Han6e7c6e2f2019-02-03 07:26:56278 "service_worker/embedded_worker.mojom",
Han Leon94335e42018-03-15 08:44:18279 "service_worker/service_worker.mojom",
Richard Li743a69f2018-12-21 06:44:56280 "service_worker/service_worker_container.mojom",
Han Leonb2f46cd2018-03-09 01:59:16281 "service_worker/service_worker_object.mojom",
Richard Li32fb39202018-12-21 06:49:41282 "service_worker/service_worker_provider.mojom",
Han Leonb2f46cd2018-03-09 01:59:16283 "service_worker/service_worker_registration.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44284
285 # Depends on controller_service_worker.mojom.
Hiroki Nakagawa3d14c4f2019-02-09 01:27:30286 "worker/dedicated_worker_host_factory.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44287 "worker/shared_worker_factory.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01288 ]
289
290 public_deps = [
Eric Willigerse99debf52019-04-05 01:32:05291 ":android_mojo_bindings",
Kinuko Yasudafa0f2512018-03-01 07:13:01292 ":mojom_platform",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15293 ":web_feature_mojo_bindings",
Richard Li99e67742018-12-20 05:28:13294 "//components/payments/mojom",
Ken Rockot1ca39312018-04-12 05:32:55295 "//mojo/public/mojom/base",
Richard Li99e67742018-12-20 05:28:13296 "//services/network/public/mojom",
Richard Li32fb39202018-12-21 06:49:41297 "//services/service_manager/public/mojom",
Miyoung Shin40adbd62019-07-30 07:33:40298 "//skia/public/mojom",
Han Leonb2f46cd2018-03-09 01:59:16299 "//url/mojom:url_mojom_gurl",
Richard Li99e67742018-12-20 05:28:13300 "//url/mojom:url_mojom_origin",
Kinuko Yasudafa0f2512018-03-01 07:13:01301 ]
302
Richard Li99e67742018-12-20 05:28:13303 overridden_deps_blink = [
Eric Willigerse99debf52019-04-05 01:32:05304 ":android_mojo_bindings",
Richard Li99e67742018-12-20 05:28:13305 ":mojom_platform",
306 "//services/network/public/mojom",
307 ]
Blink Reformata30d4232018-04-07 15:31:06308 component_deps_blink = [ "//third_party/blink/renderer/platform" ]
Kinuko Yasudafa0f2512018-03-01 07:13:01309
310 export_class_attribute = "BLINK_COMMON_EXPORT"
311 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43312 export_header = "third_party/blink/public/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01313
314 export_class_attribute_blink = "CORE_EXPORT"
315 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06316 export_header_blink = "third_party/blink/renderer/core/core_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01317}
Chase Phillips4f62c052018-11-06 01:43:51318
319# This target can include mojom interfaces which use types that are typemapped
320# to a type in renderer/modules. This also means these interfaces are not
321# available from renderer/platform or renderer/core.
322mojom("mojom_modules") {
323 sources = [
324 "indexeddb/indexeddb.mojom",
325 ]
326
327 public_deps = [
Eric Willigerse99debf52019-04-05 01:32:05328 ":android_mojo_bindings",
Chase Phillips4f62c052018-11-06 01:43:51329 ":mojom_core",
Chase Phillips4f62c052018-11-06 01:43:51330 "//mojo/public/mojom/base",
Chase Phillips4f62c052018-11-06 01:43:51331 ]
332
333 overridden_deps_blink = [
Eric Willigerse99debf52019-04-05 01:32:05334 ":android_mojo_bindings",
Chase Phillips4f62c052018-11-06 01:43:51335 ":mojom_core",
Chase Phillips4f62c052018-11-06 01:43:51336 ]
Daniel Bratella8e802a2019-04-03 13:27:18337 component_deps_blink = [ "//third_party/blink/renderer/core" ]
Chase Phillips4f62c052018-11-06 01:43:51338
339 export_class_attribute = "BLINK_COMMON_EXPORT"
340 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
341 export_header = "third_party/blink/public/common/common_export.h"
342
343 export_class_attribute_blink = "MODULES_EXPORT"
344 export_define_blink = "BLINK_MODULES_IMPLEMENTATION=1"
345 export_header_blink = "third_party/blink/renderer/modules/modules_export.h"
346}
Ian Wellscbc4e6f2019-02-07 22:07:57347
Julie Jeongeun Kim4f1b5aa2019-05-08 01:32:09348mojom("web_bluetooth_mojo_bindings") {
349 visibility = [
Ovidio Henriquez0e8ab7072019-05-31 21:38:07350 "//third_party/blink/common",
351 "//third_party/blink/public/common:common",
352 "//third_party/blink/public/common:headers",
Julie Jeongeun Kim4f1b5aa2019-05-08 01:32:09353 ]
354
Ovidio Henriquez0e8ab7072019-05-31 21:38:07355 visibility_blink = [
356 "//third_party/blink/common",
357 "//third_party/blink/public/common:common",
358 "//third_party/blink/public/common:headers",
359 "//third_party/blink/renderer/platform:blink_platform_public_deps",
360 ]
Julie Jeongeun Kim4f1b5aa2019-05-08 01:32:09361
362 sources = [
363 "bluetooth/web_bluetooth.mojom",
364 ]
365
366 public_deps = [
367 "//device/bluetooth/public/mojom",
368 ]
369
370 # The chromium variant must be linked with content and use the same export
371 # settings in component build because of the WebBluetoothDeviceId typemap
372 # inside content.
Ovidio Henriquez0e8ab7072019-05-31 21:38:07373 export_class_attribute = "BLINK_COMMON_EXPORT"
374 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
375 export_header = "third_party/blink/public/common/common_export.h"
Julie Jeongeun Kim4f1b5aa2019-05-08 01:32:09376
377 # Similarly, the blink variant must be linked with the platform component
378 # since it uses types from it in its typemaps.
379 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
380 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
381 export_header_blink = "third_party/blink/public/platform/web_common.h"
382}
383
Julie Jeongeun Kim6d9562f2019-03-27 09:17:43384# The mojom_broadcastchannel_bindings is separated from the rest of mojom files
385# to allow blink/renderer/core to depend on this.
386mojom("mojom_broadcastchannel_bindings") {
387 visibility = [ "//content/*" ]
388 visibility_blink = [ "//third_party/blink/renderer/core/*" ]
389 sources = [
390 "broadcastchannel/broadcast_channel.mojom",
391 ]
392 public_deps = [
393 ":mojom_core",
394 "//url/mojom:url_mojom_origin",
395 ]
396
397 overridden_deps = [ ":mojom_core" ]
398 component_deps = [ "//third_party/blink/public/common" ]
399
400 component_output_prefix = "blink_mojom_broadcastchannel_bindings"
401
402 # See comment above.
403 export_class_attribute = "CONTENT_EXPORT"
404 export_define = "CONTENT_IMPLEMENTATION=1"
405 export_header = "content/common/content_export.h"
406
407 # Similarly, the blink variant must be linked with the core component
408 # since it uses types from it in its typemaps.
409 export_class_attribute_blink = "CORE_EXPORT"
410 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
411 export_header_blink = "third_party/blink/renderer/core/core_export.h"
412}
413
Ian Wellscbc4e6f2019-02-07 22:07:57414mojom("mojom_mhtml_load_result") {
415 sources = [
416 "loader/mhtml_load_result.mojom",
417 ]
418
419 export_class_attribute = "BLINK_COMMON_EXPORT"
420 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
421 export_header = "third_party/blink/public/common/common_export.h"
422}
Julie Jeongeun Kim184d78a62019-03-01 02:10:15423
424# The web_feature_mojo_bindings is separated from the rest of the mojom files
425# because the chromium typemap for blink mojo_bindings has private content
426# dependencies.
427mojom_component("web_feature_mojo_bindings") {
428 sources = [
Majid Valipourb9ee0972019-08-22 15:16:23429 "use_counter/css_property_id.mojom",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15430 "web_feature/web_feature.mojom",
431 ]
432
433 macro_prefix = "WEB_FEATURE_MOJO_BINDINGS_MOJOM"
434 output_prefix = "web_feature_mojo_bindings_mojom"
435}
Julie Jeongeun Kim573ba3d2019-03-01 11:35:22436
437# The web_client_hints_types_mojo_bindings is separated from the rest of the
438# mojom files because the chromium typemap for blink mojo_bindings has private
439# content dependencies.
440mojom("web_client_hints_types_mojo_bindings") {
441 sources = [
442 "web_client_hints/web_client_hints_types.mojom",
443 ]
444}
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26445
Julie Jeongeun Kim8b3d55242019-03-27 00:05:56446# The embedded_frame_sink_mojo_bindings is separated from the rest of mojom
447# files because its deps contain too many files in Chromium that would pollute
448# the include paths in generated mojom-blink files for other services.
449mojom("embedded_frame_sink_mojo_bindings") {
450 visibility = [ "//content/*" ]
451 visibility_blink = [ "//third_party/blink/renderer/platform" ]
452 sources = [
453 "frame_sinks/embedded_frame_sink.mojom",
454 ]
455 deps = [
Miyoung Shin99505dd2019-07-27 12:45:35456 "//services/viz/public/mojom",
Julie Jeongeun Kim8b3d55242019-03-27 00:05:56457 ]
458
459 component_output_prefix = "blink_embedded_frame_sink_mojo_bindings"
460
461 # The chromium variant must be linked with content and use the same export
462 # settings in component build.
463 export_class_attribute = "CONTENT_EXPORT"
464 export_define = "CONTENT_IMPLEMENTATION=1"
465 export_header = "content/common/content_export.h"
466 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
467 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
468 export_header_blink = "third_party/blink/public/platform/web_common.h"
469}
470
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26471# This is a separate target because it needs unscrambled message IDs.
472mojom("authenticator_test_mojo_bindings") {
473 sources = [
474 "webauthn/virtual_authenticator.mojom",
475 ]
476
477 public_deps = [
478 ":android_mojo_bindings",
479 "//url/mojom:url_mojom_gurl",
480 ]
481
482 export_class_attribute = "BLINK_COMMON_EXPORT"
483 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
484 export_header = "third_party/blink/public/common/common_export.h"
485
486 export_class_attribute_blink = "PLATFORM_EXPORT"
487 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
488 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
489
490 # Don't scramble message IDs so they are redistributable to external tests.
491 scramble_message_ids = false
492}