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

Unified Diff: content/public/browser/render_widget_host_view.h

Issue 1526263003: Position autofill popup widgets correctly under --site-per-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed incorrect cast Created 4 years, 11 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 | « content/public/browser/render_frame_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698