| Index: ui/base/models/button_menu_item_model.cc
|
| diff --git a/ui/base/models/button_menu_item_model.cc b/ui/base/models/button_menu_item_model.cc
|
| index 83bd9737b62d52780903fb041bd10e13a2fb74bf..dd05fe2640e982c09b2022f7b1b90d05dc9e0f87 100644
|
| --- a/ui/base/models/button_menu_item_model.cc
|
| +++ b/ui/base/models/button_menu_item_model.cc
|
| @@ -88,6 +88,15 @@ bool ButtonMenuItemModel::IsItemDynamicAt(int index) const {
|
| return false;
|
| }
|
|
|
| +bool ButtonMenuItemModel::GetAcceleratorAt(int index,
|
| + ui::Accelerator* accelerator) const {
|
| + if (delegate_) {
|
| + return delegate_->GetAcceleratorForCommandId(GetCommandIdAt(index),
|
| + accelerator);
|
| + }
|
| + return false;
|
| +}
|
| +
|
| base::string16 ButtonMenuItemModel::GetLabelAt(int index) const {
|
| if (IsItemDynamicAt(index))
|
| return delegate_->GetLabelForCommandId(GetCommandIdAt(index));
|
| @@ -106,9 +115,9 @@ bool ButtonMenuItemModel::PartOfGroup(int index) const {
|
| return items_[index].part_of_group;
|
| }
|
|
|
| -void ButtonMenuItemModel::ActivatedCommand(int command_id) {
|
| +void ButtonMenuItemModel::ActivatedAt(int index) {
|
| if (delegate_)
|
| - delegate_->ExecuteCommand(command_id, 0);
|
| + delegate_->ExecuteCommand(GetCommandIdAt(index), 0);
|
| }
|
|
|
| bool ButtonMenuItemModel::IsEnabledAt(int index) const {
|
|
|