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

Unified Diff: chrome/browser/ui/views/autofill/autofill_popup_view_views.h

Issue 1570783003: [Autofill] Move functions from the AutofillPopupController to AutofillPopupLayoutModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove scoped_ptr and rename mac delegate 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/views/autofill/autofill_popup_view_views.h
diff --git a/chrome/browser/ui/views/autofill/autofill_popup_view_views.h b/chrome/browser/ui/views/autofill/autofill_popup_view_views.h
index 43b00c5cd350827cd73df3b53dfc3509a5cd3c26..6d6dbc9caf4f8448a23e946a7b7b250a85c7b3d3 100644
--- a/chrome/browser/ui/views/autofill/autofill_popup_view_views.h
+++ b/chrome/browser/ui/views/autofill/autofill_popup_view_views.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "chrome/browser/ui/autofill/autofill_popup_view.h"
+#include "chrome/browser/ui/autofill/autofill_popup_view_helper.h"
#include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
class AutofillPopupController;
@@ -30,6 +31,10 @@ class AutofillPopupViewViews : public AutofillPopupBaseView,
void Hide() override;
void InvalidateRow(size_t row) override;
void UpdateBoundsAndRedrawPopup() override;
+ void UpdatePopupBounds() override;
+ int GetAvailableWidthForRow(int row, bool with_label) override;
+ int LineFromY(int y) override;
+ gfx::Rect GetPopupBounds() override;
// views::Views implementation
void OnPaint(gfx::Canvas* canvas) override;
@@ -39,6 +44,8 @@ class AutofillPopupViewViews : public AutofillPopupBaseView,
int index,
const gfx::Rect& entry_rect);
+ AutofillPopupViewHelper view_helper_;
+
AutofillPopupController* controller_; // Weak reference.
DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewViews);

Powered by Google App Engine
This is Rietveld 408576698