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

Unified Diff: components/autofill/core/browser/autofill_driver.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
Index: components/autofill/core/browser/autofill_driver.h
diff --git a/components/autofill/core/browser/autofill_driver.h b/components/autofill/core/browser/autofill_driver.h
index 82e0f1244a621b6d7d72a1b94e1a1e7ae66d90f8..cbead5723776025071ac6f80d0e5065a6a897461 100644
--- a/components/autofill/core/browser/autofill_driver.h
+++ b/components/autofill/core/browser/autofill_driver.h
@@ -17,6 +17,10 @@ namespace net {
class URLRequestContextGetter;
}
+namespace gfx {
+class RectF;
+}
+
namespace autofill {
class FormStructure;
@@ -89,6 +93,12 @@ class AutofillDriver {
// Informs the renderer that the popup has been hidden.
virtual void PopupHidden() = 0;
+
+ // Transform bounding box coordinates to real viewport coordinates. In
+ // the case of a page spanning multiple renderer processes, subframe
+ // renderers cannot do this transformation themselves.
+ virtual gfx::RectF TransformBoundingBoxToViewportCoordinates(
+ const gfx::RectF& bounding_box) = 0;
};
} // namespace autofill
« no previous file with comments | « components/autofill/content/browser/content_autofill_driver.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698