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 |