Index: chrome/browser/ui/autofill/autofill_popup_view.h |
diff --git a/chrome/browser/ui/autofill/autofill_popup_view.h b/chrome/browser/ui/autofill/autofill_popup_view.h |
index 82bf79d0ccda096d31f9cc069826a8d57406028a..5f185cf4926ae26c9865a63735846b3cf46b1b7f 100644 |
--- a/chrome/browser/ui/autofill/autofill_popup_view.h |
+++ b/chrome/browser/ui/autofill/autofill_popup_view.h |
@@ -7,10 +7,15 @@ |
#include <stddef.h> |
+#include "base/strings/string16.h" |
+#include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" |
+#include "chrome/browser/ui/autofill/popup_view_utils.h" |
+#include "ui/gfx/geometry/rect.h" |
#include "ui/gfx/native_widget_types.h" |
namespace gfx { |
-class Rect; |
+class Display; |
+class Point; |
} |
namespace ui { |
@@ -53,6 +58,20 @@ class AutofillPopupView { |
// Refreshes the position of the popup. |
virtual void UpdateBoundsAndRedrawPopup() = 0; |
+#if !defined(OS_ANDROID) |
+ // Simply updates the popup bounds and doesn't redraw. |
+ virtual void UpdatePopupBounds() = 0; |
+ |
+ // Get the available space for the total text width. |with_label| indicates |
+ // whether a label is expected to be present. |
+ virtual int GetAvailableWidthForRow(int row, bool with_label) = 0; |
+#endif |
+ |
+ // Convert a y-coordinate to the closest line. |
+ virtual int LineFromY(int y) = 0; |
+ |
+ virtual gfx::Rect GetPopupBounds() = 0; |
+ |
// Factory function for creating the view. |
static AutofillPopupView* Create(AutofillPopupController* controller); |