Commit 2b55ebef authored by Ken Rockot's avatar Ken Rockot Committed by Commit Bot

Convert content/common typemaps to GN

Bug: 1059389
Change-Id: If88f7f5463389791c162801d10944f61a10c70b3
Test: Build compiles with no source changes, so same typemap config as before
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2108123Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#751451}
parent 713ef594
This diff is collapsed.
...@@ -22,9 +22,6 @@ per-file *_messages*.h=file://ipc/SECURITY_OWNERS ...@@ -22,9 +22,6 @@ per-file *_messages*.h=file://ipc/SECURITY_OWNERS
per-file *_messages.cc=set noparent per-file *_messages.cc=set noparent
per-file *_messages.cc=file://ipc/SECURITY_OWNERS per-file *_messages.cc=file://ipc/SECURITY_OWNERS
per-file *.typemap=set noparent
per-file *.typemap=file://ipc/SECURITY_OWNERS
per-file *_param_traits*.*=set noparent per-file *_param_traits*.*=set noparent
per-file *_param_traits*.*=file://ipc/SECURITY_OWNERS per-file *_param_traits*.*=file://ipc/SECURITY_OWNERS
......
# 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.
mojom = "//content/common/ax_content_node_data.mojom"
public_headers = [ "//content/common/ax_content_node_data.h" ]
traits_headers = [ "//content/common/ax_content_node_data_mojom_traits.h" ]
sources = [
"ax_content_node_data_mojom_traits.cc",
"ax_content_node_data_mojom_traits.h",
]
deps = [ "//ui/accessibility" ]
type_mappings = [ "ax.mojom.AXContentNodeData=::content::AXContentNodeData" ]
# 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.
mojom = "//content/common/ax_content_tree_data.mojom"
public_headers = [ "//content/common/ax_content_node_data.h" ]
traits_headers = [ "//content/common/ax_content_tree_data_mojom_traits.h" ]
sources = [
"ax_content_tree_data_mojom_traits.cc",
"ax_content_tree_data_mojom_traits.h",
]
deps = [ "//ui/accessibility" ]
type_mappings = [ "ax.mojom.AXContentTreeData=::content::AXContentTreeData" ]
# 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.
mojom = "//content/common/ax_content_tree_update.mojom"
public_headers = [ "//content/common/ax_content_node_data.h" ]
traits_headers = [ "//content/common/ax_content_tree_update_mojom_traits.h" ]
sources = [
"ax_content_tree_update_mojom_traits.cc",
"ax_content_tree_update_mojom_traits.h",
]
type_mappings =
[ "ax.mojom.AXContentTreeUpdate=::content::AXContentTreeUpdate" ]
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "content/common/savable_subframe.h" #include "content/common/savable_subframe.h"
#include "content/public/common/common_param_traits.h" #include "content/public/common/common_param_traits.h"
#include "content/public/common/frame_navigate_params.h" #include "content/public/common/frame_navigate_params.h"
#include "content/public/common/navigation_policy.h"
#include "content/public/common/page_state.h" #include "content/public/common/page_state.h"
#include "content/public/common/previews_state.h" #include "content/public/common/previews_state.h"
#include "content/public/common/referrer.h" #include "content/public/common/referrer.h"
......
# Copyright 2017 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.
mojom = "//content/common/frame_messages.mojom"
public_headers = [ "//content/common/frame_messages_forward.h" ]
traits_headers = [ "//content/common/frame_messages.h" ]
type_mappings = [ "content.mojom.DidCommitProvisionalLoadParams=::std::unique_ptr<::FrameHostMsg_DidCommitProvisionalLoad_Params>[move_only,nullable_is_same_type]" ]
...@@ -12,8 +12,6 @@ per-file *_messages.cc=set noparent ...@@ -12,8 +12,6 @@ per-file *_messages.cc=set noparent
per-file *_messages.cc=file://ipc/SECURITY_OWNERS per-file *_messages.cc=file://ipc/SECURITY_OWNERS
per-file *_messages*.h=set noparent per-file *_messages*.h=set noparent
per-file *_messages*.h=file://ipc/SECURITY_OWNERS per-file *_messages*.h=file://ipc/SECURITY_OWNERS
per-file *.typemap=set noparent
per-file *.typemap=file://ipc/SECURITY_OWNERS
# TEAM: input-dev@chromium.org # TEAM: input-dev@chromium.org
# COMPONENT: Blink>Input # COMPONENT: Blink>Input
# Copyright 2017 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.
mojom = "//content/common/input/synchronous_compositor.mojom"
public_headers = [ "//content/common/input/sync_compositor_messages.h" ]
traits_headers = [ "//content/common/input/sync_compositor_messages.h" ]
deps = [
"//ui/gfx/ipc",
]
type_mappings = [
"content.mojom.SyncCompositorDemandDrawHwParams=::content::SyncCompositorDemandDrawHwParams",
"content.mojom.SyncCompositorSetSharedMemoryParams=::content::SyncCompositorSetSharedMemoryParams",
"content.mojom.SyncCompositorDemandDrawSwParams=::content::SyncCompositorDemandDrawSwParams",
"content.mojom.SyncCompositorCommonRendererParams=::content::SyncCompositorCommonRendererParams",
]
# Copyright 2016 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.
mojom = "//content/common/native_types.mojom"
public_headers = [
"//cc/input/touch_action.h",
"//content/common/cursors/webcursor.h",
"//content/common/edit_command.h",
"//content/common/frame_replication_state.h",
"//content/common/input/input_event.h",
"//content/common/input/synthetic_pinch_gesture_params.h",
"//content/common/input/synthetic_pointer_action_list_params.h",
"//content/common/input/synthetic_smooth_drag_gesture_params.h",
"//content/common/input/synthetic_smooth_scroll_gesture_params.h",
"//content/common/input/synthetic_tap_gesture_params.h",
"//content/common/visual_properties.h",
"//content/public/common/input_event_ack_source.h",
"//content/public/common/input_event_ack_state.h",
"//content/public/common/web_preferences.h",
"//net/base/network_change_notifier.h",
"//third_party/blink/public/common/input/web_gesture_device.h",
"//third_party/blink/public/common/input/web_gesture_event.h",
"//third_party/blink/public/common/input/web_input_event.h",
"//third_party/blink/public/common/input/web_mouse_wheel_event.h",
"//third_party/blink/public/common/input/web_pointer_properties.h",
"//third_party/blink/public/common/input/web_touch_point.h",
"//ui/events/blink/did_overscroll_params.h",
"//ui/events/blink/web_input_event_traits.h",
"//ui/latency/ipc/latency_info_param_traits.h",
"//ui/native_theme/native_theme.h",
]
traits_headers = [
"//content/common/frame_messages.h",
"//content/common/input/input_event_mojom_traits.h",
"//content/common/input/touch_action_optional_mojom_traits.h",
"//content/common/input_messages.h",
"//content/common/view_messages.h",
"//content/common/widget_messages.h",
"//content/public/common/common_param_traits.h",
"//services/network/public/cpp/p2p_param_traits.h",
]
public_deps = [
# NOTE: These dependencies are here to satisfy gn check because
# common_param_traits_macros.h and/or view_messages.h include their headers.
# Although the mojo bindings target is configured to allow direct circular
# includes from //content/common and //content/public/common, this isn't a
# transitive allowance, so those targets' own public_deps aren't included in
# the set of implied dependencies.
"//content/common:buildflags",
"//media",
"//media/base/ipc",
"//net",
"//ppapi/buildflags",
"//services/network/public/cpp",
"//third_party/blink/public/common",
"//ui/accessibility",
"//ui/base/ime:text_input_types",
"//ui/events/blink",
"//ui/gfx/ipc",
"//ui/gfx/ipc/color",
"//ui/gfx/ipc/skia",
"//ui/surface",
"//url/ipc:url_ipc",
]
type_mappings = [
"content.mojom.Button=::blink::WebPointerProperties::Button",
"content.mojom.Cancelability=::blink::WebInputEvent::DispatchType",
"content.mojom.ContentSecurityPolicy=::content::ContentSecurityPolicy",
"content.mojom.DidOverscrollParams=::ui::DidOverscrollParams",
"content.mojom.EditCommand=::content::EditCommand",
"content.mojom.Event=::std::unique_ptr<::content::InputEvent>[move_only]",
"content.mojom.EventType=::blink::WebInputEvent::Type",
"content.mojom.FrameReplicationState=::content::FrameReplicationState",
"content.mojom.GestureDevice=::blink::WebGestureDevice",
"content.mojom.InertialPhaseState=::blink::WebGestureEvent::InertialPhaseState",
"content.mojom.InputEventAckSource=::content::InputEventAckSource",
"content.mojom.InputEventAckState=::content::InputEventAckState",
"content.mojom.NetworkConnectionType=::net::NetworkChangeNotifier::ConnectionType",
"content.mojom.PointerType=::blink::WebPointerProperties::PointerType",
"content.mojom.ScrollGranularity=::ui::ScrollGranularity",
"content.mojom.SyntheticPinch=::content::SyntheticPinchGestureParams",
"content.mojom.SyntheticPointerAction=::content::SyntheticPointerActionListParams",
"content.mojom.SyntheticSmoothDrag=::content::SyntheticSmoothDragGestureParams",
"content.mojom.SyntheticSmoothScroll=::content::SyntheticSmoothScrollGestureParams",
"content.mojom.SyntheticTap=::content::SyntheticTapGestureParams",
"content.mojom.SystemThemeColor=::ui::NativeTheme::SystemThemeColor",
"content.mojom.TouchActionOptional=::cc::TouchAction",
"content.mojom.TouchState=::blink::WebTouchPoint::State",
"content.mojom.VisualProperties=::content::VisualProperties",
"content.mojom.WebCursor=::content::WebCursor",
"content.mojom.WebPopupType=::blink::WebPopupType",
]
# Copyright 2016 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.
mojom = "//content/common/native_types.mojom"
os_whitelist = [ "mac" ]
public_headers = [
"//content/common/mac/attributed_string_coder.h",
"//third_party/blink/public/platform/mac/web_scrollbar_theme.h",
]
traits_headers = [ "//content/common/view_messages.h" ]
deps = [
# NOTE: These dependencies are here to satisfy gn check because
# common_param_traits_macros.h and/or view_messages.h include their headers.
# Although the mojo bindings target is configured to allow direct circular
# includes from //content/common and //content/public/common, this isn't a
# transitive allowance, so those targets' own public_deps aren't included in
# the set of implied dependencies.
"//media",
"//media/base/ipc",
"//net",
"//third_party/blink/public:blink_headers",
"//ui/accessibility",
"//ui/base/ime:text_input_types",
"//ui/gfx/ipc",
"//ui/gfx/ipc/color",
"//ui/gfx/ipc/skia",
"//ui/surface",
"//url/ipc:url_ipc",
]
type_mappings = [
"content.mojom.EncodedAttributedString=::mac::AttributedStringCoder::EncodedString",
"content.mojom.ScrollerStyle=::blink::ScrollerStyle",
]
# Copyright 2017 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.
mojom = "//content/common/navigation_params.mojom"
public_headers = [
"//content/common/content_param_traits.h",
"//content/common/navigation_params.h",
"//content/public/common/navigation_policy.h",
"//content/public/common/page_state.h",
"//third_party/blink/public/platform/web_mixed_content_context_type.h",
"//ui/base/page_transition_types.h",
]
traits_headers = [
"//content/common/frame_messages.h",
"//content/common/resource_messages.h",
]
deps = [ "//content:export" ]
type_mappings = [
"content.mojom.MixedContentContextType=::blink::WebMixedContentContextType",
"content.mojom.NavigationDownloadPolicy=::content::NavigationDownloadPolicy",
"content.mojom.PageState=::content::PageState",
"content.mojom.PageTransition=::ui::PageTransition",
"content.mojom.SHA256HashValue=::net::SHA256HashValue",
]
# Copyright 2018 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.
mojom = "//content/common/render_frame_metadata.mojom"
public_headers = [ "//cc/trees/render_frame_metadata.h" ]
traits_headers = [ "//content/common/render_frame_metadata_mojom_traits.h" ]
deps = [
"//cc",
"//ui/gfx/geometry/mojom:mojom_traits",
]
sources = [
"//content/common/render_frame_metadata_mojom_traits.cc",
]
type_mappings =
[ "content.mojom.RenderFrameMetadata=::cc::RenderFrameMetadata" ]
# Copyright 2016 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.
typemaps = [
"//content/common/ax_content_node_data.typemap",
"//content/common/ax_content_tree_data.typemap",
"//content/common/ax_content_tree_update.typemap",
"//content/common/frame_messages.typemap",
"//content/common/input/synchronous_compositor.typemap",
"//content/common/native_types.typemap",
"//content/common/native_types_mac.typemap",
"//content/common/navigation_params.typemap",
"//content/common/render_frame_metadata.typemap",
]
...@@ -21,7 +21,6 @@ _typemap_imports = [ ...@@ -21,7 +21,6 @@ _typemap_imports = [
"//components/sync/mojom/typemaps.gni", "//components/sync/mojom/typemaps.gni",
"//components/typemaps.gni", "//components/typemaps.gni",
"//content/browser/typemaps.gni", "//content/browser/typemaps.gni",
"//content/common/typemaps.gni",
"//content/public/common/typemaps.gni", "//content/public/common/typemaps.gni",
"//device/bluetooth/public/mojom/typemaps.gni", "//device/bluetooth/public/mojom/typemaps.gni",
"//device/bluetooth/public/mojom/test/typemaps.gni", "//device/bluetooth/public/mojom/test/typemaps.gni",
......
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