summaryrefslogtreecommitdiffstats
path: root/content/browser/frame_host
diff options
context:
space:
mode:
authorwjmaclean <wjmaclean@chromium.org>2016-03-04 13:49:19 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-04 21:50:23 +0000
commit4446423513e9f2da52e156bc93b5228e6a3d6e08 (patch)
treecc86b950425ee48726f3bc57c58d7249b744523d /content/browser/frame_host
parent9a995c82fd5c1d186ebd3d0a30d5a78b29dd5e82 (diff)
downloadchromium_src-4446423513e9f2da52e156bc93b5228e6a3d6e08.zip
chromium_src-4446423513e9f2da52e156bc93b5228e6a3d6e08.tar.gz
chromium_src-4446423513e9f2da52e156bc93b5228e6a3d6e08.tar.bz2
Implement Gesture event hit testing/forwarding for OOPIF.
This CL implements plumbing to forward gesture events to OOPIF frames. Scroll bubbling will be handled in a follow-on CL. BUG=587023 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Review URL: https://codereview.chromium.org/1752833002 Cr-Commit-Position: refs/heads/master@{#379367}
Diffstat (limited to 'content/browser/frame_host')
-rw-r--r--content/browser/frame_host/render_widget_host_view_child_frame.cc6
-rw-r--r--content/browser/frame_host/render_widget_host_view_child_frame.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index 35749e9..7c60d9c 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -426,6 +426,12 @@ void RenderWidgetHostViewChildFrame::ProcessTouchEvent(
host_->ForwardTouchEventWithLatencyInfo(event, latency);
}
+void RenderWidgetHostViewChildFrame::ProcessGestureEvent(
+ const blink::WebGestureEvent& event,
+ const ui::LatencyInfo& latency) {
+ host_->ForwardGestureEventWithLatencyInfo(event, latency);
+}
+
gfx::Point RenderWidgetHostViewChildFrame::TransformPointToRootCoordSpace(
const gfx::Point& point) {
if (!frame_connector_)
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.h b/content/browser/frame_host/render_widget_host_view_child_frame.h
index 615028f..f6cba54 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.h
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.h
@@ -141,6 +141,8 @@ class CONTENT_EXPORT RenderWidgetHostViewChildFrame
void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override;
void ProcessTouchEvent(const blink::WebTouchEvent& event,
const ui::LatencyInfo& latency) override;
+ void ProcessGestureEvent(const blink::WebGestureEvent& event,
+ const ui::LatencyInfo& latency) override;
gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override;
#if defined(OS_MACOSX)