blob: f121b4d88a62143d75c087c7497f2f547dcd4c88 [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",
Victor Costan7184272a2018-05-15 13:17:4320 "cookie_store/cookie_store.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5921 "dom_storage/session_storage_namespace.mojom",
Marijn Kruisselbrinkf9a9e762018-06-07 18:57:1222 "dom_storage/storage_area.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5923 "dom_storage/storage_partition_service.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0124 "feature_policy/feature_policy.mojom",
Han Leon6bbe7912018-07-31 01:13:4625 "fetch/fetch_api_response.mojom",
Jeremy Roman89a4d0d2018-04-26 19:05:2826 "file/file_utilities.mojom",
Rakina Zata Amniacf40492018-05-08 22:59:3327 "frame/find_in_page.mojom",
Dmitry Gozmand016d882018-04-20 01:55:2428 "leak_detector/leak_detector.mojom",
Lu Chen5bec7a302018-06-26 18:52:3229 "loader/navigation_predictor.mojom",
Ryan Sturmc65dbe42018-05-31 20:37:0430 "loader/pause_subresource_loading_handle.mojom",
Tarun Bansaldc970292018-07-12 00:02:5831 "loader/previews_resource_loading_hints.mojom",
Dmitry Gozman88ca5a992018-05-18 00:13:3332 "manifest/display_mode.mojom",
33 "manifest/manifest.mojom",
34 "manifest/manifest_manager.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0135 "net/ip_address_space.mojom",
Becca Hughes6fe54e432018-06-09 04:18:5636 "page/display_cutout.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0137 "page/page_visibility_state.mojom",
Jeremy Romanb7024742018-06-18 22:00:2238 "plugins/plugin_registry.mojom",
mark a. foltz6bbe59f2018-07-24 20:06:2439 "presentation/presentation.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0140 "quota/quota_dispatcher_host.mojom",
41 "quota/quota_types.mojom",
Han Leon122d28182018-06-26 07:56:5542 "service_worker/dispatch_fetch_event_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0143 "service_worker/navigation_preload_state.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0144 "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 Yasudafa0f2512018-03-01 07:13:0148 "service_worker/service_worker_provider_type.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0149 "service_worker/service_worker_state.mojom",
50 "service_worker/service_worker_stream_handle.mojom",
Darin Fisher0f17e062018-03-05 17:53:0851 "shared_worker/shared_worker_creation_context_type.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:1452 "speech/speech_recognition_error.mojom",
53 "speech/speech_recognition_grammar.mojom",
54 "speech/speech_recognition_result.mojom",
55 "speech/speech_recognizer.mojom",
Luna Lu29d922d2018-03-27 18:06:5156 "use_counter/css_property_id.mojom",
Tsuyoshi Horo8a81ad12018-04-07 06:35:2957 "web_package/web_package_internals.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0158 ]
59
60 public_deps = [
Adithya Srinivasanc35bf3962018-06-12 14:28:1461 ":speech_recognition_error_code",
Oksana Zhuravlova015487b32018-03-09 06:58:2262 "//mojo/public/mojom/base",
Dmitry Gozman88ca5a992018-05-18 00:13:3363 "//services/device/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0164 "//services/network/public/mojom",
Marijn Kruisselbrinkd3e3a382018-03-16 20:28:3665
66 # TODO(https://crbug.com/822804): Remove when mojom bindings deps checks
67 # get fixed.
68 "//services/network/public/mojom:data_pipe_interfaces",
Mike Wasserman384f907d2018-06-01 01:50:5669 "//skia/public/interfaces",
Kinuko Yasudafa0f2512018-03-01 07:13:0170 "//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 Reformata30d4232018-04-07 15:31:0677 export_header = "third_party/blink/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:0178
79 export_class_attribute_blink = "PLATFORM_EXPORT"
80 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:0681 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:0182}
83
Adithya Srinivasanc35bf3962018-06-12 14:28:1484# Kept separate from "mojom_platform" because the Java bindings are needed by
85# Android's implementation of speech recognition.
86mojom("speech_recognition_error_code") {
87 sources = [
88 "speech/speech_recognition_error_code.mojom",
89 ]
90}
91
Kinuko Yasudafa0f2512018-03-01 07:13:0192# 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 Leon94335e42018-03-15 08:44:1895# 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 Leonb2f46cd2018-03-09 01:59:1699# 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 Leon19420c72018-03-08 01:59:55102mojom("mojom_core") {
Kinuko Yasudafa0f2512018-03-01 07:13:01103 sources = [
104 "message_port/message_port.mojom",
Lucas Furukawa Gadani72655072018-07-26 22:34:33105 "portal/portal.mojom",
Han Leon94335e42018-03-15 08:44:18106 "service_worker/service_worker.mojom",
Han Leonb2f46cd2018-03-09 01:59:16107 "service_worker/service_worker_object.mojom",
108 "service_worker/service_worker_registration.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01109 ]
110
111 public_deps = [
112 ":mojom_platform",
Ken Rockot1ca39312018-04-12 05:32:55113 "//mojo/public/mojom/base",
Kinuko Yasudafa0f2512018-03-01 07:13:01114 "//skia/public/interfaces",
Han Leonb2f46cd2018-03-09 01:59:16115 "//url/mojom:url_mojom_gurl",
Kinuko Yasudafa0f2512018-03-01 07:13:01116 ]
117
118 overridden_deps_blink = [ ":mojom_platform" ]
Blink Reformata30d4232018-04-07 15:31:06119 component_deps_blink = [ "//third_party/blink/renderer/platform" ]
Kinuko Yasudafa0f2512018-03-01 07:13:01120
121 export_class_attribute = "BLINK_COMMON_EXPORT"
122 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06123 export_header = "third_party/blink/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01124
125 export_class_attribute_blink = "CORE_EXPORT"
126 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06127 export_header_blink = "third_party/blink/renderer/core/core_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01128}