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

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: fixing component build Created 5 years, 5 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 21266f153ba40ebe6d53449e7581ea8fb95e3b26..42719d2f3275d048723605ac6c218fb4134f478d 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.h
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
@@ -177,6 +177,13 @@ 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);
+
//----------------------------------------------------------------------------
// The following static methods are implemented by each platform.

Powered by Google App Engine
This is Rietveld 408576698