blob: e3f0d9e8042d7dbefd32e1d2797028c955153491 [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",
Ken Rockot26e4e802018-07-31 15:03:3313 "associated_interfaces/associated_interfaces.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0114 "blob/blob.mojom",
15 "blob/blob_registry.mojom",
16 "blob/blob_url_store.mojom",
17 "blob/data_element.mojom",
18 "blob/serialized_blob.mojom",
19 "clipboard/clipboard.mojom",
20 "color_chooser/color_chooser.mojom",
Victor Costan7184272a2018-05-15 13:17:4321 "cookie_store/cookie_store.mojom",
Yuzu Saijo2d12ef92018-08-21 04:52:0722 "crash/crash_memory_metrics_reporter.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5923 "dom_storage/session_storage_namespace.mojom",
Marijn Kruisselbrinkf9a9e762018-06-07 18:57:1224 "dom_storage/storage_area.mojom",
Marijn Kruisselbrink4712c332018-06-13 19:06:5925 "dom_storage/storage_partition_service.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0126 "feature_policy/feature_policy.mojom",
Han Leon6bbe7912018-07-31 01:13:4627 "fetch/fetch_api_response.mojom",
Jeremy Roman89a4d0d2018-04-26 19:05:2828 "file/file_utilities.mojom",
Adithya Srinivasan0c72ff02018-08-13 19:47:2929 "filesystem/file_system.mojom",
Marijn Kruisselbrink16af1982018-08-15 21:22:3530 "filesystem/file_writer.mojom",
Rakina Zata Amniacf40492018-05-08 22:59:3331 "frame/find_in_page.mojom",
Chase Phillips68ecf5512018-08-16 01:59:1332 "indexeddb/indexeddb.mojom",
Dmitry Gozmand016d882018-04-20 01:55:2433 "leak_detector/leak_detector.mojom",
Lu Chen5bec7a302018-06-26 18:52:3234 "loader/navigation_predictor.mojom",
Ryan Sturmc65dbe42018-05-31 20:37:0435 "loader/pause_subresource_loading_handle.mojom",
Tarun Bansaldc970292018-07-12 00:02:5836 "loader/previews_resource_loading_hints.mojom",
Dmitry Gozman88ca5a992018-05-18 00:13:3337 "manifest/display_mode.mojom",
38 "manifest/manifest.mojom",
39 "manifest/manifest_manager.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0140 "net/ip_address_space.mojom",
Becca Hughes6fe54e432018-06-09 04:18:5641 "page/display_cutout.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0142 "page/page_visibility_state.mojom",
Han Leonabbe7c902018-08-30 02:08:1043 "payments/payment_app.mojom",
Jeremy Romanb7024742018-06-18 22:00:2244 "plugins/plugin_registry.mojom",
mark a. foltz6bbe59f2018-07-24 20:06:2445 "presentation/presentation.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0146 "quota/quota_dispatcher_host.mojom",
47 "quota/quota_types.mojom",
Han Leon122d28182018-06-26 07:56:5548 "service_worker/dispatch_fetch_event_params.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0149 "service_worker/navigation_preload_state.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0150 "service_worker/service_worker_client.mojom",
51 "service_worker/service_worker_error_type.mojom",
52 "service_worker/service_worker_event_status.mojom",
Han Leon9a3a2fb2018-08-07 02:56:0153 "service_worker/service_worker_fetch_response_callback.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0154 "service_worker/service_worker_installed_scripts_manager.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0155 "service_worker/service_worker_provider_type.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0156 "service_worker/service_worker_state.mojom",
57 "service_worker/service_worker_stream_handle.mojom",
Darin Fisher0f17e062018-03-05 17:53:0858 "shared_worker/shared_worker_creation_context_type.mojom",
Adithya Srinivasanc35bf3962018-06-12 14:28:1459 "speech/speech_recognition_error.mojom",
60 "speech/speech_recognition_grammar.mojom",
61 "speech/speech_recognition_result.mojom",
62 "speech/speech_recognizer.mojom",
Luna Lu29d922d2018-03-27 18:06:5163 "use_counter/css_property_id.mojom",
Tsuyoshi Horo8a81ad12018-04-07 06:35:2964 "web_package/web_package_internals.mojom",
Raymond Toye413650c2018-08-31 00:12:4765 "webaudio/audio_context_manager.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0166 ]
67
68 public_deps = [
Han Leonabbe7c902018-08-30 02:08:1069 ":android_mojo_bindings",
Adithya Srinivasanc35bf3962018-06-12 14:28:1470 ":speech_recognition_error_code",
Han Leonabbe7c902018-08-30 02:08:1071 "//components/payments/mojom",
Adithya Srinivasan0c72ff02018-08-13 19:47:2972 "//components/services/filesystem/public/interfaces",
Oksana Zhuravlova015487b32018-03-09 06:58:2273 "//mojo/public/mojom/base",
Dmitry Gozman88ca5a992018-05-18 00:13:3374 "//services/device/public/mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:0175 "//services/network/public/mojom",
Marijn Kruisselbrinkd3e3a382018-03-16 20:28:3676
77 # TODO(https://crbug.com/822804): Remove when mojom bindings deps checks
78 # get fixed.
79 "//services/network/public/mojom:data_pipe_interfaces",
Mike Wasserman384f907d2018-06-01 01:50:5680 "//skia/public/interfaces",
Donna Wu838ac362018-08-10 10:36:3381 "//third_party/blink/public/mojom/usb",
Kinuko Yasudafa0f2512018-03-01 07:13:0182 "//ui/gfx/geometry/mojo",
83 "//url/mojom:url_mojom_gurl",
84 "//url/mojom:url_mojom_origin",
85 ]
86
87 export_class_attribute = "BLINK_COMMON_EXPORT"
88 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:0689 export_header = "third_party/blink/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:0190
91 export_class_attribute_blink = "PLATFORM_EXPORT"
92 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:0693 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:0194}
95
Han Leonabbe7c902018-08-30 02:08:1096# Kept separate from "mojom_platform" because the Java bindings are specifically
97# needed by Android's implementation of payments
98# (in components/payments/content/android and chrome/android/).
99mojom("android_mojo_bindings") {
100 sources = [
101 "payments/payment_request.mojom",
102 ]
103 public_deps = [
104 "//components/payments/mojom",
105 ]
106
107 export_class_attribute = "BLINK_COMMON_EXPORT"
108 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
109 export_header = "third_party/blink/common/common_export.h"
110
111 export_class_attribute_blink = "PLATFORM_EXPORT"
112 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
113 export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
114}
115
Adithya Srinivasanc35bf3962018-06-12 14:28:14116# Kept separate from "mojom_platform" because the Java bindings are needed by
117# Android's implementation of speech recognition.
118mojom("speech_recognition_error_code") {
119 sources = [
120 "speech/speech_recognition_error_code.mojom",
121 ]
122}
123
Kinuko Yasudafa0f2512018-03-01 07:13:01124# This target can include mojom interfaces which do use types that are
125# typemapped to a type in Source/core. This also means these interfaces are not
126# available from Source/platform.
Han Leon94335e42018-03-15 08:44:18127# Note that service_worker_object.mojom and service_worker.mojom depend
128# on message_port.mojom, and service_worker_registration.mojom depends
129# on service_worker_object.mojom, so we put these three service worker
130# mojom files here rather than mojom_platform target.
Han Leonb2f46cd2018-03-09 01:59:16131# In future we may have a separate mojom target for the things that may have
132# modules dependencies if it looks necessary, at that time we can put all of
133# those high-level service worker mojom files there.
Han Leon19420c72018-03-08 01:59:55134mojom("mojom_core") {
Kinuko Yasudafa0f2512018-03-01 07:13:01135 sources = [
136 "message_port/message_port.mojom",
Dave Tapuska6fa8d812018-07-31 14:32:06137 "message_port/user_activation_snapshot.mojom",
Lucas Furukawa Gadani72655072018-07-26 22:34:33138 "portal/portal.mojom",
Han Leon94335e42018-03-15 08:44:18139 "service_worker/service_worker.mojom",
Han Leonb2f46cd2018-03-09 01:59:16140 "service_worker/service_worker_object.mojom",
141 "service_worker/service_worker_registration.mojom",
Kinuko Yasudafa0f2512018-03-01 07:13:01142 ]
143
144 public_deps = [
145 ":mojom_platform",
Ken Rockot1ca39312018-04-12 05:32:55146 "//mojo/public/mojom/base",
Kinuko Yasudafa0f2512018-03-01 07:13:01147 "//skia/public/interfaces",
Han Leonb2f46cd2018-03-09 01:59:16148 "//url/mojom:url_mojom_gurl",
Kinuko Yasudafa0f2512018-03-01 07:13:01149 ]
150
151 overridden_deps_blink = [ ":mojom_platform" ]
Blink Reformata30d4232018-04-07 15:31:06152 component_deps_blink = [ "//third_party/blink/renderer/platform" ]
Kinuko Yasudafa0f2512018-03-01 07:13:01153
154 export_class_attribute = "BLINK_COMMON_EXPORT"
155 export_define = "BLINK_COMMON_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06156 export_header = "third_party/blink/common/common_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01157
158 export_class_attribute_blink = "CORE_EXPORT"
159 export_define_blink = "BLINK_CORE_IMPLEMENTATION=1"
Blink Reformata30d4232018-04-07 15:31:06160 export_header_blink = "third_party/blink/renderer/core/core_export.h"
Kinuko Yasudafa0f2512018-03-01 07:13:01161}