blob: 31d2bda5c46f0ced4110845e1f6c741ecf09b09d [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
8# This target includes all mojom interfaces which can be used from
Chase Phillips4f62c052018-11-06 01:43:519# renderer/platform. In particular these mojom interfaces can't use types that
10# are typemapped to a type in renderer/core.
Kinuko Yasudafa0f2512018-03-01 07:13:0111mojom("mojom_platform") {
12 sources = [
John Delaney74efc1d2018-12-20 18:29:1813 "ad_tagging/ad_frame.mojom",
Julie Jeongeun Kim0abed30c2019-03-04 12:18:2014 "app_banner/app_banner.mojom",
Staphany Park5e0954882019-01-14 20:18:2815 "appcache/appcache.mojom",
16 "appcache/appcache_info.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0117 "array_buffer/array_buffer_contents.mojom",
Ken Rockot26e4e802018-07-31 15:03:3318 "associated_interfaces/associated_interfaces.mojom",
Julie Jeongeun Kimdaa631e2019-02-21 14:17:2519 "autoplay/autoplay.mojom",
Richard Li912523f02018-12-13 08:10:4020 "background_fetch/background_fetch.mojom",
Julie Jeongeun Kim781703f2019-03-09 02:49:1021 "background_sync/background_sync.mojom",
Julie Jeongeun Kim78e772b2019-03-08 23:21:5922 "badging/badging.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0123 "blob/blob.mojom",
24 "blob/blob_registry.mojom",
25 "blob/blob_url_store.mojom",
26 "blob/data_element.mojom",
27 "blob/serialized_blob.mojom",
Richard Libcc09eb2018-11-30 15:00:3528 "cache_storage/cache_storage.mojom",
Abhijeet Kandalkar849ceff2019-02-28 17:37:2929 "choosers/color_chooser.mojom",
Kent Tamurac260c9a2018-09-14 09:10:5630 "choosers/file_chooser.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0131 "clipboard/clipboard.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1032 "commit_result/commit_result.mojom",
Finnur Thorarinsson522d3782018-12-05 02:17:4333 "contacts/contacts_manager.mojom",
Victor Costan7184272a2018-05-15 13:17:4334 "cookie_store/cookie_store.mojom",
Yuzu Saijo2d12ef92018-08-21 04:52:0735 "crash/crash_memory_metrics_reporter.mojom",
Oksana Zhuravlova424f33e2019-03-18 20:53:2136 "credentialmanager/credential_manager.mojom",
Hiroki Nakagawa792fcc32018-12-06 06:50:5737 "csp/content_security_policy.mojom",
Leon Han797b2132019-01-20 12:43:1838 "devtools/console_message.mojom",
Hiroki Nakagawa7c0a7e72018-12-10 04:31:2939 "devtools/devtools_agent.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1040 "devtools/devtools_frontend.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5941 "dom_storage/session_storage_namespace.mojom",
Marijn Kruisselbrinkf9a9e762018-06-07 18:57:1242 "dom_storage/storage_area.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5943 "dom_storage/storage_partition_service.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0144 "feature_policy/feature_policy.mojom",
Richard Lie6899952018-11-30 08:42:0045 "fetch/fetch_api_request.mojom",
Han Leon6bbe7912018-07-31 01:13:4646 "fetch/fetch_api_response.mojom",
Jeremy Roman89a4d0d2018-04-26 19:05:2847 "file/file_utilities.mojom",
Adithya Srinivasan0c72ff02018-08-13 19:47:2948 "filesystem/file_system.mojom",
Marijn Kruisselbrink16af1982018-08-15 21:22:3549 "filesystem/file_writer.mojom",
Oksana Zhuravlova8b88e572019-01-07 21:54:0050 "frame/document_interface_broker.mojom",
Rakina Zata Amniacf40492018-05-08 22:59:3351 "frame/find_in_page.mojom",
Oksana Zhuravlova8b88e572019-01-07 21:54:0052 "frame/frame_host_test_interface.mojom",
Dave Tapuskad6703f912019-01-31 23:13:1153 "frame/lifecycle.mojom",
Andy Paicuc93d30862018-10-10 15:33:4554 "frame/navigation_initiator.mojom",
Julie Jeongeun Kim162c2d282019-03-13 07:23:5255 "geolocation/geolocation_service.mojom",
Julie Jeongeun Kimea2e19a2019-03-13 09:59:4956 "hyphenation/hyphenation.mojom",
Julie Jeongeun Kim9f06c5a2019-03-21 07:27:3157 "idle/idle_manager.mojom",
Julie Jeongeun Kim0cecf4b2019-03-13 11:52:3558 "insecure_input/insecure_input_service.mojom",
Julie Jeongeun Kim41401192019-03-11 13:02:3259 "keyboard_lock/keyboard_lock.mojom",
Dmitry Gozmand016d882018-04-20 01:55:2460 "leak_detector/leak_detector.mojom",
Bill Budge24c1dc1a2018-09-25 18:51:3261 "loader/code_cache.mojom",
Lu Chen5bec7a302018-06-26 18:52:3262 "loader/navigation_predictor.mojom",
Ryan Sturmc65dbe42018-05-31 20:37:0463 "loader/pause_subresource_loading_handle.mojom",
Tarun Bansaldc970292018-07-12 00:02:5864 "loader/previews_resource_loading_hints.mojom",
Hiroki Nakagawa753758342018-12-27 04:13:4965 "loader/url_loader_factory_bundle.mojom",
Julie Jeongeun Kim4a064a92019-03-13 10:17:4566 "locks/lock_manager.mojom",
Dmitry Gozman88ca5a992018-05-18 00:13:3367 "manifest/display_mode.mojom",
68 "manifest/manifest.mojom",
69 "manifest/manifest_manager.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",
Han Leonabbe7c902018-08-30 02:08:1078 "payments/payment_app.mojom",
Julie Jeongeun Kim162c2d282019-03-13 07:23:5279 "permissions/permission.mojom",
80 "permissions/permission_status.mojom",
Mounir Lamouri99ba5a62019-02-12 01:27:4781 "picture_in_picture/picture_in_picture.mojom",
Jeremy Romanb7024742018-06-18 22:00:2282 "plugins/plugin_registry.mojom",
mark a. foltz6bbe59f2018-07-24 20:06:2483 "presentation/presentation.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0184 "quota/quota_dispatcher_host.mojom",
85 "quota/quota_types.mojom",
Leon Han075e0b32018-11-06 07:59:4486 "referrer.mojom",
Leon Hanf4003a162019-01-28 05:31:5887 "renderer_preference_watcher.mojom",
Leon Hanc819dc62019-01-28 04:30:1988 "renderer_preferences.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:1889 "reporting/reporting.mojom",
Hiroki Nakagawa4b072c62018-11-07 03:57:2590 "script/script_type.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:1091 "selection_menu/selection_menu_behavior.mojom",
Han Leon122d28182018-06-26 07:56:5592 "service_worker/dispatch_fetch_event_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0193 "service_worker/navigation_preload_state.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0194 "service_worker/service_worker_client.mojom",
95 "service_worker/service_worker_error_type.mojom",
96 "service_worker/service_worker_event_status.mojom",
Han Leon9a3a2fb2018-08-07 02:56:0197 "service_worker/service_worker_fetch_response_callback.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0198 "service_worker/service_worker_installed_scripts_manager.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0199 "service_worker/service_worker_provider_type.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01100 "service_worker/service_worker_state.mojom",
101 "service_worker/service_worker_stream_handle.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18102 "site_engagement/site_engagement.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:14103 "speech/speech_recognition_error.mojom",
104 "speech/speech_recognition_grammar.mojom",
105 "speech/speech_recognition_result.mojom",
106 "speech/speech_recognizer.mojom",
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18107 "ukm/ukm.mojom",
Luna Lu29d922d2018-03-27 18:06:51108 "use_counter/css_property_id.mojom",
Mike West6e4cbb32019-02-13 09:40:17109 "user_agent/user_agent_metadata.mojom",
Leon Hancaae6db2019-02-03 03:37:54110 "v8_cache_options.mojom",
Mounir Lamouri54c31f52018-12-09 02:52:54111 "wake_lock/wake_lock.mojom",
Raymond Toye413650c2018-08-31 00:12:47112 "webaudio/audio_context_manager.mojom",
Julie Jeongeun Kim4fee1cd82019-03-20 07:34:03113 "webdatabase/web_database.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10114 "window_features/window_features.mojom",
Hiroki Nakagawa2da3b582018-12-10 06:44:52115 "worker/shared_worker.mojom",
Hiroki Nakagawad0dee832018-12-04 11:19:10116 "worker/shared_worker_client.mojom",
Hiroki Nakagawa0e677762018-12-06 14:55:38117 "worker/shared_worker_connector.mojom",
Hiroki Nakagawa32376a52018-12-03 10:49:23118 "worker/shared_worker_creation_context_type.mojom",
Hiroki Nakagawa86d9e0e2018-12-06 10:55:00119 "worker/shared_worker_host.mojom",
Hiroki Nakagawa1f236df2018-12-06 06:55:27120 "worker/shared_worker_info.mojom",
Leon Han6ac123d2019-01-17 07:52:25121 "worker/worker_content_settings_proxy.mojom",
Hiroki Nakagawa32376a52018-12-03 10:49:23122 "worker/worker_main_script_load_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01123 ]
124
Reilly Grant2814fb72019-03-19 17:04:46125 if (!is_android) {
126 sources += [ "serial/serial.mojom" ]
127 }
128
Dominik Röttsches24f9d162019-01-04 10:43:56129 if (is_win) {
130 sources += [ "dwrite_font_proxy/dwrite_font_proxy.mojom" ]
131 }
132
Kinuko Yasudafa0f2512018-03-01 07:13:01133 public_deps = [
Han Leonabbe7c902018-08-30 02:08:10134 ":android_mojo_bindings",
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26135 ":authenticator_test_mojo_bindings",
Ian Wellscbc4e6f2019-02-07 22:07:57136 ":mojom_mhtml_load_result",
Adithya Srinivasanc35bf3962018-06-12 14:28:14137 ":speech_recognition_error_code",
Julie Jeongeun Kim573ba3d2019-03-01 11:35:22138 ":web_client_hints_types_mojo_bindings",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15139 ":web_feature_mojo_bindings",
Han Leonabbe7c902018-08-30 02:08:10140 "//components/payments/mojom",
Adithya Srinivasan0c72ff02018-08-13 19:47:29141 "//components/services/filesystem/public/interfaces",
Oksana Zhuravlova015487b32018-03-09 06:58:22142 "//mojo/public/mojom/base",
Dmitry Gozman88ca5a992018-05-18 00:13:33143 "//services/device/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01144 "//services/network/public/mojom",
Hiroki Nakagawac30b9f02018-12-03 11:26:01145 "//services/service_manager/public/mojom",
Mounir Lamouri99ba5a62019-02-12 01:27:47146 "//services/viz/public/interfaces",
Mike Wasserman384f907d2018-06-01 01:50:56147 "//skia/public/interfaces",
Donna Wu838ac362018-08-10 10:36:33148 "//third_party/blink/public/mojom/usb",
Kinuko Yasudafa0f2512018-03-01 07:13:01149 "//ui/gfx/geometry/mojo",
Leon Hanc819dc62019-01-28 04:30:19150 "//ui/gfx/mojo",
Kinuko Yasudafa0f2512018-03-01 07:13:01151 "//url/mojom:url_mojom_gurl",
152 "//url/mojom:url_mojom_origin",
153 ]
154
Guido Urdaneta73fa6632019-01-14 18:46:26155 # iOS doesn't use and must not depend on //media
156 if (!is_ios) {
157 public_deps += [
158 "//media/capture/mojom:video_capture",
159 "//media/mojo/interfaces",
160 ]
161 }
162
Leon Hanc819dc62019-01-28 04:30:19163 if (is_linux || is_chromeos) {
164 enabled_features = [ "renderer_pref_system_font_family_name" ]
165 }
166
Kinuko Yasudafa0f2512018-03-01 07:13:01167 export_class_attribute = "BLINK_COMMON_EXPORT"
168 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43169 export_header = "third_party/blink/public/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01170
171 export_class_attribute_blink = "PLATFORM_EXPORT"
172 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06173 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01174}
175
Han Leonabbe7c902018-08-30 02:08:10176# Kept separate from "mojom_platform" because the Java bindings are specifically
Eric Willigers3eeae17c2019-03-13 17:32:10177# needed by Android's implementation of payments and webshare
Julie Jeongeun Kim42a90df2019-03-20 23:13:10178# (in components/payments/content/android and chrome/android/),
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26179# input (in android_webview/ and content/browser/android/), remote objects
180# (in content/public/android/) and webauthn (in chrome/android).
Han Leonabbe7c902018-08-30 02:08:10181mojom("android_mojo_bindings") {
182 sources = [
Julie Jeongeun Kim7de77e92019-02-27 00:14:15183 "input/input_host.mojom",
184 "input/input_messages.mojom",
Han Leonabbe7c902018-08-30 02:08:10185 "payments/payment_request.mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10186 "remote_objects/remote_objects.mojom",
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26187 "webauthn/authenticator.mojom",
Eric Willigers3eeae17c2019-03-13 17:32:10188 "webshare/webshare.mojom",
Han Leonabbe7c902018-08-30 02:08:10189 ]
190 public_deps = [
191 "//components/payments/mojom",
Julie Jeongeun Kim42a90df2019-03-20 23:13:10192 "//mojo/public/mojom/base",
Eric Willigers3eeae17c2019-03-13 17:32:10193 "//url/mojom:url_mojom_gurl",
194 "//url/mojom:url_mojom_origin",
Han Leonabbe7c902018-08-30 02:08:10195 ]
196
Julie Jeongeun Kim9912f2e2019-03-01 03:30:18197 # This Android unhandled-tap feature uses another mojo source, add it in.
198 if (enable_unhandled_tap) {
199 sources += [ "unhandled_tap_notifier/unhandled_tap_notifier.mojom" ]
200 public_deps += [ "//ui/gfx/geometry/mojo" ]
201 }
202
Han Leonabbe7c902018-08-30 02:08:10203 export_class_attribute = "BLINK_COMMON_EXPORT"
204 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43205 export_header = "third_party/blink/public/common/common_export.h"
Han Leonabbe7c902018-08-30 02:08:10206
207 export_class_attribute_blink = "PLATFORM_EXPORT"
208 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
209 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26210
211 # Don't scramble message IDs so they are redistributable to external tests.
212 scramble_message_ids = false
Han Leonabbe7c902018-08-30 02:08:10213}
214
Adithya Srinivasanc35bf3962018-06-12 14:28:14215# Kept separate from "mojom_platform" because the Java bindings are needed by
216# Android's implementation of speech recognition.
Takuto Ikuta55f5c1372019-01-24 05:37:28217mojom_component("speech_recognition_error_code") {
Adithya Srinivasanc35bf3962018-06-12 14:28:14218 sources = [
219 "speech/speech_recognition_error_code.mojom",
220 ]
Takuto Ikuta55f5c1372019-01-24 05:37:28221
222 macro_prefix = "SPEECH_RECOGNITION_ERROR_CODE_MOJOM"
223 output_prefix = "speech_recognition_error_code_mojom"
Adithya Srinivasanc35bf3962018-06-12 14:28:14224}
225
Kinuko Yasudafa0f2512018-03-01 07:13:01226# This target can include mojom interfaces which do use types that are
Chase Phillips4f62c052018-11-06 01:43:51227# typemapped to a type in renderer/core. This also means these interfaces are
228# not available from renderer/platform.
Hiroki Nakagawa9144ec862019-01-28 10:12:44229#
Han Leonb2f46cd2018-03-09 01:59:16230# In future we may have a separate mojom target for the things that may have
231# modules dependencies if it looks necessary, at that time we can put all of
232# those high-level service worker mojom files there.
Han Leon19420c72018-03-08 01:59:55233mojom("mojom_core") {
Kinuko Yasudafa0f2512018-03-01 07:13:01234 sources = [
Zhuoyu Qianb647e772018-09-19 04:04:47235 "messaging/cloneable_message.mojom",
236 "messaging/transferable_message.mojom",
Zhuoyu Qian47ed0fc52018-09-06 02:13:40237 "messaging/user_activation_snapshot.mojom",
Lucas Furukawa Gadani72655072018-07-26 22:34:33238 "portal/portal.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44239
240 # Note that service_worker_object.mojom and service_worker.mojom depend on
241 # transferable_message.mojom, and controller_service_worker.mojom and
242 # service_worker_registration.mojom depend on service_worker_object.mojom,
243 # so we put these service worker mojom files here rather than mojom_platform
244 # target.
Hiroki Nakagawacdbc7912018-11-30 11:30:05245 "service_worker/controller_service_worker.mojom",
Leon Han6e7c6e2f2019-02-03 07:26:56246 "service_worker/embedded_worker.mojom",
Han Leon94335e42018-03-15 08:44:18247 "service_worker/service_worker.mojom",
Richard Li743a69f2018-12-21 06:44:56248 "service_worker/service_worker_container.mojom",
Han Leonb2f46cd2018-03-09 01:59:16249 "service_worker/service_worker_object.mojom",
Richard Li32fb39202018-12-21 06:49:41250 "service_worker/service_worker_provider.mojom",
Han Leonb2f46cd2018-03-09 01:59:16251 "service_worker/service_worker_registration.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44252
253 # Depends on controller_service_worker.mojom.
Hiroki Nakagawa3d14c4f2019-02-09 01:27:30254 "worker/dedicated_worker_host_factory.mojom",
Hiroki Nakagawa9144ec862019-01-28 10:12:44255 "worker/shared_worker_factory.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01256 ]
257
258 public_deps = [
259 ":mojom_platform",
Julie Jeongeun Kim184d78a62019-03-01 02:10:15260 ":web_feature_mojo_bindings",
Richard Li99e67742018-12-20 05:28:13261 "//components/payments/mojom",
Ken Rockot1ca39312018-04-12 05:32:55262 "//mojo/public/mojom/base",
Richard Li99e67742018-12-20 05:28:13263 "//services/network/public/mojom",
Richard Li32fb39202018-12-21 06:49:41264 "//services/service_manager/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01265 "//skia/public/interfaces",
Han Leonb2f46cd2018-03-09 01:59:16266 "//url/mojom:url_mojom_gurl",
Richard Li99e67742018-12-20 05:28:13267 "//url/mojom:url_mojom_origin",
Kinuko Yasudafa0f2512018-03-01 07:13:01268 ]
269
Richard Li99e67742018-12-20 05:28:13270 overridden_deps_blink = [
271 ":mojom_platform",
272 "//services/network/public/mojom",
273 ]
Blink Reformata30d4232018-04-07 15:31:06274 component_deps_blink = [ "//third_party/blink/renderer/platform" ]
Kinuko Yasudafa0f2512018-03-01 07:13:01275
276 export_class_attribute = "BLINK_COMMON_EXPORT"
277 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Daniel Bratell54449102018-10-29 22:21:43278 export_header = "third_party/blink/public/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01279
280 export_class_attribute_blink = "CORE_EXPORT"
281 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06282 export_header_blink = "third_party/blink/renderer/core/core_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01283}
Chase Phillips4f62c052018-11-06 01:43:51284
285# This target can include mojom interfaces which use types that are typemapped
286# to a type in renderer/modules. This also means these interfaces are not
287# available from renderer/platform or renderer/core.
288mojom("mojom_modules") {
289 sources = [
290 "indexeddb/indexeddb.mojom",
291 ]
292
293 public_deps = [
294 ":mojom_core",
295
296 # TODO(https://crbug.com/822804): Remove when mojom bindings deps checks
297 # get fixed.
298 ":mojom_platform",
299 "//mojo/public/mojom/base",
300 "//skia/public/interfaces",
301 "//url/mojom:url_mojom_gurl",
302 "//url/mojom:url_mojom_origin",
303 ]
304
305 overridden_deps_blink = [
306 ":mojom_core",
307 ":mojom_platform",
308 ]
309 component_deps_blink = [ "//third_party/blink/renderer/core" ]
310
311 export_class_attribute = "BLINK_COMMON_EXPORT"
312 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
313 export_header = "third_party/blink/public/common/common_export.h"
314
315 export_class_attribute_blink = "MODULES_EXPORT"
316 export_define_blink = "BLINK_MODULES_IMPLEMENTATION=1"
317 export_header_blink = "third_party/blink/renderer/modules/modules_export.h"
318}
Ian Wellscbc4e6f2019-02-07 22:07:57319
320mojom("mojom_mhtml_load_result") {
321 sources = [
322 "loader/mhtml_load_result.mojom",
323 ]
324
325 export_class_attribute = "BLINK_COMMON_EXPORT"
326 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
327 export_header = "third_party/blink/public/common/common_export.h"
328}
Julie Jeongeun Kim184d78a62019-03-01 02:10:15329
330# The web_feature_mojo_bindings is separated from the rest of the mojom files
331# because the chromium typemap for blink mojo_bindings has private content
332# dependencies.
333mojom_component("web_feature_mojo_bindings") {
334 sources = [
335 "web_feature/web_feature.mojom",
336 ]
337
338 macro_prefix = "WEB_FEATURE_MOJO_BINDINGS_MOJOM"
339 output_prefix = "web_feature_mojo_bindings_mojom"
340}
Julie Jeongeun Kim573ba3d2019-03-01 11:35:22341
342# The web_client_hints_types_mojo_bindings is separated from the rest of the
343# mojom files because the chromium typemap for blink mojo_bindings has private
344# content dependencies.
345mojom("web_client_hints_types_mojo_bindings") {
346 sources = [
347 "web_client_hints/web_client_hints_types.mojom",
348 ]
349}
Julie Jeongeun Kimb6a0a1f2019-03-21 05:08:26350
351# This is a separate target because it needs unscrambled message IDs.
352mojom("authenticator_test_mojo_bindings") {
353 sources = [
354 "webauthn/virtual_authenticator.mojom",
355 ]
356
357 public_deps = [
358 ":android_mojo_bindings",
359 "//url/mojom:url_mojom_gurl",
360 ]
361
362 export_class_attribute = "BLINK_COMMON_EXPORT"
363 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
364 export_header = "third_party/blink/public/common/common_export.h"
365
366 export_class_attribute_blink = "PLATFORM_EXPORT"
367 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
368 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
369
370 # Don't scramble message IDs so they are redistributable to external tests.
371 scramble_message_ids = false
372}