Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 1 | # Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//mojo/public/tools/bindings/mojom.gni") |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 6 | import("//third_party/blink/public/public_features.gni") |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 7 | |
| 8 | # This target includes all mojom interfaces which can be used from |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 9 | # renderer/platform. In particular these mojom interfaces can't use types that |
| 10 | # are typemapped to a type in renderer/core. |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 11 | mojom("mojom_platform") { |
| 12 | sources = [ |
John Delaney | 74efc1d | 2018-12-20 18:29:18 | [diff] [blame] | 13 | "ad_tagging/ad_frame.mojom", |
Julie Jeongeun Kim | 0abed30c | 2019-03-04 12:18:20 | [diff] [blame] | 14 | "app_banner/app_banner.mojom", |
Staphany Park | 5e095488 | 2019-01-14 20:18:28 | [diff] [blame] | 15 | "appcache/appcache.mojom", |
| 16 | "appcache/appcache_info.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 17 | "array_buffer/array_buffer_contents.mojom", |
Ken Rockot | 26e4e80 | 2018-07-31 15:03:33 | [diff] [blame] | 18 | "associated_interfaces/associated_interfaces.mojom", |
Julie Jeongeun Kim | daa631e | 2019-02-21 14:17:25 | [diff] [blame] | 19 | "autoplay/autoplay.mojom", |
Richard Li | 912523f | 2018-12-13 08:10:40 | [diff] [blame] | 20 | "background_fetch/background_fetch.mojom", |
Julie Jeongeun Kim | 781703f | 2019-03-09 02:49:10 | [diff] [blame] | 21 | "background_sync/background_sync.mojom", |
Julie Jeongeun Kim | 78e772b | 2019-03-08 23:21:59 | [diff] [blame] | 22 | "badging/badging.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 23 | "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 Li | bcc09eb | 2018-11-30 15:00:35 | [diff] [blame] | 28 | "cache_storage/cache_storage.mojom", |
Abhijeet Kandalkar | 849ceff | 2019-02-28 17:37:29 | [diff] [blame] | 29 | "choosers/color_chooser.mojom", |
Kent Tamura | c260c9a | 2018-09-14 09:10:56 | [diff] [blame] | 30 | "choosers/file_chooser.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 31 | "clipboard/clipboard.mojom", |
Finnur Thorarinsson | 522d378 | 2018-12-05 02:17:43 | [diff] [blame] | 32 | "contacts/contacts_manager.mojom", |
Victor Costan | 7184272a | 2018-05-15 13:17:43 | [diff] [blame] | 33 | "cookie_store/cookie_store.mojom", |
Yuzu Saijo | 2d12ef9 | 2018-08-21 04:52:07 | [diff] [blame] | 34 | "crash/crash_memory_metrics_reporter.mojom", |
Hiroki Nakagawa | 792fcc3 | 2018-12-06 06:50:57 | [diff] [blame] | 35 | "csp/content_security_policy.mojom", |
Leon Han | 797b213 | 2019-01-20 12:43:18 | [diff] [blame] | 36 | "devtools/console_message.mojom", |
Hiroki Nakagawa | 7c0a7e7 | 2018-12-10 04:31:29 | [diff] [blame] | 37 | "devtools/devtools_agent.mojom", |
Marijn Kruisselbrink | 4712c33 | 2018-06-13 19:06:59 | [diff] [blame] | 38 | "dom_storage/session_storage_namespace.mojom", |
Marijn Kruisselbrink | f9a9e76 | 2018-06-07 18:57:12 | [diff] [blame] | 39 | "dom_storage/storage_area.mojom", |
Marijn Kruisselbrink | 4712c33 | 2018-06-13 19:06:59 | [diff] [blame] | 40 | "dom_storage/storage_partition_service.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 41 | "feature_policy/feature_policy.mojom", |
Richard Li | e689995 | 2018-11-30 08:42:00 | [diff] [blame] | 42 | "fetch/fetch_api_request.mojom", |
Han Leon | 6bbe791 | 2018-07-31 01:13:46 | [diff] [blame] | 43 | "fetch/fetch_api_response.mojom", |
Jeremy Roman | 89a4d0d | 2018-04-26 19:05:28 | [diff] [blame] | 44 | "file/file_utilities.mojom", |
Adithya Srinivasan | 0c72ff0 | 2018-08-13 19:47:29 | [diff] [blame] | 45 | "filesystem/file_system.mojom", |
Marijn Kruisselbrink | 16af198 | 2018-08-15 21:22:35 | [diff] [blame] | 46 | "filesystem/file_writer.mojom", |
Oksana Zhuravlova | 8b88e57 | 2019-01-07 21:54:00 | [diff] [blame] | 47 | "frame/document_interface_broker.mojom", |
Rakina Zata Amni | acf4049 | 2018-05-08 22:59:33 | [diff] [blame] | 48 | "frame/find_in_page.mojom", |
Oksana Zhuravlova | 8b88e57 | 2019-01-07 21:54:00 | [diff] [blame] | 49 | "frame/frame_host_test_interface.mojom", |
Dave Tapuska | d6703f91 | 2019-01-31 23:13:11 | [diff] [blame] | 50 | "frame/lifecycle.mojom", |
Andy Paicu | c93d3086 | 2018-10-10 15:33:45 | [diff] [blame] | 51 | "frame/navigation_initiator.mojom", |
Julie Jeongeun Kim | 162c2d28 | 2019-03-13 07:23:52 | [diff] [blame] | 52 | "geolocation/geolocation_service.mojom", |
Julie Jeongeun Kim | ea2e19a | 2019-03-13 09:59:49 | [diff] [blame] | 53 | "hyphenation/hyphenation.mojom", |
Julie Jeongeun Kim | 4140119 | 2019-03-11 13:02:32 | [diff] [blame] | 54 | "keyboard_lock/keyboard_lock.mojom", |
Dmitry Gozman | d016d88 | 2018-04-20 01:55:24 | [diff] [blame] | 55 | "leak_detector/leak_detector.mojom", |
Bill Budge | 24c1dc1a | 2018-09-25 18:51:32 | [diff] [blame] | 56 | "loader/code_cache.mojom", |
Lu Chen | 5bec7a30 | 2018-06-26 18:52:32 | [diff] [blame] | 57 | "loader/navigation_predictor.mojom", |
Ryan Sturm | c65dbe4 | 2018-05-31 20:37:04 | [diff] [blame] | 58 | "loader/pause_subresource_loading_handle.mojom", |
Tarun Bansal | dc97029 | 2018-07-12 00:02:58 | [diff] [blame] | 59 | "loader/previews_resource_loading_hints.mojom", |
Hiroki Nakagawa | 75375834 | 2018-12-27 04:13:49 | [diff] [blame] | 60 | "loader/url_loader_factory_bundle.mojom", |
Julie Jeongeun Kim | 4a064a9 | 2019-03-13 10:17:45 | [diff] [blame^] | 61 | "locks/lock_manager.mojom", |
Dmitry Gozman | 88ca5a99 | 2018-05-18 00:13:33 | [diff] [blame] | 62 | "manifest/display_mode.mojom", |
| 63 | "manifest/manifest.mojom", |
| 64 | "manifest/manifest_manager.mojom", |
Guido Urdaneta | d45f3ed6 | 2019-01-16 13:48:18 | [diff] [blame] | 65 | "mediastream/media_devices.mojom", |
Guido Urdaneta | 73fa663 | 2019-01-14 18:46:26 | [diff] [blame] | 66 | "mediastream/media_stream.mojom", |
Julie Jeongeun Kim | 97410ad | 2019-02-27 08:04:51 | [diff] [blame] | 67 | "mime/mime_registry.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 68 | "net/ip_address_space.mojom", |
Han Leon | 96d6b6e8c2 | 2018-09-06 06:21:06 | [diff] [blame] | 69 | "notifications/notification.mojom", |
Julie Jeongeun Kim | 08999f29 | 2019-02-27 23:30:41 | [diff] [blame] | 70 | "oom_intervention/oom_intervention.mojom", |
Becca Hughes | 6fe54e43 | 2018-06-09 04:18:56 | [diff] [blame] | 71 | "page/display_cutout.mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 72 | "payments/payment_app.mojom", |
Julie Jeongeun Kim | 162c2d28 | 2019-03-13 07:23:52 | [diff] [blame] | 73 | "permissions/permission.mojom", |
| 74 | "permissions/permission_status.mojom", |
Mounir Lamouri | 99ba5a6 | 2019-02-12 01:27:47 | [diff] [blame] | 75 | "picture_in_picture/picture_in_picture.mojom", |
Jeremy Roman | b702474 | 2018-06-18 22:00:22 | [diff] [blame] | 76 | "plugins/plugin_registry.mojom", |
mark a. foltz | 6bbe59f | 2018-07-24 20:06:24 | [diff] [blame] | 77 | "presentation/presentation.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 78 | "quota/quota_dispatcher_host.mojom", |
| 79 | "quota/quota_types.mojom", |
Leon Han | 075e0b3 | 2018-11-06 07:59:44 | [diff] [blame] | 80 | "referrer.mojom", |
Leon Han | f4003a16 | 2019-01-28 05:31:58 | [diff] [blame] | 81 | "renderer_preference_watcher.mojom", |
Leon Han | c819dc6 | 2019-01-28 04:30:19 | [diff] [blame] | 82 | "renderer_preferences.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 83 | "reporting/reporting.mojom", |
Hiroki Nakagawa | 4b072c6 | 2018-11-07 03:57:25 | [diff] [blame] | 84 | "script/script_type.mojom", |
Reilly Grant | e4f4664 | 2019-03-04 22:41:59 | [diff] [blame] | 85 | "serial/serial.mojom", |
Han Leon | 122d2818 | 2018-06-26 07:56:55 | [diff] [blame] | 86 | "service_worker/dispatch_fetch_event_params.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 87 | "service_worker/navigation_preload_state.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 88 | "service_worker/service_worker_client.mojom", |
| 89 | "service_worker/service_worker_error_type.mojom", |
| 90 | "service_worker/service_worker_event_status.mojom", |
Han Leon | 9a3a2fb | 2018-08-07 02:56:01 | [diff] [blame] | 91 | "service_worker/service_worker_fetch_response_callback.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 92 | "service_worker/service_worker_installed_scripts_manager.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 93 | "service_worker/service_worker_provider_type.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 94 | "service_worker/service_worker_state.mojom", |
| 95 | "service_worker/service_worker_stream_handle.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 96 | "site_engagement/site_engagement.mojom", |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 97 | "speech/speech_recognition_error.mojom", |
| 98 | "speech/speech_recognition_grammar.mojom", |
| 99 | "speech/speech_recognition_result.mojom", |
| 100 | "speech/speech_recognizer.mojom", |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 101 | "ukm/ukm.mojom", |
Luna Lu | 29d922d | 2018-03-27 18:06:51 | [diff] [blame] | 102 | "use_counter/css_property_id.mojom", |
Mike West | 6e4cbb3 | 2019-02-13 09:40:17 | [diff] [blame] | 103 | "user_agent/user_agent_metadata.mojom", |
Leon Han | caae6db | 2019-02-03 03:37:54 | [diff] [blame] | 104 | "v8_cache_options.mojom", |
Mounir Lamouri | 54c31f5 | 2018-12-09 02:52:54 | [diff] [blame] | 105 | "wake_lock/wake_lock.mojom", |
Raymond Toy | e413650c | 2018-08-31 00:12:47 | [diff] [blame] | 106 | "webaudio/audio_context_manager.mojom", |
Hiroki Nakagawa | 2da3b58 | 2018-12-10 06:44:52 | [diff] [blame] | 107 | "worker/shared_worker.mojom", |
Hiroki Nakagawa | d0dee83 | 2018-12-04 11:19:10 | [diff] [blame] | 108 | "worker/shared_worker_client.mojom", |
Hiroki Nakagawa | 0e67776 | 2018-12-06 14:55:38 | [diff] [blame] | 109 | "worker/shared_worker_connector.mojom", |
Hiroki Nakagawa | 32376a5 | 2018-12-03 10:49:23 | [diff] [blame] | 110 | "worker/shared_worker_creation_context_type.mojom", |
Hiroki Nakagawa | 86d9e0e | 2018-12-06 10:55:00 | [diff] [blame] | 111 | "worker/shared_worker_host.mojom", |
Hiroki Nakagawa | 1f236df | 2018-12-06 06:55:27 | [diff] [blame] | 112 | "worker/shared_worker_info.mojom", |
Leon Han | 6ac123d | 2019-01-17 07:52:25 | [diff] [blame] | 113 | "worker/worker_content_settings_proxy.mojom", |
Hiroki Nakagawa | 32376a5 | 2018-12-03 10:49:23 | [diff] [blame] | 114 | "worker/worker_main_script_load_params.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 115 | ] |
| 116 | |
Dominik Röttsches | 24f9d16 | 2019-01-04 10:43:56 | [diff] [blame] | 117 | if (is_win) { |
| 118 | sources += [ "dwrite_font_proxy/dwrite_font_proxy.mojom" ] |
| 119 | } |
| 120 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 121 | public_deps = [ |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 122 | ":android_mojo_bindings", |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 123 | ":mojom_mhtml_load_result", |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 124 | ":speech_recognition_error_code", |
Julie Jeongeun Kim | 573ba3d | 2019-03-01 11:35:22 | [diff] [blame] | 125 | ":web_client_hints_types_mojo_bindings", |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 126 | ":web_feature_mojo_bindings", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 127 | "//components/payments/mojom", |
Adithya Srinivasan | 0c72ff0 | 2018-08-13 19:47:29 | [diff] [blame] | 128 | "//components/services/filesystem/public/interfaces", |
Oksana Zhuravlova | 015487b3 | 2018-03-09 06:58:22 | [diff] [blame] | 129 | "//mojo/public/mojom/base", |
Dmitry Gozman | 88ca5a99 | 2018-05-18 00:13:33 | [diff] [blame] | 130 | "//services/device/public/mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 131 | "//services/network/public/mojom", |
Hiroki Nakagawa | c30b9f0 | 2018-12-03 11:26:01 | [diff] [blame] | 132 | "//services/service_manager/public/mojom", |
Mounir Lamouri | 99ba5a6 | 2019-02-12 01:27:47 | [diff] [blame] | 133 | "//services/viz/public/interfaces", |
Mike Wasserman | 384f907d | 2018-06-01 01:50:56 | [diff] [blame] | 134 | "//skia/public/interfaces", |
Donna Wu | 838ac36 | 2018-08-10 10:36:33 | [diff] [blame] | 135 | "//third_party/blink/public/mojom/usb", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 136 | "//ui/gfx/geometry/mojo", |
Leon Han | c819dc6 | 2019-01-28 04:30:19 | [diff] [blame] | 137 | "//ui/gfx/mojo", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 138 | "//url/mojom:url_mojom_gurl", |
| 139 | "//url/mojom:url_mojom_origin", |
| 140 | ] |
| 141 | |
Guido Urdaneta | 73fa663 | 2019-01-14 18:46:26 | [diff] [blame] | 142 | # iOS doesn't use and must not depend on //media |
| 143 | if (!is_ios) { |
| 144 | public_deps += [ |
| 145 | "//media/capture/mojom:video_capture", |
| 146 | "//media/mojo/interfaces", |
| 147 | ] |
| 148 | } |
| 149 | |
Leon Han | c819dc6 | 2019-01-28 04:30:19 | [diff] [blame] | 150 | if (is_linux || is_chromeos) { |
| 151 | enabled_features = [ "renderer_pref_system_font_family_name" ] |
| 152 | } |
| 153 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 154 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 155 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 156 | export_header = "third_party/blink/public/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 157 | |
| 158 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 159 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 160 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 161 | } |
| 162 | |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 163 | # Kept separate from "mojom_platform" because the Java bindings are specifically |
| 164 | # needed by Android's implementation of payments |
Julie Jeongeun Kim | 7de77e9 | 2019-02-27 00:14:15 | [diff] [blame] | 165 | # (in components/payments/content/android and chrome/android/) |
| 166 | # and input (in android_webview/ and content/browser/android/). |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 167 | mojom("android_mojo_bindings") { |
| 168 | sources = [ |
Julie Jeongeun Kim | 7de77e9 | 2019-02-27 00:14:15 | [diff] [blame] | 169 | "input/input_host.mojom", |
| 170 | "input/input_messages.mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 171 | "payments/payment_request.mojom", |
| 172 | ] |
| 173 | public_deps = [ |
| 174 | "//components/payments/mojom", |
| 175 | ] |
| 176 | |
Julie Jeongeun Kim | 9912f2e | 2019-03-01 03:30:18 | [diff] [blame] | 177 | # This Android unhandled-tap feature uses another mojo source, add it in. |
| 178 | if (enable_unhandled_tap) { |
| 179 | sources += [ "unhandled_tap_notifier/unhandled_tap_notifier.mojom" ] |
| 180 | public_deps += [ "//ui/gfx/geometry/mojo" ] |
| 181 | } |
| 182 | |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 183 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 184 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 185 | export_header = "third_party/blink/public/common/common_export.h" |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 186 | |
| 187 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 188 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 189 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| 190 | } |
| 191 | |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 192 | # Kept separate from "mojom_platform" because the Java bindings are needed by |
| 193 | # Android's implementation of speech recognition. |
Takuto Ikuta | 55f5c137 | 2019-01-24 05:37:28 | [diff] [blame] | 194 | mojom_component("speech_recognition_error_code") { |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 195 | sources = [ |
| 196 | "speech/speech_recognition_error_code.mojom", |
| 197 | ] |
Takuto Ikuta | 55f5c137 | 2019-01-24 05:37:28 | [diff] [blame] | 198 | |
| 199 | macro_prefix = "SPEECH_RECOGNITION_ERROR_CODE_MOJOM" |
| 200 | output_prefix = "speech_recognition_error_code_mojom" |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 201 | } |
| 202 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 203 | # This target can include mojom interfaces which do use types that are |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 204 | # typemapped to a type in renderer/core. This also means these interfaces are |
| 205 | # not available from renderer/platform. |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 206 | # |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 207 | # In future we may have a separate mojom target for the things that may have |
| 208 | # modules dependencies if it looks necessary, at that time we can put all of |
| 209 | # those high-level service worker mojom files there. |
Han Leon | 19420c7 | 2018-03-08 01:59:55 | [diff] [blame] | 210 | mojom("mojom_core") { |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 211 | sources = [ |
Zhuoyu Qian | b647e77 | 2018-09-19 04:04:47 | [diff] [blame] | 212 | "messaging/cloneable_message.mojom", |
| 213 | "messaging/transferable_message.mojom", |
Zhuoyu Qian | 47ed0fc5 | 2018-09-06 02:13:40 | [diff] [blame] | 214 | "messaging/user_activation_snapshot.mojom", |
Lucas Furukawa Gadani | 7265507 | 2018-07-26 22:34:33 | [diff] [blame] | 215 | "portal/portal.mojom", |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 216 | |
| 217 | # Note that service_worker_object.mojom and service_worker.mojom depend on |
| 218 | # transferable_message.mojom, and controller_service_worker.mojom and |
| 219 | # service_worker_registration.mojom depend on service_worker_object.mojom, |
| 220 | # so we put these service worker mojom files here rather than mojom_platform |
| 221 | # target. |
Hiroki Nakagawa | cdbc791 | 2018-11-30 11:30:05 | [diff] [blame] | 222 | "service_worker/controller_service_worker.mojom", |
Leon Han | 6e7c6e2f | 2019-02-03 07:26:56 | [diff] [blame] | 223 | "service_worker/embedded_worker.mojom", |
Han Leon | 94335e4 | 2018-03-15 08:44:18 | [diff] [blame] | 224 | "service_worker/service_worker.mojom", |
Richard Li | 743a69f | 2018-12-21 06:44:56 | [diff] [blame] | 225 | "service_worker/service_worker_container.mojom", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 226 | "service_worker/service_worker_object.mojom", |
Richard Li | 32fb3920 | 2018-12-21 06:49:41 | [diff] [blame] | 227 | "service_worker/service_worker_provider.mojom", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 228 | "service_worker/service_worker_registration.mojom", |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 229 | |
| 230 | # Depends on controller_service_worker.mojom. |
Hiroki Nakagawa | 3d14c4f | 2019-02-09 01:27:30 | [diff] [blame] | 231 | "worker/dedicated_worker_host_factory.mojom", |
Hiroki Nakagawa | 9144ec86 | 2019-01-28 10:12:44 | [diff] [blame] | 232 | "worker/shared_worker_factory.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 233 | ] |
| 234 | |
| 235 | public_deps = [ |
| 236 | ":mojom_platform", |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 237 | ":web_feature_mojo_bindings", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 238 | "//components/payments/mojom", |
Ken Rockot | 1ca3931 | 2018-04-12 05:32:55 | [diff] [blame] | 239 | "//mojo/public/mojom/base", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 240 | "//services/network/public/mojom", |
Richard Li | 32fb3920 | 2018-12-21 06:49:41 | [diff] [blame] | 241 | "//services/service_manager/public/mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 242 | "//skia/public/interfaces", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 243 | "//url/mojom:url_mojom_gurl", |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 244 | "//url/mojom:url_mojom_origin", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 245 | ] |
| 246 | |
Richard Li | 99e6774 | 2018-12-20 05:28:13 | [diff] [blame] | 247 | overridden_deps_blink = [ |
| 248 | ":mojom_platform", |
| 249 | "//services/network/public/mojom", |
| 250 | ] |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 251 | component_deps_blink = [ "//third_party/blink/renderer/platform" ] |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 252 | |
| 253 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 254 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Daniel Bratell | 5444910 | 2018-10-29 22:21:43 | [diff] [blame] | 255 | export_header = "third_party/blink/public/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 256 | |
| 257 | export_class_attribute_blink = "CORE_EXPORT" |
| 258 | export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 259 | export_header_blink = "third_party/blink/renderer/core/core_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 260 | } |
Chase Phillips | 4f62c05 | 2018-11-06 01:43:51 | [diff] [blame] | 261 | |
| 262 | # This target can include mojom interfaces which use types that are typemapped |
| 263 | # to a type in renderer/modules. This also means these interfaces are not |
| 264 | # available from renderer/platform or renderer/core. |
| 265 | mojom("mojom_modules") { |
| 266 | sources = [ |
| 267 | "indexeddb/indexeddb.mojom", |
| 268 | ] |
| 269 | |
| 270 | public_deps = [ |
| 271 | ":mojom_core", |
| 272 | |
| 273 | # TODO(https://crbug.com/822804): Remove when mojom bindings deps checks |
| 274 | # get fixed. |
| 275 | ":mojom_platform", |
| 276 | "//mojo/public/mojom/base", |
| 277 | "//skia/public/interfaces", |
| 278 | "//url/mojom:url_mojom_gurl", |
| 279 | "//url/mojom:url_mojom_origin", |
| 280 | ] |
| 281 | |
| 282 | overridden_deps_blink = [ |
| 283 | ":mojom_core", |
| 284 | ":mojom_platform", |
| 285 | ] |
| 286 | component_deps_blink = [ "//third_party/blink/renderer/core" ] |
| 287 | |
| 288 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 289 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 290 | export_header = "third_party/blink/public/common/common_export.h" |
| 291 | |
| 292 | export_class_attribute_blink = "MODULES_EXPORT" |
| 293 | export_define_blink = "BLINK_MODULES_IMPLEMENTATION=1" |
| 294 | export_header_blink = "third_party/blink/renderer/modules/modules_export.h" |
| 295 | } |
Ian Wells | cbc4e6f | 2019-02-07 22:07:57 | [diff] [blame] | 296 | |
| 297 | mojom("mojom_mhtml_load_result") { |
| 298 | sources = [ |
| 299 | "loader/mhtml_load_result.mojom", |
| 300 | ] |
| 301 | |
| 302 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 303 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 304 | export_header = "third_party/blink/public/common/common_export.h" |
| 305 | } |
Julie Jeongeun Kim | 184d78a6 | 2019-03-01 02:10:15 | [diff] [blame] | 306 | |
| 307 | # The web_feature_mojo_bindings is separated from the rest of the mojom files |
| 308 | # because the chromium typemap for blink mojo_bindings has private content |
| 309 | # dependencies. |
| 310 | mojom_component("web_feature_mojo_bindings") { |
| 311 | sources = [ |
| 312 | "web_feature/web_feature.mojom", |
| 313 | ] |
| 314 | |
| 315 | macro_prefix = "WEB_FEATURE_MOJO_BINDINGS_MOJOM" |
| 316 | output_prefix = "web_feature_mojo_bindings_mojom" |
| 317 | } |
Julie Jeongeun Kim | 573ba3d | 2019-03-01 11:35:22 | [diff] [blame] | 318 | |
| 319 | # The web_client_hints_types_mojo_bindings is separated from the rest of the |
| 320 | # mojom files because the chromium typemap for blink mojo_bindings has private |
| 321 | # content dependencies. |
| 322 | mojom("web_client_hints_types_mojo_bindings") { |
| 323 | sources = [ |
| 324 | "web_client_hints/web_client_hints_types.mojom", |
| 325 | ] |
| 326 | } |