Index: content/browser/renderer_host/render_widget_host_input_event_router.h |
diff --git a/content/browser/renderer_host/render_widget_host_input_event_router.h b/content/browser/renderer_host/render_widget_host_input_event_router.h |
index 19d8fb89a73b317c93f0aeab2e2d0714f395fcc0..062558ca477639e36a523328cec937a057658fe4 100644 |
--- a/content/browser/renderer_host/render_widget_host_input_event_router.h |
+++ b/content/browser/renderer_host/render_widget_host_input_event_router.h |
@@ -38,6 +38,7 @@ class LatencyInfo; |
namespace content { |
+class RenderWidgetHostImpl; |
class RenderWidgetHostViewBase; |
// Class owned by WebContentsImpl for the purpose of directing input events |
@@ -81,6 +82,15 @@ class CONTENT_EXPORT RenderWidgetHostInputEventRouter |
void OnHittestData(const FrameHostMsg_HittestData_Params& params); |
+ // Returns the RenderWidgetHostImpl inside the |root_view| at |point| where |
+ // |point| is with respect to |root_view|'s coordinates. If a RWHI is found, |
+ // the value of |transformed_point| is the coordinate of the point with |
+ // respect to the RWHI's coordinates. |
+ RenderWidgetHostImpl* GetRenderWidgetHostAtPoint( |
+ RenderWidgetHostViewBase* root_view, |
+ const gfx::Point& point, |
+ gfx::Point* transformed_point); |
+ |
private: |
struct HittestData { |
bool ignored_for_hittest; |