blob: 3a90358ac4f5844d1af7a835f98653083bfc4d3a [file] [log] [blame]
Kinuko Yasudafa0f2512018-03-01 07:13:011# 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
5import("//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.
10mojom("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 Roman89a4d0d2018-04-26 19:05:2821 "file/file_utilities.mojom",
Dmitry Gozmand016d882018-04-20 01:55:2422 "leak_detector/leak_detector.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0123 "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 Yasudafa0f2512018-03-01 07:13:0129 "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 Yasudafa0f2512018-03-01 07:13:0133 "service_worker/service_worker_provider_type.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0134 "service_worker/service_worker_state.mojom",
35 "service_worker/service_worker_stream_handle.mojom",
Darin Fisher0f17e062018-03-05 17:53:0836 "shared_worker/shared_worker_creation_context_type.mojom",
Luna Lu29d922d2018-03-27 18:06:5137 "use_counter/css_property_id.mojom",
Tsuyoshi Horo8a81ad12018-04-07 06:35:2938 "web_package/web_package_internals.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0139 ]
40
41 public_deps = [
Oksana Zhuravlova015487b32018-03-09 06:58:2242 "//mojo/public/mojom/base",
Kinuko Yasudafa0f2512018-03-01 07:13:0143 "//services/network/public/mojom",
Marijn Kruisselbrinkd3e3a382018-03-16 20:28:3644
45 # TODO(https://crbug.com/822804): Remove when mojom bindings deps checks
46 # get fixed.
47 "//services/network/public/mojom:data_pipe_interfaces",
Kinuko Yasudafa0f2512018-03-01 07:13:0148 "//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 Reformata30d4232018-04-07 15:31:0655 export_header = "third_party/blink/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:0156
57 export_class_attribute_blink = "PLATFORM_EXPORT"
58 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:0659 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:0160}
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 Leon94335e42018-03-15 08:44:1865# 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 Leonb2f46cd2018-03-09 01:59:1669# 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 Leon19420c72018-03-08 01:59:5572mojom("mojom_core") {
Kinuko Yasudafa0f2512018-03-01 07:13:0173 sources = [
74 "message_port/message_port.mojom",
Han Leon94335e42018-03-15 08:44:1875 "service_worker/service_worker.mojom",
Han Leonb2f46cd2018-03-09 01:59:1676 "service_worker/service_worker_object.mojom",
77 "service_worker/service_worker_registration.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0178 ]
79
80 public_deps = [
81 ":mojom_platform",
Ken Rockot1ca39312018-04-12 05:32:5582 "//mojo/public/mojom/base",
Kinuko Yasudafa0f2512018-03-01 07:13:0183 "//skia/public/interfaces",
Han Leonb2f46cd2018-03-09 01:59:1684 "//url/mojom:url_mojom_gurl",
Kinuko Yasudafa0f2512018-03-01 07:13:0185 ]
86
87 overridden_deps_blink = [ ":mojom_platform" ]
Blink Reformata30d4232018-04-07 15:31:0688 component_deps_blink = [ "//third_party/blink/renderer/platform" ]
Kinuko Yasudafa0f2512018-03-01 07:13:0189
90 export_class_attribute = "BLINK_COMMON_EXPORT"
91 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:0692 export_header = "third_party/blink/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:0193
94 export_class_attribute_blink = "CORE_EXPORT"
95 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:0696 export_header_blink = "third_party/blink/renderer/core/core_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:0197}