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

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

Issue 12755019: Add 2-lines summary to CC/Address for Wallet items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 9 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_models.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_models.h b/chrome/browser/ui/autofill/autofill_dialog_models.h
index c04c8889ccc412fcc4f6b1443364cf74fc5fa793..093f795c008e3a8543773097bc78bd2470bb1dd4 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_models.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_models.h
@@ -47,6 +47,19 @@ class SuggestionsMenuModel : public ui::SimpleMenuModel,
const string16& display_label,
const gfx::Image& icon);
+ // Adds a label with a sub-label and its identifying key to the model.
+ // Keys needn't be unique.
+ void AddKeyedItemWithSublabel(const std::string& key,
+ const string16& display_label,
+ const string16& display_sublabel);
+
+ // As above, but also accepts an image which will be displayed alongside the
+ // text.
+ void AddKeyedItemWithSublabelAndIcon(const std::string& key,
+ const string16& display_label,
+ const string16& display_sublabel,
+ const gfx::Image& icon);
+
// Resets the model to empty.
void Reset();

Powered by Google App Engine
This is Rietveld 408576698