blob: 22ad8fdc81ea5a57c45a53ea11f628f63c5b729f [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",
Marijn Kruisselbrink16af1982018-08-15 21:22:3548 "filesystem/file_writer.mojom",
Oksana Zhuravlova8b88e572019-01-07 21:54:0049 "frame/document_interface_broker.mojom",
Rakina Zata Amniacf40492018-05-08 22:59:3350 "frame/find_in_page.mojom",
Oksana Zhuravlova8b88e572019-01-07 21:54:0051 "frame/frame_host_test_interface.mojom",
Dave Tapuskad6703f912019-01-31 23:13:1152 "frame/lifecycle.mojom",
Andy Paicuc93d30862018-10-10 15:33:4553 "frame/navigation_initiator.mojom",
Julie Jeongeun Kim162c2d282019-03-13 07:23:5254 "geolocation/geolocation_service.mojom",
Julie Jeongeun Kimea2e19a2019-03-13 09:59:4955 "hyphenation/hyphenation.mojom",
Julie Jeongeun Kim9f06c5a2019-03-21 07:27:3156 "idle/idle_manager.mojom",
Julie Jeongeun Kim0cecf4b2019-03-13 11:52:3557 "insecure_input/insecure_input_service.mojom",
Julie Jeongeun Kim41401192019-03-11 13:02:3258 "keyboard_lock/keyboard_lock.mojom",
Dmitry Gozmand016d882018-04-20 01:55:2459 "leak_detector/leak_detector.mojom",
Bill Budge24c1dc1a2018-09-25 18:51:3260 "loader/code_cache.mojom",
Lu Chen5bec7a302018-06-26 18:52:3261 "loader/navigation_predictor.mojom",
Ryan Sturmc65dbe42018-05-31 20:37:0462 "loader/pause_subresource_loading_handle.mojom",
Tarun Bansaldc970292018-07-12 00:02:5863 "loader/previews_resource_loading_hints.mojom",
Hiroki Nakagawa753758342018-12-27 04:13:4964 "loader/url_loader_factory_bundle.mojom",
Julie Jeongeun Kim4a064a92019-03-13 10:17:4565 "locks/lock_manager.mojom",
Dmitry Gozman88ca5a992018-05-18 00:13:3366 "manifest/display_mode.mojom",
67 "manifest/manifest.mojom",
68 "manifest/manifest_manager.mojom",
Miyoung Shin0de5d9b2019-05-06 05:42:3469 "manifest/manifest_observer.mojom",
Guido Urdanetad45f3ed62019-01-16 13:48:1870 "mediastream/media_devices.mojom",
Guido Urdaneta73fa6632019-01-14 18:46:2671 "mediastream/media_stream.mojom",
Julie Jeongeun Kim97410ad2019-02-27 08:04:5172 "mime/mime_registry.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0173 "net/ip_address_space.mojom",
Han Leon96d6b6e8c22018-09-06 06:21:0674 "notifications/notification.mojom",
Julie Jeongeun Kim54134502019-03-22 10:40:1375 "notifications/notification_service.mojom",
Julie Jeongeun Kim08999f292019-02-27 23:30:4176 "oom_intervention/oom_intervention.mojom",
Becca Hughes6fe54e432018-06-09 04:18:5677 "page/display_cutout.mojom",
Michael Thiessen07c444c2019-04-26 03:53:1178 "page/spatial_navigation.mojom",
Han Leonabbe7c902018-08-30 02:08:1079 "payments/payment_app.mojom",
Julie Jeongeun Kim162c2d282019-03-13 07:23:5280 "permissions/permission.mojom",
81 "permissions/permission_status.mojom",
Mounir Lamouri99ba5a62019-02-12 01:27:4782 "picture_in_picture/picture_in_picture.mojom",
Jeremy Romanb7024742018-06-18 22:00:2283 "plugins/plugin_registry.mojom",
mark a. foltz6bbe59f2018-07-24 20:06:2484 "presentation/presentation.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0185 "quota/quota_dispatcher_host.mojom",
86 "quota/quota_types.mojom",
Leon Han075e0b32018-11-06 07:59:4487 "referrer.mojom",
Leon Hanf4003a162019-01-28 05:31:5888 "renderer_preference_watcher.mojom",
Leon Hanc819dc62019-01-28 04:30:1989 "renderer_preferences.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:1890 "reporting/reporting.mojom",
Hiroki Nakagawa4b072c62018-11-07 03:57:2591 "script/script_type.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1092 "selection_menu/selection_menu_behavior.mojom",
Leon Han74d7ed32019-04-02 11:29:1493 "service_worker/controller_service_worker_mode.mojom",
Han Leon122d28182018-06-26 07:56:5594 "service_worker/dispatch_fetch_event_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0195 "service_worker/navigation_preload_state.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0196 "service_worker/service_worker_client.mojom",
97 "service_worker/service_worker_error_type.mojom",
98 "service_worker/service_worker_event_status.mojom",
Han Leon9a3a2fb2018-08-07 02:56:0199 "service_worker/service_worker_fetch_response_callback.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01100 "service_worker/service_worker_installed_scripts_manager.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01101 "service_worker/service_worker_provider_type.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01102 "service_worker/service_worker_state.mojom",
103 "service_worker/service_worker_stream_handle.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18104 "site_engagement/site_engagement.mojom",
Sam Goto9c87da7e2019-04-30 23:09:45105 "sms/sms_manager.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:14106 "speech/speech_recognition_error.mojom",
Adithya Srinivasan80383372019-04-17 21:29:24107 "speech/speech_recognition_error_code.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:14108 "speech/speech_recognition_grammar.mojom",
109 "speech/speech_recognition_result.mojom",
110 "speech/speech_recognizer.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18111 "ukm/ukm.mojom",
Luna Lu29d922d2018-03-27 18:06:51112 "use_counter/css_property_id.mojom",
Mike West6e4cbb32019-02-13 09:40:17113 "user_agent/user_agent_metadata.mojom",
Leon Hancaae6db2019-02-03 03:37:54114 "v8_cache_options.mojom",
Mounir Lamouri54c31f52018-12-09 02:52:54115 "wake_lock/wake_lock.mojom",
Raymond Toye413650c2018-08-31 00:12:47116 "webaudio/audio_context_manager.mojom",
Julie Jeongeun Kim4fee1cd82019-03-20 07:34:03117 "webdatabase/web_database.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10118 "window_features/window_features.mojom",
Hiroki Nakagawa2da3b582018-12-10 06:44:52119 "worker/shared_worker.mojom",
Hiroki Nakagawad0dee832018-12-04 11:19:10120 "worker/shared_worker_client.mojom",
Hiroki Nakagawa0e677762018-12-06 14:55:38121 "worker/shared_worker_connector.mojom",
Hiroki Nakagawa32376a52018-12-03 10:49:23122 "worker/shared_worker_creation_context_type.mojom",
Hiroki Nakagawa86d9e0e2018-12-06 10:55:00123 "worker/shared_worker_host.mojom",
Hiroki Nakagawa1f236df2018-12-06 06:55:27124 "worker/shared_worker_info.mojom",
Leon Han6ac123d2019-01-17 07:52:25125 "worker/worker_content_settings_proxy.mojom",
Hiroki Nakagawa32376a52018-12-03 10:49:23126 "worker/worker_main_script_load_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01127 ]
128
Reilly Grant2814fb72019-03-19 17:04:46129 if (!is_android) {
130 sources += [ "serial/serial.mojom" ]
131 }
132
Dominik Röttsches24f9d162019-01-04 10:43:56133 if (is_win) {
134 sources += [ "dwrite_font_proxy/dwrite_font_proxy.mojom" ]
135 }
136
Kinuko Yasudafa0f2512018-03-01 07:13:01137 public_deps = [
Han Leonabbe7c902018-08-30 02:08:10138 ":android_mojo_bindings",
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26139 ":authenticator_test_mojo_bindings",
Ian Wellscbc4e6f2019-02-07 22:07:57140 ":mojom_mhtml_load_result",
Julie Jeongeun Kim573ba3d2019-03-01 11:35:22141 ":web_client_hints_types_mojo_bindings",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15142 ":web_feature_mojo_bindings",
Han Leonabbe7c902018-08-30 02:08:10143 "//components/payments/mojom",
Adithya Srinivasan0c72ff02018-08-13 19:47:29144 "//components/services/filesystem/public/interfaces",
Oksana Zhuravlova015487b32018-03-09 06:58:22145 "//mojo/public/mojom/base",
Dmitry Gozman88ca5a992018-05-18 00:13:33146 "//services/device/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01147 "//services/network/public/mojom",
Hiroki Nakagawac30b9f02018-12-03 11:26:01148 "//services/service_manager/public/mojom",
Mounir Lamouri99ba5a62019-02-12 01:27:47149 "//services/viz/public/interfaces",
Mike Wasserman384f907d2018-06-01 01:50:56150 "//skia/public/interfaces",
Donna Wu838ac362018-08-10 10:36:33151 "//third_party/blink/public/mojom/usb",
Kinuko Yasudafa0f2512018-03-01 07:13:01152 "//ui/gfx/geometry/mojo",
Leon Hanc819dc62019-01-28 04:30:19153 "//ui/gfx/mojo",
Kinuko Yasudafa0f2512018-03-01 07:13:01154 "//url/mojom:url_mojom_gurl",
155 "//url/mojom:url_mojom_origin",
156 ]
157
Guido Urdaneta73fa6632019-01-14 18:46:26158 # iOS doesn't use and must not depend on //media
159 if (!is_ios) {
160 public_deps += [
161 "//media/capture/mojom:video_capture",
162 "//media/mojo/interfaces",
163 ]
164 }
165
Leon Hanc819dc62019-01-28 04:30:19166 if (is_linux || is_chromeos) {
167 enabled_features = [ "renderer_pref_system_font_family_name" ]
168 }
169
Kinuko Yasudafa0f2512018-03-01 07:13:01170 export_class_attribute = "BLINK_COMMON_EXPORT"
171 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43172 export_header = "third_party/blink/public/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01173
174 export_class_attribute_blink = "PLATFORM_EXPORT"
175 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06176 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01177}
178
Julie Jeongeun Kim17abfc72019-03-26 22:49:18179# Kept separate from "mojom_platform" because the Java bindings are
180# needed by Android's implementation (in chrome/android or in android_webview)
181# for following mojom files.
Han Leonabbe7c902018-08-30 02:08:10182mojom("android_mojo_bindings") {
183 sources = [
Eric Willigerse99debf52019-04-05 01:32:05184 "blob/blob.mojom",
185 "blob/blob_registry.mojom",
186 "blob/blob_url_store.mojom",
187 "blob/data_element.mojom",
188 "blob/serialized_blob.mojom",
Julie Jeongeun Kim17abfc72019-03-26 22:49:18189 "document_metadata/copyless_paste.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25190 "font_unique_name_lookup/font_unique_name_lookup.mojom",
Julie Jeongeun Kim7de77e92019-02-27 00:14:15191 "input/input_host.mojom",
192 "input/input_messages.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25193 "installation/installation.mojom",
Julie Jeongeun Kimd3d00a12019-03-25 01:46:25194 "installedapp/installed_app_provider.mojom",
195 "installedapp/related_application.mojom",
Julie Jeongeun Kime6178522019-03-31 06:02:25196 "mediasession/media_session.mojom",
Han Leonabbe7c902018-08-30 02:08:10197 "payments/payment_request.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10198 "remote_objects/remote_objects.mojom",
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26199 "webauthn/authenticator.mojom",
Eric Willigers3eeae17c2019-03-13 17:32:10200 "webshare/webshare.mojom",
Han Leonabbe7c902018-08-30 02:08:10201 ]
Michael Thiessen909ba032019-03-26 23:47:43202 if (is_android && notouch_build) {
203 sources += [ "media_controls/touchless/media_controls.mojom" ]
204 }
Han Leonabbe7c902018-08-30 02:08:10205 public_deps = [
206 "//components/payments/mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10207 "//mojo/public/mojom/base",
Julie Jeongeun Kime6178522019-03-31 06:02:25208 "//services/media_session/public/mojom",
Eric Willigerse99debf52019-04-05 01:32:05209 "//services/network/public/mojom",
Eric Willigers3eeae17c2019-03-13 17:32:10210 "//url/mojom:url_mojom_gurl",
211 "//url/mojom:url_mojom_origin",
Han Leonabbe7c902018-08-30 02:08:10212 ]
213
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18214 # This Android unhandled-tap feature uses another mojo source, add it in.
215 if (enable_unhandled_tap) {
216 sources += [ "unhandled_tap_notifier/unhandled_tap_notifier.mojom" ]
217 public_deps += [ "//ui/gfx/geometry/mojo" ]
218 }
219
Han Leonabbe7c902018-08-30 02:08:10220 export_class_attribute = "BLINK_COMMON_EXPORT"
221 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43222 export_header = "third_party/blink/public/common/common_export.h"
Han Leonabbe7c902018-08-30 02:08:10223
224 export_class_attribute_blink = "PLATFORM_EXPORT"
225 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
226 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26227
228 # Don't scramble message IDs so they are redistributable to external tests.
229 scramble_message_ids = false
Han Leonabbe7c902018-08-30 02:08:10230}
231
Kinuko Yasudafa0f2512018-03-01 07:13:01232# This target can include mojom interfaces which do use types that are
Chase Phillips4f62c052018-11-06 01:43:51233# typemapped to a type in renderer/core. This also means these interfaces are
234# not available from renderer/platform.
Hiroki Nakagawa9144ec862019-01-28 10:12:44235#
Han Leonb2f46cd2018-03-09 01:59:16236# In future we may have a separate mojom target for the things that may have
237# modules dependencies if it looks necessary, at that time we can put all of
238# those high-level service worker mojom files there.
Han Leon19420c72018-03-08 01:59:55239mojom("mojom_core") {
Kinuko Yasudafa0f2512018-03-01 07:13:01240 sources = [
Zhuoyu Qianb647e772018-09-19 04:04:47241 "messaging/cloneable_message.mojom",
242 "messaging/transferable_message.mojom",
Zhuoyu Qian47ed0fc52018-09-06 02:13:40243 "messaging/user_activation_snapshot.mojom",
Lucas Furukawa Gadani72655072018-07-26 22:34:33244 "portal/portal.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44245
246 # Note that service_worker_object.mojom and service_worker.mojom depend on
247 # transferable_message.mojom, and controller_service_worker.mojom and
248 # service_worker_registration.mojom depend on service_worker_object.mojom,
249 # so we put these service worker mojom files here rather than mojom_platform
250 # target.
Hiroki Nakagawacdbc7912018-11-30 11:30:05251 "service_worker/controller_service_worker.mojom",
Leon Han6e7c6e2f2019-02-03 07:26:56252 "service_worker/embedded_worker.mojom",
Han Leon94335e42018-03-15 08:44:18253 "service_worker/service_worker.mojom",
Richard Li743a69f2018-12-21 06:44:56254 "service_worker/service_worker_container.mojom",
Han Leonb2f46cd2018-03-09 01:59:16255 "service_worker/service_worker_object.mojom",
Richard Li32fb39202018-12-21 06:49:41256 "service_worker/service_worker_provider.mojom",
Han Leonb2f46cd2018-03-09 01:59:16257 "service_worker/service_worker_registration.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44258
259 # Depends on controller_service_worker.mojom.
Hiroki Nakagawa3d14c4f2019-02-09 01:27:30260 "worker/dedicated_worker_host_factory.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44261 "worker/shared_worker_factory.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01262 ]
263
264 public_deps = [
Eric Willigerse99debf52019-04-05 01:32:05265 ":android_mojo_bindings",
Kinuko Yasudafa0f2512018-03-01 07:13:01266 ":mojom_platform",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15267 ":web_feature_mojo_bindings",
Richard Li99e67742018-12-20 05:28:13268 "//components/payments/mojom",
Ken Rockot1ca39312018-04-12 05:32:55269 "//mojo/public/mojom/base",
Richard Li99e67742018-12-20 05:28:13270 "//services/network/public/mojom",
Richard Li32fb39202018-12-21 06:49:41271 "//services/service_manager/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01272 "//skia/public/interfaces",
Han Leonb2f46cd2018-03-09 01:59:16273 "//url/mojom:url_mojom_gurl",
Richard Li99e67742018-12-20 05:28:13274 "//url/mojom:url_mojom_origin",
Kinuko Yasudafa0f2512018-03-01 07:13:01275 ]
276
Richard Li99e67742018-12-20 05:28:13277 overridden_deps_blink = [
Eric Willigerse99debf52019-04-05 01:32:05278 ":android_mojo_bindings",
Richard Li99e67742018-12-20 05:28:13279 ":mojom_platform",
280 "//services/network/public/mojom",
281 ]
Blink Reformata30d4232018-04-07 15:31:06282 component_deps_blink = [ "//third_party/blink/renderer/platform" ]
Kinuko Yasudafa0f2512018-03-01 07:13:01283
284 export_class_attribute = "BLINK_COMMON_EXPORT"
285 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43286 export_header = "third_party/blink/public/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01287
288 export_class_attribute_blink = "CORE_EXPORT"
289 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06290 export_header_blink = "third_party/blink/renderer/core/core_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01291}
Chase Phillips4f62c052018-11-06 01:43:51292
293# This target can include mojom interfaces which use types that are typemapped
294# to a type in renderer/modules. This also means these interfaces are not
295# available from renderer/platform or renderer/core.
296mojom("mojom_modules") {
297 sources = [
298 "indexeddb/indexeddb.mojom",
299 ]
300
301 public_deps = [
Eric Willigerse99debf52019-04-05 01:32:05302 ":android_mojo_bindings",
Chase Phillips4f62c052018-11-06 01:43:51303 ":mojom_core",
Chase Phillips4f62c052018-11-06 01:43:51304 "//mojo/public/mojom/base",
Chase Phillips4f62c052018-11-06 01:43:51305 ]
306
307 overridden_deps_blink = [
Eric Willigerse99debf52019-04-05 01:32:05308 ":android_mojo_bindings",
Chase Phillips4f62c052018-11-06 01:43:51309 ":mojom_core",
Chase Phillips4f62c052018-11-06 01:43:51310 ]
Daniel Bratella8e802a2019-04-03 13:27:18311 component_deps_blink = [ "//third_party/blink/renderer/core" ]
Chase Phillips4f62c052018-11-06 01:43:51312
313 export_class_attribute = "BLINK_COMMON_EXPORT"
314 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
315 export_header = "third_party/blink/public/common/common_export.h"
316
317 export_class_attribute_blink = "MODULES_EXPORT"
318 export_define_blink = "BLINK_MODULES_IMPLEMENTATION=1"
319 export_header_blink = "third_party/blink/renderer/modules/modules_export.h"
320}
Ian Wellscbc4e6f2019-02-07 22:07:57321
Julie Jeongeun Kim6d9562f2019-03-27 09:17:43322# The mojom_broadcastchannel_bindings is separated from the rest of mojom files
323# to allow blink/renderer/core to depend on this.
324mojom("mojom_broadcastchannel_bindings") {
325 visibility = [ "//content/*" ]
326 visibility_blink = [ "//third_party/blink/renderer/core/*" ]
327 sources = [
328 "broadcastchannel/broadcast_channel.mojom",
329 ]
330 public_deps = [
331 ":mojom_core",
332 "//url/mojom:url_mojom_origin",
333 ]
334
335 overridden_deps = [ ":mojom_core" ]
336 component_deps = [ "//third_party/blink/public/common" ]
337
338 component_output_prefix = "blink_mojom_broadcastchannel_bindings"
339
340 # See comment above.
341 export_class_attribute = "CONTENT_EXPORT"
342 export_define = "CONTENT_IMPLEMENTATION=1"
343 export_header = "content/common/content_export.h"
344
345 # Similarly, the blink variant must be linked with the core component
346 # since it uses types from it in its typemaps.
347 export_class_attribute_blink = "CORE_EXPORT"
348 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
349 export_header_blink = "third_party/blink/renderer/core/core_export.h"
350}
351
Ian Wellscbc4e6f2019-02-07 22:07:57352mojom("mojom_mhtml_load_result") {
353 sources = [
354 "loader/mhtml_load_result.mojom",
355 ]
356
357 export_class_attribute = "BLINK_COMMON_EXPORT"
358 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
359 export_header = "third_party/blink/public/common/common_export.h"
360}
Julie Jeongeun Kim184d78a62019-03-01 02:10:15361
362# The web_feature_mojo_bindings is separated from the rest of the mojom files
363# because the chromium typemap for blink mojo_bindings has private content
364# dependencies.
365mojom_component("web_feature_mojo_bindings") {
366 sources = [
367 "web_feature/web_feature.mojom",
368 ]
369
370 macro_prefix = "WEB_FEATURE_MOJO_BINDINGS_MOJOM"
371 output_prefix = "web_feature_mojo_bindings_mojom"
372}
Julie Jeongeun Kim573ba3d2019-03-01 11:35:22373
374# The web_client_hints_types_mojo_bindings is separated from the rest of the
375# mojom files because the chromium typemap for blink mojo_bindings has private
376# content dependencies.
377mojom("web_client_hints_types_mojo_bindings") {
378 sources = [
379 "web_client_hints/web_client_hints_types.mojom",
380 ]
381}
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26382
Julie Jeongeun Kim8b3d55242019-03-27 00:05:56383# The embedded_frame_sink_mojo_bindings is separated from the rest of mojom
384# files because its deps contain too many files in Chromium that would pollute
385# the include paths in generated mojom-blink files for other services.
386mojom("embedded_frame_sink_mojo_bindings") {
387 visibility = [ "//content/*" ]
388 visibility_blink = [ "//third_party/blink/renderer/platform" ]
389 sources = [
390 "frame_sinks/embedded_frame_sink.mojom",
391 ]
392 deps = [
393 "//services/viz/public/interfaces",
394 ]
395
396 component_output_prefix = "blink_embedded_frame_sink_mojo_bindings"
397
398 # The chromium variant must be linked with content and use the same export
399 # settings in component build.
400 export_class_attribute = "CONTENT_EXPORT"
401 export_define = "CONTENT_IMPLEMENTATION=1"
402 export_header = "content/common/content_export.h"
403 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
404 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
405 export_header_blink = "third_party/blink/public/platform/web_common.h"
406}
407
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26408# This is a separate target because it needs unscrambled message IDs.
409mojom("authenticator_test_mojo_bindings") {
410 sources = [
411 "webauthn/virtual_authenticator.mojom",
412 ]
413
414 public_deps = [
415 ":android_mojo_bindings",
416 "//url/mojom:url_mojom_gurl",
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
423 export_class_attribute_blink = "PLATFORM_EXPORT"
424 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
425 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
426
427 # Don't scramble message IDs so they are redistributable to external tests.
428 scramble_message_ids = false
429}