| 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 2020e5d5ddd4b507d63e716a4d210db8e1a298a8..7a599d22622cb3de7a219de53fdf1ac7d6299483 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_models.h
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_models.h
|
| @@ -25,7 +25,8 @@ class SuggestionsMenuModelDelegate {
|
| virtual ~SuggestionsMenuModelDelegate();
|
|
|
| // Called when a menu item has been activated.
|
| - virtual void SuggestionItemSelected(const SuggestionsMenuModel& model) = 0;
|
| + virtual void SuggestionItemSelected(SuggestionsMenuModel* model,
|
| + const std::string& item_key) = 0;
|
| };
|
|
|
| // A model for the dropdowns that allow the user to select from different
|
| @@ -69,6 +70,9 @@ class SuggestionsMenuModel : public ui::SimpleMenuModel,
|
| // there are no items.
|
| std::string GetItemKeyForCheckedItem() const;
|
|
|
| + // Sets which item is checked.
|
| + void SetCheckedItem(const std::string& item_key);
|
| +
|
| int checked_item() { return checked_item_; }
|
|
|
| // ui::SimpleMenuModel::Delegate implementation.
|
| @@ -87,7 +91,8 @@ class SuggestionsMenuModel : public ui::SimpleMenuModel,
|
|
|
| SuggestionsMenuModelDelegate* delegate_;
|
|
|
| - // The command id (and index) of the item which is currently checked.
|
| + // The command id (and index) of the item which is currently checked. Only one
|
| + // item is checked at a time.
|
| int checked_item_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SuggestionsMenuModel);
|
|
|