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", |
| 21 | "loader/prefetch_url_loader_service.mojom", |
| 22 | "net/ip_address_space.mojom", |
| 23 | "page/page_visibility_state.mojom", |
| 24 | "quota/quota_dispatcher_host.mojom", |
| 25 | "quota/quota_types.mojom", |
| 26 | "service_worker/navigation_preload_state.mojom", |
| 27 | "service_worker/service_worker.mojom", |
| 28 | "service_worker/service_worker_client.mojom", |
| 29 | "service_worker/service_worker_error_type.mojom", |
| 30 | "service_worker/service_worker_event_status.mojom", |
| 31 | "service_worker/service_worker_installed_scripts_manager.mojom", |
| 32 | "service_worker/service_worker_object.mojom", |
| 33 | "service_worker/service_worker_provider_type.mojom", |
| 34 | "service_worker/service_worker_registration.mojom", |
| 35 | "service_worker/service_worker_state.mojom", |
| 36 | "service_worker/service_worker_stream_handle.mojom", |
| 37 | ] |
| 38 | |
| 39 | public_deps = [ |
| 40 | "//mojo/common:common_custom_types", |
| 41 | "//services/network/public/mojom", |
| 42 | "//ui/gfx/geometry/mojo", |
| 43 | "//url/mojom:url_mojom_gurl", |
| 44 | "//url/mojom:url_mojom_origin", |
| 45 | ] |
| 46 | |
| 47 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 48 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 49 | export_header = "third_party/WebKit/common/common_export.h" |
| 50 | |
| 51 | export_class_attribute_blink = "PLATFORM_EXPORT" |
| 52 | export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 53 | export_header_blink = "third_party/WebKit/Source/platform/PlatformExport.h" |
| 54 | } |
| 55 | |
| 56 | # This target can include mojom interfaces which do use types that are |
| 57 | # typemapped to a type in Source/core. This also means these interfaces are not |
| 58 | # available from Source/platform. |
| 59 | mojom("mojom") { |
| 60 | sources = [ |
| 61 | "message_port/message_port.mojom", |
| 62 | ] |
| 63 | |
| 64 | public_deps = [ |
| 65 | ":mojom_platform", |
| 66 | "//skia/public/interfaces", |
| 67 | ] |
| 68 | |
| 69 | overridden_deps_blink = [ ":mojom_platform" ] |
| 70 | component_deps_blink = [ "//third_party/WebKit/Source/platform" ] |
| 71 | |
| 72 | export_class_attribute = "BLINK_COMMON_EXPORT" |
| 73 | export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| 74 | export_header = "third_party/WebKit/common/common_export.h" |
| 75 | |
| 76 | export_class_attribute_blink = "CORE_EXPORT" |
| 77 | export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
| 78 | export_header_blink = "third_party/WebKit/Source/core/CoreExport.h" |
| 79 | } |