Commit ae3270a7 authored by Ken Rockot's avatar Ken Rockot Committed by Commit Bot

Decompose some Blink public mojom targets

This picks some low-hanging fruit in the effort to decompose Blink mojom
into smaller targets.

Bug: 1058621
Change-Id: Iaf1a8efffa43f64ea7e618555262b929235ca2eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2088677Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#747044}
parent b75436e5
......@@ -92,12 +92,6 @@ mojom("mojom_platform") {
"mediastream/media_devices.mojom",
"mediastream/media_stream.mojom",
"mime/mime_registry.mojom",
"native_file_system/native_file_system_directory_handle.mojom",
"native_file_system/native_file_system_error.mojom",
"native_file_system/native_file_system_file_handle.mojom",
"native_file_system/native_file_system_file_writer.mojom",
"native_file_system/native_file_system_manager.mojom",
"native_file_system/native_file_system_transfer_token.mojom",
"notifications/notification.mojom",
"notifications/notification_service.mojom",
"oom_intervention/oom_intervention.mojom",
......@@ -106,9 +100,6 @@ mojom("mojom_platform") {
"page/spatial_navigation.mojom",
"payments/payment_app.mojom",
"peerconnection/peer_connection_tracker.mojom",
"permissions/permission.mojom",
"permissions/permission_automation.mojom",
"permissions/permission_status.mojom",
"picture_in_picture/picture_in_picture.mojom",
"plugins/plugin_registry.mojom",
"prerender/prerender.mojom",
......@@ -122,7 +113,6 @@ mojom("mojom_platform") {
"renderer_preferences.mojom",
"reporting/reporting.mojom",
"screen_enumeration/screen_enumeration.mojom",
"script/script_type.mojom",
"scroll/scroll_enums.mojom",
"scroll/scroll_into_view_params.mojom",
"scroll/scrollbar_mode.mojom",
......@@ -206,6 +196,9 @@ mojom("mojom_platform") {
"//skia/public/mojom",
"//third_party/blink/public/mojom/dom_storage",
"//third_party/blink/public/mojom/frame",
"//third_party/blink/public/mojom/native_file_system",
"//third_party/blink/public/mojom/permissions",
"//third_party/blink/public/mojom/script",
"//third_party/blink/public/mojom/usb",
"//ui/base/ime/mojom",
"//ui/display/mojom",
......@@ -246,11 +239,6 @@ mojom("mojom_platform") {
mojom("android_mojo_bindings") {
generate_java = true
sources = [
"blob/blob.mojom",
"blob/blob_registry.mojom",
"blob/blob_url_store.mojom",
"blob/data_element.mojom",
"blob/serialized_blob.mojom",
"document_metadata/document_metadata.mojom",
"font_unique_name_lookup/font_unique_name_lookup.mojom",
"input/input_host.mojom",
......@@ -275,6 +263,7 @@ mojom("android_mojo_bindings") {
"//mojo/public/mojom/base",
"//services/media_session/public/mojom",
"//services/network/public/mojom",
"//third_party/blink/public/mojom/blob",
"//url/mojom:url_mojom_gurl",
"//url/mojom:url_mojom_origin",
]
......
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
mojom_component("blob") {
output_prefix = "blink_blob_mojom"
macro_prefix = "BLINK_BLOB_MOJOM"
sources = [
"blob.mojom",
"blob_registry.mojom",
"blob_url_store.mojom",
"data_element.mojom",
"serialized_blob.mojom",
]
public_deps = [
"//mojo/public/mojom/base",
"//services/network/public/mojom",
"//url/mojom:url_mojom_origin",
]
# The Blink variant is linked directly into the private platform
# implementation and so it requires the corresponding export configuration to
# override the normal mojom_component() target exports.
export_class_attribute_blink = "PLATFORM_EXPORT"
export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
generate_java = true
}
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
mojom_component("native_file_system") {
output_prefix = "blink_native_file_system_mojom"
macro_prefix = "BLINK_NATIVE_FILE_SYSTEM_MOJOM"
sources = [
"native_file_system_directory_handle.mojom",
"native_file_system_error.mojom",
"native_file_system_file_handle.mojom",
"native_file_system_file_writer.mojom",
"native_file_system_manager.mojom",
"native_file_system_transfer_token.mojom",
]
public_deps = [
"//mojo/public/mojom/base",
"//third_party/blink/public/mojom/blob",
"//third_party/blink/public/mojom/permissions",
"//url/mojom:url_mojom_origin",
]
# The Blink variant is linked directly into the private platform
# implementation and so it requires the corresponding export configuration to
# override the normal mojom_component() target exports.
export_class_attribute_blink = "PLATFORM_EXPORT"
export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
generate_java = true
}
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
mojom_component("permissions") {
output_prefix = "blink_permissions_mojom"
macro_prefix = "BLINK_PERMISSIONS_MOJOM"
sources = [
"permission.mojom",
"permission_automation.mojom",
"permission_status.mojom",
]
public_deps = [ "//url/mojom:url_mojom_gurl" ]
# The Blink variant is linked directly into the private platform
# implementation and so it requires the corresponding export configuration to
# override the normal mojom_component() target exports.
export_class_attribute_blink = "PLATFORM_EXPORT"
export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
generate_java = true
}
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
mojom_component("script") {
output_prefix = "blink_script_mojom"
macro_prefix = "BLINK_SCRIPT_MOJOM"
sources = [ "script_type.mojom" ]
# The Blink variant is linked directly into the private platform
# implementation and so it requires the corresponding export configuration to
# override the normal mojom_component() target exports.
export_class_attribute_blink = "PLATFORM_EXPORT"
export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
generate_java = true
}
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
mojom_component("web_feature") {
output_prefix = "blink_web_feature_mojom"
macro_prefix = "BLINK_WEB_FEATURE_MOJOM"
sources = [ "web_feature.mojom" ]
# The Blink variant is linked directly into the private platform
# implementation and so it requires the corresponding export configuration to
# override the normal mojom_component() target exports.
export_class_attribute_blink = "PLATFORM_EXPORT"
export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
generate_java = true
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment