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