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

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

Issue 14571003: Don't display drop down arrows in rAc dialog unless there is a suggestion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 years, 8 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_dialog_controller.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller.h b/chrome/browser/ui/autofill/autofill_dialog_controller.h
index 4a2bb1756b770203ca1937bb11804e34f9381bd6..97f6811b8a4a7e225fc51e5cd63e887e35485b27 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller.h
@@ -103,8 +103,16 @@ class AutofillDialogController {
AutofillFieldType type) = 0;
// Returns the model for suggestions for fields that fall under |section|.
+ // This may return NULL, in which case no menu should be shown for that
+ // section.
virtual ui::MenuModel* MenuModelForSection(DialogSection section) = 0;
+#if defined(OS_ANDROID)
+ // As the above, but will never return NULL. TODO(estade): android should
+ // stop relying on this and it should be removed.
+ virtual ui::MenuModel* MenuModelForSectionHack(DialogSection section) = 0;
+#endif
+
// Returns the label text used to describe the section (i.e. Billing).
virtual string16 LabelForSection(DialogSection section) const = 0;

Powered by Google App Engine
This is Rietveld 408576698