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

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

Issue 492043003: Fill on account select in the password manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 years, 2 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_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.h b/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
index a3fb759753b5f0d9c274f29c57fb37e4b34023e7..7a572546157c1a47aff27076b6e9fd04dd533cef 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
@@ -41,7 +41,8 @@ class AutofillPopupControllerImpl : public AutofillPopupController {
void Show(const std::vector<base::string16>& names,
const std::vector<base::string16>& subtexts,
const std::vector<base::string16>& icons,
- const std::vector<int>& identifiers);
+ const std::vector<int>& identifiers,
+ const base::string16& title);
// Updates the data list values currently shown with the popup.
void UpdateDataListValues(const std::vector<base::string16>& values,
@@ -129,7 +130,8 @@ class AutofillPopupControllerImpl : public AutofillPopupController {
void SetValues(const std::vector<base::string16>& names,
const std::vector<base::string16>& subtexts,
const std::vector<base::string16>& icons,
- const std::vector<int>& identifier);
+ const std::vector<int>& identifier,
+ const base::string16& title);
AutofillPopupView* view() { return view_; }
@@ -168,6 +170,10 @@ class AutofillPopupControllerImpl : public AutofillPopupController {
void UpdatePopupBounds();
#endif
+ // Returns the line number of the first selectable line, accounting for a
+ // title.
+ int GetFirstSelectableLine();
+
AutofillPopupView* view_; // Weak reference.
base::WeakPtr<AutofillPopupDelegate> delegate_;
@@ -192,6 +198,7 @@ class AutofillPopupControllerImpl : public AutofillPopupController {
gfx::FontList name_font_list_;
gfx::FontList subtext_font_list_;
gfx::FontList warning_font_list_;
+ gfx::FontList title_font_list_;
#endif
// The line that is currently selected by the user.

Powered by Google App Engine
This is Rietveld 408576698