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

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: Mo IOS fixin 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
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..3ac98a2fd41700d38a01517f06ee7739246d6af2 100644
--- a/content/public/browser/render_widget_host_view.h
+++ b/content/public/browser/render_widget_host_view.h
@@ -65,6 +65,14 @@ class CONTENT_EXPORT RenderWidgetHostView {
// Retrieves the last known scroll position.
virtual gfx::Vector2dF GetLastScrollOffset() const = 0;
+ // If a RenderWidgetHost is dealing with points that are transformed from the
+ // root frame for a page (i.e. because its content is contained within
+ // that of another RenderWidgetHost), this provides a facility to convert
Charlie Reis 2016/01/21 00:33:03 Maybe drop "that of"?
kenrb 2016/01/22 18:33:59 I ended up rewriting to make the whole thing clear
Charlie Reis 2016/01/22 23:04:54 Acknowledged.
+ // a point from its own coordinate space to that of the root frame.
Charlie Reis 2016/01/21 00:33:03 Is this a no-op if you call it on the root RWHV?
kenrb 2016/01/22 18:33:58 Done.
+ virtual void TransformPointToRootCoordSpace(
Charlie Reis 2016/01/21 00:33:03 Sanity check: I don't suppose it would be possible
kenrb 2016/01/22 18:33:59 It would be nice if there was a more generic way t
Charlie Reis 2016/01/22 23:04:54 Ok, we can go with this approach.
+ const gfx::Point& point,
+ gfx::Point* transformed_point) = 0;
Charlie Reis 2016/01/21 00:33:03 +1 to returning the result if possible, rather tha
kenrb 2016/01/22 18:33:59 Done.
+
// Retrieves the native view used to contain plugins and identify the
// renderer in IPC messages.
virtual gfx::NativeView GetNativeView() const = 0;
« content/public/browser/render_frame_host.h ('K') | « 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