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") |
| 6 | |
| 7 | # This target includes all mojom interfaces which can be used from |
| 8 | # Source/platform. In particular these mojom interfaces can't use types that |
| 9 | # are typemapped to a type in Source/core. |
| 10 | mojom("mojom_platform") { |
| 11 | sources = [ |
| 12 | "array_buffer/array_buffer_contents.mojom", |
Ken Rockot | 26e4e80 | 2018-07-31 15:03:33 | [diff] [blame] | 13 | "associated_interfaces/associated_interfaces.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 14 | "blob/blob.mojom", |
| 15 | "blob/blob_registry.mojom", |
| 16 | "blob/blob_url_store.mojom", |
| 17 | "blob/data_element.mojom", |
| 18 | "blob/serialized_blob.mojom", |
| 19 | "clipboard/clipboard.mojom", |
| 20 | "color_chooser/color_chooser.mojom", |
Victor Costan | 7184272a | 2018-05-15 13:17:43 | [diff] [blame] | 21 | "cookie_store/cookie_store.mojom", |
Yuzu Saijo | 2d12ef9 | 2018-08-21 04:52:07 | [diff] [blame] | 22 | "crash/crash_memory_metrics_reporter.mojom", |
Marijn Kruisselbrink | 4712c33 | 2018-06-13 19:06:59 | [diff] [blame] | 23 | "dom_storage/session_storage_namespace.mojom", |
Marijn Kruisselbrink | f9a9e76 | 2018-06-07 18:57:12 | [diff] [blame] | 24 | "dom_storage/storage_area.mojom", |
Marijn Kruisselbrink | 4712c33 | 2018-06-13 19:06:59 | [diff] [blame] | 25 | "dom_storage/storage_partition_service.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 26 | "feature_policy/feature_policy.mojom", |
Han Leon | 6bbe791 | 2018-07-31 01:13:46 | [diff] [blame] | 27 | "fetch/fetch_api_response.mojom", |
Jeremy Roman | 89a4d0d | 2018-04-26 19:05:28 | [diff] [blame] | 28 | "file/file_utilities.mojom", |
Adithya Srinivasan | 0c72ff0 | 2018-08-13 19:47:29 | [diff] [blame] | 29 | "filesystem/file_system.mojom", |
Marijn Kruisselbrink | 16af198 | 2018-08-15 21:22:35 | [diff] [blame] | 30 | "filesystem/file_writer.mojom", |
Rakina Zata Amni | acf4049 | 2018-05-08 22:59:33 | [diff] [blame] | 31 | "frame/find_in_page.mojom", |
Chase Phillips | 68ecf551 | 2018-08-16 01:59:13 | [diff] [blame] | 32 | "indexeddb/indexeddb.mojom", |
Dmitry Gozman | d016d88 | 2018-04-20 01:55:24 | [diff] [blame] | 33 | "leak_detector/leak_detector.mojom", |
Lu Chen | 5bec7a30 | 2018-06-26 18:52:32 | [diff] [blame] | 34 | "loader/navigation_predictor.mojom", |
Ryan Sturm | c65dbe4 | 2018-05-31 20:37:04 | [diff] [blame] | 35 | "loader/pause_subresource_loading_handle.mojom", |
Tarun Bansal | dc97029 | 2018-07-12 00:02:58 | [diff] [blame] | 36 | "loader/previews_resource_loading_hints.mojom", |
Dmitry Gozman | 88ca5a99 | 2018-05-18 00:13:33 | [diff] [blame] | 37 | "manifest/display_mode.mojom", |
| 38 | "manifest/manifest.mojom", |
| 39 | "manifest/manifest_manager.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 40 | "net/ip_address_space.mojom", |
Becca Hughes | 6fe54e43 | 2018-06-09 04:18:56 | [diff] [blame] | 41 | "page/display_cutout.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 42 | "page/page_visibility_state.mojom", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 43 | "payments/payment_app.mojom", |
Jeremy Roman | b702474 | 2018-06-18 22:00:22 | [diff] [blame] | 44 | "plugins/plugin_registry.mojom", |
mark a. foltz | 6bbe59f | 2018-07-24 20:06:24 | [diff] [blame] | 45 | "presentation/presentation.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 46 | "quota/quota_dispatcher_host.mojom", |
| 47 | "quota/quota_types.mojom", |
Han Leon | 122d2818 | 2018-06-26 07:56:55 | [diff] [blame] | 48 | "service_worker/dispatch_fetch_event_params.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 49 | "service_worker/navigation_preload_state.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 50 | "service_worker/service_worker_client.mojom", |
| 51 | "service_worker/service_worker_error_type.mojom", |
| 52 | "service_worker/service_worker_event_status.mojom", |
Han Leon | 9a3a2fb | 2018-08-07 02:56:01 | [diff] [blame] | 53 | "service_worker/service_worker_fetch_response_callback.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 54 | "service_worker/service_worker_installed_scripts_manager.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 55 | "service_worker/service_worker_provider_type.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 56 | "service_worker/service_worker_state.mojom", |
| 57 | "service_worker/service_worker_stream_handle.mojom", |
Darin Fisher | 0f17e06 | 2018-03-05 17:53:08 | [diff] [blame] | 58 | "shared_worker/shared_worker_creation_context_type.mojom", |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 59 | "speech/speech_recognition_error.mojom", |
| 60 | "speech/speech_recognition_grammar.mojom", |
| 61 | "speech/speech_recognition_result.mojom", |
| 62 | "speech/speech_recognizer.mojom", |
Luna Lu | 29d922d | 2018-03-27 18:06:51 | [diff] [blame] | 63 | "use_counter/css_property_id.mojom", |
Tsuyoshi Horo | 8a81ad1 | 2018-04-07 06:35:29 | [diff] [blame] | 64 | "web_package/web_package_internals.mojom", |
Raymond Toy | e413650c | 2018-08-31 00:12:47 | [diff] [blame^] | 65 | "webaudio/audio_context_manager.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 66 | ] |
| 67 | |
| 68 | public_deps = [ |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 69 | ":android_mojo_bindings", |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 70 | ":speech_recognition_error_code", |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 71 | "//components/payments/mojom", |
Adithya Srinivasan | 0c72ff0 | 2018-08-13 19:47:29 | [diff] [blame] | 72 | "//components/services/filesystem/public/interfaces", |
Oksana Zhuravlova | 015487b3 | 2018-03-09 06:58:22 | [diff] [blame] | 73 | "//mojo/public/mojom/base", |
Dmitry Gozman | 88ca5a99 | 2018-05-18 00:13:33 | [diff] [blame] | 74 | "//services/device/public/mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 75 | "//services/network/public/mojom", |
Marijn Kruisselbrink | d3e3a38 | 2018-03-16 20:28:36 | [diff] [blame] | 76 | |
| 77 | # TODO(https://crbug.com/822804): Remove when mojom bindings deps checks |
| 78 | # get fixed. |
| 79 | "//services/network/public/mojom:data_pipe_interfaces", |
Mike Wasserman | 384f907d | 2018-06-01 01:50:56 | [diff] [blame] | 80 | "//skia/public/interfaces", |
Donna Wu | 838ac36 | 2018-08-10 10:36:33 | [diff] [blame] | 81 | "//third_party/blink/public/mojom/usb", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 82 | "//ui/gfx/geometry/mojo", |
| 83 | "//url/mojom:url_mojom_gurl", |
| 84 | "//url/mojom:url_mojom_origin", |
| 85 | ] |
| 86 | |
| 87 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 88 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 89 | export_header = "third_party/blink/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 90 | |
| 91 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 92 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 93 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 94 | } |
| 95 | |
Han Leon | abbe7c90 | 2018-08-30 02:08:10 | [diff] [blame] | 96 | # Kept separate from "mojom_platform" because the Java bindings are specifically |
| 97 | # needed by Android's implementation of payments |
| 98 | # (in components/payments/content/android and chrome/android/). |
| 99 | mojom("android_mojo_bindings") { |
| 100 | sources = [ |
| 101 | "payments/payment_request.mojom", |
| 102 | ] |
| 103 | public_deps = [ |
| 104 | "//components/payments/mojom", |
| 105 | ] |
| 106 | |
| 107 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 108 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 109 | export_header = "third_party/blink/common/common_export.h" |
| 110 | |
| 111 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 112 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 113 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| 114 | } |
| 115 | |
Adithya Srinivasan | c35bf396 | 2018-06-12 14:28:14 | [diff] [blame] | 116 | # Kept separate from "mojom_platform" because the Java bindings are needed by |
| 117 | # Android's implementation of speech recognition. |
| 118 | mojom("speech_recognition_error_code") { |
| 119 | sources = [ |
| 120 | "speech/speech_recognition_error_code.mojom", |
| 121 | ] |
| 122 | } |
| 123 | |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 124 | # This target can include mojom interfaces which do use types that are |
| 125 | # typemapped to a type in Source/core. This also means these interfaces are not |
| 126 | # available from Source/platform. |
Han Leon | 94335e4 | 2018-03-15 08:44:18 | [diff] [blame] | 127 | # Note that service_worker_object.mojom and service_worker.mojom depend |
| 128 | # on message_port.mojom, and service_worker_registration.mojom depends |
| 129 | # on service_worker_object.mojom, so we put these three service worker |
| 130 | # mojom files here rather than mojom_platform target. |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 131 | # In future we may have a separate mojom target for the things that may have |
| 132 | # modules dependencies if it looks necessary, at that time we can put all of |
| 133 | # those high-level service worker mojom files there. |
Han Leon | 19420c7 | 2018-03-08 01:59:55 | [diff] [blame] | 134 | mojom("mojom_core") { |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 135 | sources = [ |
| 136 | "message_port/message_port.mojom", |
Dave Tapuska | 6fa8d81 | 2018-07-31 14:32:06 | [diff] [blame] | 137 | "message_port/user_activation_snapshot.mojom", |
Lucas Furukawa Gadani | 7265507 | 2018-07-26 22:34:33 | [diff] [blame] | 138 | "portal/portal.mojom", |
Han Leon | 94335e4 | 2018-03-15 08:44:18 | [diff] [blame] | 139 | "service_worker/service_worker.mojom", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 140 | "service_worker/service_worker_object.mojom", |
| 141 | "service_worker/service_worker_registration.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 142 | ] |
| 143 | |
| 144 | public_deps = [ |
| 145 | ":mojom_platform", |
Ken Rockot | 1ca3931 | 2018-04-12 05:32:55 | [diff] [blame] | 146 | "//mojo/public/mojom/base", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 147 | "//skia/public/interfaces", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 148 | "//url/mojom:url_mojom_gurl", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 149 | ] |
| 150 | |
| 151 | overridden_deps_blink = [ ":mojom_platform" ] |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 152 | component_deps_blink = [ "//third_party/blink/renderer/platform" ] |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 153 | |
| 154 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 155 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 156 | export_header = "third_party/blink/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 157 | |
| 158 | export_class_attribute_blink = "CORE_EXPORT" |
| 159 | export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 160 | export_header_blink = "third_party/blink/renderer/core/core_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 161 | } |