mac: Pass useDefaultAccelerator to getAcceleratorForCommandId
This commit is contained in:
parent
77cdc2c4a7
commit
6381f44f26
17 changed files with 102 additions and 76 deletions
|
@ -29,6 +29,17 @@ base::string16 AtomMenuModel::GetRoleAt(int index) {
|
|||
return base::string16();
|
||||
}
|
||||
|
||||
bool AtomMenuModel::GetAcceleratorAtWithParams(
|
||||
int index,
|
||||
bool use_default_accelerator,
|
||||
ui::Accelerator* accelerator) const {
|
||||
if (delegate_) {
|
||||
return delegate_->GetAcceleratorForCommandIdWithParams(
|
||||
GetCommandIdAt(index), use_default_accelerator, accelerator);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void AtomMenuModel::MenuClosed() {
|
||||
ui::SimpleMenuModel::MenuClosed();
|
||||
FOR_EACH_OBSERVER(Observer, observers_, MenuClosed());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue