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 705a0d30f750a90eb61c0e2b20349ce89faf8de9..cecf60068d535ec2cd936ff794eb77a780f79312 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_models.h |
+++ b/chrome/browser/ui/autofill/autofill_dialog_models.h |
@@ -72,7 +72,13 @@ class SuggestionsMenuModel : public ui::SimpleMenuModel, |
void SetCheckedItem(const std::string& item_key); |
void SetCheckedIndex(size_t index); |
- int checked_item() { return checked_item_; } |
+ // Sets the item to be checked to the |n|th item that has key |item_key|. |
+ // If there are fewer than |n| items that share |item_key|, the last one |
+ // becomes checked. If there is no item with the key one, nothing happens. |
Ilya Sherman
2013/05/21 23:20:43
nit: "with the key one" -> "with the key |item_key
Evan Stade
2013/05/22 22:24:02
Done.
|
+ // |n| is 1-indexed. |
+ void SetCheckedItemNthWithKey(const std::string& item_key, size_t n); |
+ |
+ int checked_item() const { return checked_item_; } |
// ui::SimpleMenuModel::Delegate implementation. |
virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |