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

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

Issue 13877016: Revert 195316 "Remove "Use billing for shipping" checkbox in fav..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/ui/autofill/autofill_dialog_models.h
===================================================================
--- trunk/src/chrome/browser/ui/autofill/autofill_dialog_models.h (revision 195318)
+++ trunk/src/chrome/browser/ui/autofill/autofill_dialog_models.h (working copy)
@@ -23,8 +23,7 @@
virtual ~SuggestionsMenuModelDelegate();
// Called when a menu item has been activated.
- virtual void SuggestionItemSelected(SuggestionsMenuModel* model,
- size_t index) = 0;
+ virtual void SuggestionItemSelected(const SuggestionsMenuModel& model) = 0;
};
// A model for the dropdowns that allow the user to select from different
@@ -68,10 +67,6 @@
// there are no items.
std::string GetItemKeyForCheckedItem() const;
- // Sets which item is checked.
- void SetCheckedItem(const std::string& item_key);
- void SetCheckedIndex(size_t index);
-
int checked_item() { return checked_item_; }
// ui::SimpleMenuModel::Delegate implementation.
@@ -90,8 +85,7 @@
SuggestionsMenuModelDelegate* delegate_;
- // The command id (and index) of the item which is currently checked. Only one
- // item is checked at a time.
+ // The command id (and index) of the item which is currently checked.
int checked_item_;
DISALLOW_COPY_AND_ASSIGN(SuggestionsMenuModel);

Powered by Google App Engine
This is Rietveld 408576698