Index: content/public/browser/render_widget_host_view.h |
diff --git a/content/public/browser/render_widget_host_view.h b/content/public/browser/render_widget_host_view.h |
index 9b48ddba29d99835e1c994a8e5c068ad2a7fc9b4..7c749a27c696c887341584ac9b1213352fb56a9e 100644 |
--- a/content/public/browser/render_widget_host_view.h |
+++ b/content/public/browser/render_widget_host_view.h |
@@ -65,6 +65,19 @@ class CONTENT_EXPORT RenderWidgetHostView { |
// Retrieves the last known scroll position. |
virtual gfx::Vector2dF GetLastScrollOffset() const = 0; |
+ // Coordinate points received from a renderer process need to be transformed |
+ // to the top-level frame's coordinate space. For coordinates received from |
+ // the top-level frame's renderer this is a no-op as they are already |
+ // properly transformed; however, coordinates received from an out-of-process |
+ // iframe renderer process require transformation. |
+ virtual gfx::Point TransformPointToRootCoordSpace( |
+ const gfx::Point& point) = 0; |
+ |
+ // A floating point variant of the above. PointF values will be snapped to |
+ // integral points before transformation. |
+ virtual gfx::PointF TransformPointToRootCoordSpaceF( |
+ const gfx::PointF& point) = 0; |
+ |
// Retrieves the native view used to contain plugins and identify the |
// renderer in IPC messages. |
virtual gfx::NativeView GetNativeView() const = 0; |