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", |
| 20 | "feature_policy/feature_policy.mojom", |
Jeremy Roman | 89a4d0d | 2018-04-26 19:05:28 | [diff] [blame^] | 21 | "file/file_utilities.mojom", |
Dmitry Gozman | d016d88 | 2018-04-20 01:55:24 | [diff] [blame] | 22 | "leak_detector/leak_detector.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 23 | "loader/prefetch_url_loader_service.mojom", |
| 24 | "net/ip_address_space.mojom", |
| 25 | "page/page_visibility_state.mojom", |
| 26 | "quota/quota_dispatcher_host.mojom", |
| 27 | "quota/quota_types.mojom", |
| 28 | "service_worker/navigation_preload_state.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 29 | "service_worker/service_worker_client.mojom", |
| 30 | "service_worker/service_worker_error_type.mojom", |
| 31 | "service_worker/service_worker_event_status.mojom", |
| 32 | "service_worker/service_worker_installed_scripts_manager.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 33 | "service_worker/service_worker_provider_type.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 34 | "service_worker/service_worker_state.mojom", |
| 35 | "service_worker/service_worker_stream_handle.mojom", |
Darin Fisher | 0f17e06 | 2018-03-05 17:53:08 | [diff] [blame] | 36 | "shared_worker/shared_worker_creation_context_type.mojom", |
Luna Lu | 29d922d | 2018-03-27 18:06:51 | [diff] [blame] | 37 | "use_counter/css_property_id.mojom", |
Tsuyoshi Horo | 8a81ad1 | 2018-04-07 06:35:29 | [diff] [blame] | 38 | "web_package/web_package_internals.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 39 | ] |
| 40 | |
| 41 | public_deps = [ |
Oksana Zhuravlova | 015487b3 | 2018-03-09 06:58:22 | [diff] [blame] | 42 | "//mojo/public/mojom/base", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 43 | "//services/network/public/mojom", |
Marijn Kruisselbrink | d3e3a38 | 2018-03-16 20:28:36 | [diff] [blame] | 44 | |
| 45 | # TODO(https://crbug.com/822804): Remove when mojom bindings deps checks |
| 46 | # get fixed. |
| 47 | "//services/network/public/mojom:data_pipe_interfaces", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 48 | "//ui/gfx/geometry/mojo", |
| 49 | "//url/mojom:url_mojom_gurl", |
| 50 | "//url/mojom:url_mojom_origin", |
| 51 | ] |
| 52 | |
| 53 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 54 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 55 | export_header = "third_party/blink/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 56 | |
| 57 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 58 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 59 | export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | # This target can include mojom interfaces which do use types that are |
| 63 | # typemapped to a type in Source/core. This also means these interfaces are not |
| 64 | # available from Source/platform. |
Han Leon | 94335e4 | 2018-03-15 08:44:18 | [diff] [blame] | 65 | # Note that service_worker_object.mojom and service_worker.mojom depend |
| 66 | # on message_port.mojom, and service_worker_registration.mojom depends |
| 67 | # on service_worker_object.mojom, so we put these three service worker |
| 68 | # mojom files here rather than mojom_platform target. |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 69 | # In future we may have a separate mojom target for the things that may have |
| 70 | # modules dependencies if it looks necessary, at that time we can put all of |
| 71 | # those high-level service worker mojom files there. |
Han Leon | 19420c7 | 2018-03-08 01:59:55 | [diff] [blame] | 72 | mojom("mojom_core") { |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 73 | sources = [ |
| 74 | "message_port/message_port.mojom", |
Han Leon | 94335e4 | 2018-03-15 08:44:18 | [diff] [blame] | 75 | "service_worker/service_worker.mojom", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 76 | "service_worker/service_worker_object.mojom", |
| 77 | "service_worker/service_worker_registration.mojom", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 78 | ] |
| 79 | |
| 80 | public_deps = [ |
| 81 | ":mojom_platform", |
Ken Rockot | 1ca3931 | 2018-04-12 05:32:55 | [diff] [blame] | 82 | "//mojo/public/mojom/base", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 83 | "//skia/public/interfaces", |
Han Leon | b2f46cd | 2018-03-09 01:59:16 | [diff] [blame] | 84 | "//url/mojom:url_mojom_gurl", |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 85 | ] |
| 86 | |
| 87 | overridden_deps_blink = [ ":mojom_platform" ] |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 88 | component_deps_blink = [ "//third_party/blink/renderer/platform" ] |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 89 | |
| 90 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 91 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 92 | export_header = "third_party/blink/common/common_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 93 | |
| 94 | export_class_attribute_blink = "CORE_EXPORT" |
| 95 | export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame] | 96 | export_header_blink = "third_party/blink/renderer/core/core_export.h" |
Kinuko Yasuda | fa0f251 | 2018-03-01 07:13:01 | [diff] [blame] | 97 | } |