blob: ba6219a7214443d9b55ec56fe7ab52ea122b56be [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 Li912523f02018-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",
Richard Libcc09eb2018-11-30 15:00:3527 "cache_storage/cache_storage.mojom",
Abhijeet Kandalkar849ceff2019-02-28 17:37:2928 "choosers/color_chooser.mojom",
Kent Tamurac260c9a2018-09-14 09:10:5629 "choosers/file_chooser.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0130 "clipboard/clipboard.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1031 "commit_result/commit_result.mojom",
Finnur Thorarinsson522d3782018-12-05 02:17:4332 "contacts/contacts_manager.mojom",
Victor Costan7184272a2018-05-15 13:17:4333 "cookie_store/cookie_store.mojom",
Yuzu Saijo2d12ef92018-08-21 04:52:0734 "crash/crash_memory_metrics_reporter.mojom",
Oksana Zhuravlova424f33e2019-03-18 20:53:2135 "credentialmanager/credential_manager.mojom",
Hiroki Nakagawa792fcc32018-12-06 06:50:5736 "csp/content_security_policy.mojom",
Leon Han797b2132019-01-20 12:43:1837 "devtools/console_message.mojom",
Hiroki Nakagawa7c0a7e72018-12-10 04:31:2938 "devtools/devtools_agent.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1039 "devtools/devtools_frontend.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5940 "dom_storage/session_storage_namespace.mojom",
Marijn Kruisselbrinkf9a9e762018-06-07 18:57:1241 "dom_storage/storage_area.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5942 "dom_storage/storage_partition_service.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0143 "feature_policy/feature_policy.mojom",
Richard Lie6899952018-11-30 08:42:0044 "fetch/fetch_api_request.mojom",
Han Leon6bbe7912018-07-31 01:13:4645 "fetch/fetch_api_response.mojom",
Jeremy Roman89a4d0d2018-04-26 19:05:2846 "file/file_utilities.mojom",
Adithya Srinivasan0c72ff02018-08-13 19:47:2947 "filesystem/file_system.mojom",
Oksana Zhuravlova8b88e572019-01-07 21:54:0048 "frame/document_interface_broker.mojom",
Rakina Zata Amniacf40492018-05-08 22:59:3349 "frame/find_in_page.mojom",
Oksana Zhuravlova8b88e572019-01-07 21:54:0050 "frame/frame_host_test_interface.mojom",
Dave Tapuskad6703f912019-01-31 23:13:1151 "frame/lifecycle.mojom",
Andy Paicuc93d30862018-10-10 15:33:4552 "frame/navigation_initiator.mojom",
Julie Jeongeun Kim162c2d282019-03-13 07:23:5253 "geolocation/geolocation_service.mojom",
Julie Jeongeun Kimea2e19a2019-03-13 09:59:4954 "hyphenation/hyphenation.mojom",
Julie Jeongeun Kim9f06c5a2019-03-21 07:27:3155 "idle/idle_manager.mojom",
Julie Jeongeun Kim0cecf4b2019-03-13 11:52:3556 "insecure_input/insecure_input_service.mojom",
Julie Jeongeun Kim41401192019-03-11 13:02:3257 "keyboard_lock/keyboard_lock.mojom",
Dmitry Gozmand016d882018-04-20 01:55:2458 "leak_detector/leak_detector.mojom",
Bill Budge24c1dc1a2018-09-25 18:51:3259 "loader/code_cache.mojom",
Lu Chen5bec7a302018-06-26 18:52:3260 "loader/navigation_predictor.mojom",
Ryan Sturmc65dbe42018-05-31 20:37:0461 "loader/pause_subresource_loading_handle.mojom",
Tarun Bansaldc970292018-07-12 00:02:5862 "loader/previews_resource_loading_hints.mojom",
Hiroki Nakagawa753758342018-12-27 04:13:4963 "loader/url_loader_factory_bundle.mojom",
Julie Jeongeun Kim4a064a92019-03-13 10:17:4564 "locks/lock_manager.mojom",
Dmitry Gozman88ca5a992018-05-18 00:13:3365 "manifest/display_mode.mojom",
66 "manifest/manifest.mojom",
67 "manifest/manifest_manager.mojom",
Miyoung Shin0de5d9b2019-05-06 05:42:3468 "manifest/manifest_observer.mojom",
Guido Urdanetad45f3ed62019-01-16 13:48:1869 "mediastream/media_devices.mojom",
Guido Urdaneta73fa6632019-01-14 18:46:2670 "mediastream/media_stream.mojom",
Julie Jeongeun Kim97410ad2019-02-27 08:04:5171 "mime/mime_registry.mojom",
Marijn Kruisselbrink2d848032019-05-07 19:38:3872 "native_file_system/native_file_system_directory_handle.mojom",
73 "native_file_system/native_file_system_error.mojom",
74 "native_file_system/native_file_system_file_handle.mojom",
75 "native_file_system/native_file_system_manager.mojom",
76 "native_file_system/native_file_system_transfer_token.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0177 "net/ip_address_space.mojom",
Han Leon96d6b6e8c22018-09-06 06:21:0678 "notifications/notification.mojom",
Julie Jeongeun Kim54134502019-03-22 10:40:1379 "notifications/notification_service.mojom",
Julie Jeongeun Kim08999f292019-02-27 23:30:4180 "oom_intervention/oom_intervention.mojom",
Becca Hughes6fe54e432018-06-09 04:18:5681 "page/display_cutout.mojom",
Michael Thiessen07c444c2019-04-26 03:53:1182 "page/spatial_navigation.mojom",
Han Leonabbe7c902018-08-30 02:08:1083 "payments/payment_app.mojom",
Julie Jeongeun Kim162c2d282019-03-13 07:23:5284 "permissions/permission.mojom",
85 "permissions/permission_status.mojom",
Mounir Lamouri99ba5a62019-02-12 01:27:4786 "picture_in_picture/picture_in_picture.mojom",
Jeremy Romanb7024742018-06-18 22:00:2287 "plugins/plugin_registry.mojom",
mark a. foltz6bbe59f2018-07-24 20:06:2488 "presentation/presentation.mojom",
Mario Sanchez Prada683f2f4a2019-05-07 12:41:4689 "push_messaging/push_messaging.mojom",
Mario Sanchez Pradad2990112019-05-07 08:13:4990 "push_messaging/push_messaging_status.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0191 "quota/quota_dispatcher_host.mojom",
92 "quota/quota_types.mojom",
Leon Han075e0b32018-11-06 07:59:4493 "referrer.mojom",
Leon Hanf4003a162019-01-28 05:31:5894 "renderer_preference_watcher.mojom",
Leon Hanc819dc62019-01-28 04:30:1995 "renderer_preferences.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:1896 "reporting/reporting.mojom",
Hiroki Nakagawa4b072c62018-11-07 03:57:2597 "script/script_type.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1098 "selection_menu/selection_menu_behavior.mojom",
Leon Han74d7ed32019-04-02 11:29:1499 "service_worker/controller_service_worker_mode.mojom",
Han Leon122d28182018-06-26 07:56:55100 "service_worker/dispatch_fetch_event_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01101 "service_worker/navigation_preload_state.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01102 "service_worker/service_worker_client.mojom",
103 "service_worker/service_worker_error_type.mojom",
104 "service_worker/service_worker_event_status.mojom",
Han Leon9a3a2fb2018-08-07 02:56:01105 "service_worker/service_worker_fetch_response_callback.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01106 "service_worker/service_worker_installed_scripts_manager.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01107 "service_worker/service_worker_provider_type.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01108 "service_worker/service_worker_state.mojom",
109 "service_worker/service_worker_stream_handle.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18110 "site_engagement/site_engagement.mojom",
Sam Goto9c87da7e2019-04-30 23:09:45111 "sms/sms_manager.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:14112 "speech/speech_recognition_error.mojom",
Adithya Srinivasan80383372019-04-17 21:29:24113 "speech/speech_recognition_error_code.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:14114 "speech/speech_recognition_grammar.mojom",
115 "speech/speech_recognition_result.mojom",
116 "speech/speech_recognizer.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18117 "ukm/ukm.mojom",
Luna Lu29d922d2018-03-27 18:06:51118 "use_counter/css_property_id.mojom",
Mike West6e4cbb32019-02-13 09:40:17119 "user_agent/user_agent_metadata.mojom",
Leon Hancaae6db2019-02-03 03:37:54120 "v8_cache_options.mojom",
Mounir Lamouri54c31f52018-12-09 02:52:54121 "wake_lock/wake_lock.mojom",
Raymond Toye413650c2018-08-31 00:12:47122 "webaudio/audio_context_manager.mojom",
Julie Jeongeun Kim4fee1cd82019-03-20 07:34:03123 "webdatabase/web_database.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10124 "window_features/window_features.mojom",
Hiroki Nakagawa2da3b582018-12-10 06:44:52125 "worker/shared_worker.mojom",
Hiroki Nakagawad0dee832018-12-04 11:19:10126 "worker/shared_worker_client.mojom",
Hiroki Nakagawa0e677762018-12-06 14:55:38127 "worker/shared_worker_connector.mojom",
Hiroki Nakagawa32376a52018-12-03 10:49:23128 "worker/shared_worker_creation_context_type.mojom",
Hiroki Nakagawa86d9e0e2018-12-06 10:55:00129 "worker/shared_worker_host.mojom",
Hiroki Nakagawa1f236df2018-12-06 06:55:27130 "worker/shared_worker_info.mojom",
Leon Han6ac123d2019-01-17 07:52:25131 "worker/worker_content_settings_proxy.mojom",
Hiroki Nakagawa32376a52018-12-03 10:49:23132 "worker/worker_main_script_load_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01133 ]
134
Reilly Grant2814fb72019-03-19 17:04:46135 if (!is_android) {
136 sources += [ "serial/serial.mojom" ]
137 }
138
Dominik Röttsches24f9d162019-01-04 10:43:56139 if (is_win) {
140 sources += [ "dwrite_font_proxy/dwrite_font_proxy.mojom" ]
141 }
142
Kinuko Yasudafa0f2512018-03-01 07:13:01143 public_deps = [
Han Leonabbe7c902018-08-30 02:08:10144 ":android_mojo_bindings",
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26145 ":authenticator_test_mojo_bindings",
Ian Wellscbc4e6f2019-02-07 22:07:57146 ":mojom_mhtml_load_result",
Julie Jeongeun Kim573ba3d2019-03-01 11:35:22147 ":web_client_hints_types_mojo_bindings",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15148 ":web_feature_mojo_bindings",
Han Leonabbe7c902018-08-30 02:08:10149 "//components/payments/mojom",
Adithya Srinivasan0c72ff02018-08-13 19:47:29150 "//components/services/filesystem/public/interfaces",
Oksana Zhuravlova015487b32018-03-09 06:58:22151 "//mojo/public/mojom/base",
Dmitry Gozman88ca5a992018-05-18 00:13:33152 "//services/device/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01153 "//services/network/public/mojom",
Hiroki Nakagawac30b9f02018-12-03 11:26:01154 "//services/service_manager/public/mojom",
Mounir Lamouri99ba5a62019-02-12 01:27:47155 "//services/viz/public/interfaces",
Mike Wasserman384f907d2018-06-01 01:50:56156 "//skia/public/interfaces",
Donna Wu838ac362018-08-10 10:36:33157 "//third_party/blink/public/mojom/usb",
Kinuko Yasudafa0f2512018-03-01 07:13:01158 "//ui/gfx/geometry/mojo",
Leon Hanc819dc62019-01-28 04:30:19159 "//ui/gfx/mojo",
Kinuko Yasudafa0f2512018-03-01 07:13:01160 "//url/mojom:url_mojom_gurl",
161 "//url/mojom:url_mojom_origin",
162 ]
163
Guido Urdaneta73fa6632019-01-14 18:46:26164 # iOS doesn't use and must not depend on //media
165 if (!is_ios) {
166 public_deps += [
167 "//media/capture/mojom:video_capture",
168 "//media/mojo/interfaces",
169 ]
170 }
171
Leon Hanc819dc62019-01-28 04:30:19172 if (is_linux || is_chromeos) {
173 enabled_features = [ "renderer_pref_system_font_family_name" ]
174 }
175
Kinuko Yasudafa0f2512018-03-01 07:13:01176 export_class_attribute = "BLINK_COMMON_EXPORT"
177 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43178 export_header = "third_party/blink/public/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01179
180 export_class_attribute_blink = "PLATFORM_EXPORT"
181 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06182 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01183}
184
Julie Jeongeun Kim17abfc72019-03-26 22:49:18185# Kept separate from "mojom_platform" because the Java bindings are
186# needed by Android's implementation (in chrome/android or in android_webview)
187# for following mojom files.
Han Leonabbe7c902018-08-30 02:08:10188mojom("android_mojo_bindings") {
189 sources = [
Eric Willigerse99debf52019-04-05 01:32:05190 "blob/blob.mojom",
191 "blob/blob_registry.mojom",
192 "blob/blob_url_store.mojom",
193 "blob/data_element.mojom",
194 "blob/serialized_blob.mojom",
Julie Jeongeun Kim17abfc72019-03-26 22:49:18195 "document_metadata/copyless_paste.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25196 "font_unique_name_lookup/font_unique_name_lookup.mojom",
Julie Jeongeun Kim7de77e92019-02-27 00:14:15197 "input/input_host.mojom",
198 "input/input_messages.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25199 "installation/installation.mojom",
Julie Jeongeun Kimd3d00a12019-03-25 01:46:25200 "installedapp/installed_app_provider.mojom",
201 "installedapp/related_application.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25202 "mediasession/media_session.mojom",
Rouslan Solomakhina480efa2019-05-06 15:37:22203 "payments/payment_handler_host.mojom",
Han Leonabbe7c902018-08-30 02:08:10204 "payments/payment_request.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10205 "remote_objects/remote_objects.mojom",
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26206 "webauthn/authenticator.mojom",
Eric Willigers3eeae17c2019-03-13 17:32:10207 "webshare/webshare.mojom",
Han Leonabbe7c902018-08-30 02:08:10208 ]
Michael Thiessen909ba032019-03-26 23:47:43209 if (is_android && notouch_build) {
210 sources += [ "media_controls/touchless/media_controls.mojom" ]
211 }
Han Leonabbe7c902018-08-30 02:08:10212 public_deps = [
213 "//components/payments/mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10214 "//mojo/public/mojom/base",
Julie Jeongeun Kime6178522019-03-31 06:02:25215 "//services/media_session/public/mojom",
Eric Willigerse99debf52019-04-05 01:32:05216 "//services/network/public/mojom",
Eric Willigers3eeae17c2019-03-13 17:32:10217 "//url/mojom:url_mojom_gurl",
218 "//url/mojom:url_mojom_origin",
Han Leonabbe7c902018-08-30 02:08:10219 ]
220
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18221 # This Android unhandled-tap feature uses another mojo source, add it in.
222 if (enable_unhandled_tap) {
223 sources += [ "unhandled_tap_notifier/unhandled_tap_notifier.mojom" ]
224 public_deps += [ "//ui/gfx/geometry/mojo" ]
225 }
226
Han Leonabbe7c902018-08-30 02:08:10227 export_class_attribute = "BLINK_COMMON_EXPORT"
228 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43229 export_header = "third_party/blink/public/common/common_export.h"
Han Leonabbe7c902018-08-30 02:08:10230
231 export_class_attribute_blink = "PLATFORM_EXPORT"
232 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
233 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26234
235 # Don't scramble message IDs so they are redistributable to external tests.
236 scramble_message_ids = false
Han Leonabbe7c902018-08-30 02:08:10237}
238
Kinuko Yasudafa0f2512018-03-01 07:13:01239# This target can include mojom interfaces which do use types that are
Chase Phillips4f62c052018-11-06 01:43:51240# typemapped to a type in renderer/core. This also means these interfaces are
241# not available from renderer/platform.
Hiroki Nakagawa9144ec862019-01-28 10:12:44242#
Han Leonb2f46cd2018-03-09 01:59:16243# In future we may have a separate mojom target for the things that may have
244# modules dependencies if it looks necessary, at that time we can put all of
245# those high-level service worker mojom files there.
Han Leon19420c72018-03-08 01:59:55246mojom("mojom_core") {
Kinuko Yasudafa0f2512018-03-01 07:13:01247 sources = [
Zhuoyu Qianb647e772018-09-19 04:04:47248 "messaging/cloneable_message.mojom",
249 "messaging/transferable_message.mojom",
Zhuoyu Qian47ed0fc52018-09-06 02:13:40250 "messaging/user_activation_snapshot.mojom",
Lucas Furukawa Gadani72655072018-07-26 22:34:33251 "portal/portal.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44252
253 # Note that service_worker_object.mojom and service_worker.mojom depend on
254 # transferable_message.mojom, and controller_service_worker.mojom and
255 # service_worker_registration.mojom depend on service_worker_object.mojom,
256 # so we put these service worker mojom files here rather than mojom_platform
257 # target.
Hiroki Nakagawacdbc7912018-11-30 11:30:05258 "service_worker/controller_service_worker.mojom",
Leon Han6e7c6e2f2019-02-03 07:26:56259 "service_worker/embedded_worker.mojom",
Han Leon94335e42018-03-15 08:44:18260 "service_worker/service_worker.mojom",
Richard Li743a69f2018-12-21 06:44:56261 "service_worker/service_worker_container.mojom",
Han Leonb2f46cd2018-03-09 01:59:16262 "service_worker/service_worker_object.mojom",
Richard Li32fb39202018-12-21 06:49:41263 "service_worker/service_worker_provider.mojom",
Han Leonb2f46cd2018-03-09 01:59:16264 "service_worker/service_worker_registration.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44265
266 # Depends on controller_service_worker.mojom.
Hiroki Nakagawa3d14c4f2019-02-09 01:27:30267 "worker/dedicated_worker_host_factory.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44268 "worker/shared_worker_factory.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01269 ]
270
271 public_deps = [
Eric Willigerse99debf52019-04-05 01:32:05272 ":android_mojo_bindings",
Kinuko Yasudafa0f2512018-03-01 07:13:01273 ":mojom_platform",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15274 ":web_feature_mojo_bindings",
Richard Li99e67742018-12-20 05:28:13275 "//components/payments/mojom",
Ken Rockot1ca39312018-04-12 05:32:55276 "//mojo/public/mojom/base",
Richard Li99e67742018-12-20 05:28:13277 "//services/network/public/mojom",
Richard Li32fb39202018-12-21 06:49:41278 "//services/service_manager/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01279 "//skia/public/interfaces",
Han Leonb2f46cd2018-03-09 01:59:16280 "//url/mojom:url_mojom_gurl",
Richard Li99e67742018-12-20 05:28:13281 "//url/mojom:url_mojom_origin",
Kinuko Yasudafa0f2512018-03-01 07:13:01282 ]
283
Richard Li99e67742018-12-20 05:28:13284 overridden_deps_blink = [
Eric Willigerse99debf52019-04-05 01:32:05285 ":android_mojo_bindings",
Richard Li99e67742018-12-20 05:28:13286 ":mojom_platform",
287 "//services/network/public/mojom",
288 ]
Blink Reformata30d4232018-04-07 15:31:06289 component_deps_blink = [ "//third_party/blink/renderer/platform" ]
Kinuko Yasudafa0f2512018-03-01 07:13:01290
291 export_class_attribute = "BLINK_COMMON_EXPORT"
292 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43293 export_header = "third_party/blink/public/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01294
295 export_class_attribute_blink = "CORE_EXPORT"
296 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06297 export_header_blink = "third_party/blink/renderer/core/core_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01298}
Chase Phillips4f62c052018-11-06 01:43:51299
300# This target can include mojom interfaces which use types that are typemapped
301# to a type in renderer/modules. This also means these interfaces are not
302# available from renderer/platform or renderer/core.
303mojom("mojom_modules") {
304 sources = [
305 "indexeddb/indexeddb.mojom",
306 ]
307
308 public_deps = [
Eric Willigerse99debf52019-04-05 01:32:05309 ":android_mojo_bindings",
Chase Phillips4f62c052018-11-06 01:43:51310 ":mojom_core",
Chase Phillips4f62c052018-11-06 01:43:51311 "//mojo/public/mojom/base",
Chase Phillips4f62c052018-11-06 01:43:51312 ]
313
314 overridden_deps_blink = [
Eric Willigerse99debf52019-04-05 01:32:05315 ":android_mojo_bindings",
Chase Phillips4f62c052018-11-06 01:43:51316 ":mojom_core",
Chase Phillips4f62c052018-11-06 01:43:51317 ]
Daniel Bratella8e802a2019-04-03 13:27:18318 component_deps_blink = [ "//third_party/blink/renderer/core" ]
Chase Phillips4f62c052018-11-06 01:43:51319
320 export_class_attribute = "BLINK_COMMON_EXPORT"
321 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
322 export_header = "third_party/blink/public/common/common_export.h"
323
324 export_class_attribute_blink = "MODULES_EXPORT"
325 export_define_blink = "BLINK_MODULES_IMPLEMENTATION=1"
326 export_header_blink = "third_party/blink/renderer/modules/modules_export.h"
327}
Ian Wellscbc4e6f2019-02-07 22:07:57328
Julie Jeongeun Kim6d9562f2019-03-27 09:17:43329# The mojom_broadcastchannel_bindings is separated from the rest of mojom files
330# to allow blink/renderer/core to depend on this.
331mojom("mojom_broadcastchannel_bindings") {
332 visibility = [ "//content/*" ]
333 visibility_blink = [ "//third_party/blink/renderer/core/*" ]
334 sources = [
335 "broadcastchannel/broadcast_channel.mojom",
336 ]
337 public_deps = [
338 ":mojom_core",
339 "//url/mojom:url_mojom_origin",
340 ]
341
342 overridden_deps = [ ":mojom_core" ]
343 component_deps = [ "//third_party/blink/public/common" ]
344
345 component_output_prefix = "blink_mojom_broadcastchannel_bindings"
346
347 # See comment above.
348 export_class_attribute = "CONTENT_EXPORT"
349 export_define = "CONTENT_IMPLEMENTATION=1"
350 export_header = "content/common/content_export.h"
351
352 # Similarly, the blink variant must be linked with the core component
353 # since it uses types from it in its typemaps.
354 export_class_attribute_blink = "CORE_EXPORT"
355 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
356 export_header_blink = "third_party/blink/renderer/core/core_export.h"
357}
358
Ian Wellscbc4e6f2019-02-07 22:07:57359mojom("mojom_mhtml_load_result") {
360 sources = [
361 "loader/mhtml_load_result.mojom",
362 ]
363
364 export_class_attribute = "BLINK_COMMON_EXPORT"
365 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
366 export_header = "third_party/blink/public/common/common_export.h"
367}
Julie Jeongeun Kim184d78a62019-03-01 02:10:15368
369# The web_feature_mojo_bindings is separated from the rest of the mojom files
370# because the chromium typemap for blink mojo_bindings has private content
371# dependencies.
372mojom_component("web_feature_mojo_bindings") {
373 sources = [
374 "web_feature/web_feature.mojom",
375 ]
376
377 macro_prefix = "WEB_FEATURE_MOJO_BINDINGS_MOJOM"
378 output_prefix = "web_feature_mojo_bindings_mojom"
379}
Julie Jeongeun Kim573ba3d2019-03-01 11:35:22380
381# The web_client_hints_types_mojo_bindings is separated from the rest of the
382# mojom files because the chromium typemap for blink mojo_bindings has private
383# content dependencies.
384mojom("web_client_hints_types_mojo_bindings") {
385 sources = [
386 "web_client_hints/web_client_hints_types.mojom",
387 ]
388}
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26389
Julie Jeongeun Kim8b3d55242019-03-27 00:05:56390# The embedded_frame_sink_mojo_bindings is separated from the rest of mojom
391# files because its deps contain too many files in Chromium that would pollute
392# the include paths in generated mojom-blink files for other services.
393mojom("embedded_frame_sink_mojo_bindings") {
394 visibility = [ "//content/*" ]
395 visibility_blink = [ "//third_party/blink/renderer/platform" ]
396 sources = [
397 "frame_sinks/embedded_frame_sink.mojom",
398 ]
399 deps = [
400 "//services/viz/public/interfaces",
401 ]
402
403 component_output_prefix = "blink_embedded_frame_sink_mojo_bindings"
404
405 # The chromium variant must be linked with content and use the same export
406 # settings in component build.
407 export_class_attribute = "CONTENT_EXPORT"
408 export_define = "CONTENT_IMPLEMENTATION=1"
409 export_header = "content/common/content_export.h"
410 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
411 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
412 export_header_blink = "third_party/blink/public/platform/web_common.h"
413}
414
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26415# This is a separate target because it needs unscrambled message IDs.
416mojom("authenticator_test_mojo_bindings") {
417 sources = [
418 "webauthn/virtual_authenticator.mojom",
419 ]
420
421 public_deps = [
422 ":android_mojo_bindings",
423 "//url/mojom:url_mojom_gurl",
424 ]
425
426 export_class_attribute = "BLINK_COMMON_EXPORT"
427 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
428 export_header = "third_party/blink/public/common/common_export.h"
429
430 export_class_attribute_blink = "PLATFORM_EXPORT"
431 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
432 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
433
434 # Don't scramble message IDs so they are redistributable to external tests.
435 scramble_message_ids = false
436}