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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_view.h

Issue 1570783003: [Autofill] Move functions from the AutofillPopupController to AutofillPopupLayoutModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AutofillPopupViewHelper 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: 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);

Powered by Google App Engine
This is Rietveld 408576698