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

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

Issue 2278283002: Implement Mac Pop-up Dictionary for OOPIF. (Closed)
Patch Set: Addressing lfg@'s comment Created 4 years, 3 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_input_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_input_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698