Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1759)

Unified Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 1265013003: Adds support for hittesting points on surface quads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_base.h
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
index 75baf81a43417a9ce616a9bee71b1cdc7b39b9a8..5b3070da26997d5d972ab4b78e4fd13280015272 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.h
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
@@ -178,6 +178,14 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
// enabled.
virtual uint32_t GetSurfaceIdNamespace();
+ // When there are multiple RenderWidgetHostViews for a single page, input
+ // events need to be targeted to the correct one for handling. The following
+ // methods are invoked on the RenderWidgetHostView that should be able to
+ // properly handle the event (i.e. it has focus for keyboard events, or has
+ // been identified by hit testing mouse, touch or gesture events).
+ virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point,
+ gfx::Point* transformed_point);
+
//----------------------------------------------------------------------------
// The following static methods are implemented by each platform.

Powered by Google App Engine
This is Rietveld 408576698