also format missing .cc files
This commit is contained in:
parent
53bdf22c85
commit
c6f4bbd143
181 changed files with 4102 additions and 4254 deletions
|
@ -7,20 +7,17 @@
|
|||
namespace atom {
|
||||
|
||||
MenuModelAdapter::MenuModelAdapter(AtomMenuModel* menu_model)
|
||||
: views::MenuModelAdapter(menu_model),
|
||||
menu_model_(menu_model) {
|
||||
}
|
||||
: views::MenuModelAdapter(menu_model), menu_model_(menu_model) {}
|
||||
|
||||
MenuModelAdapter::~MenuModelAdapter() {
|
||||
}
|
||||
MenuModelAdapter::~MenuModelAdapter() {}
|
||||
|
||||
bool MenuModelAdapter::GetAccelerator(int id,
|
||||
ui::Accelerator* accelerator) const {
|
||||
ui::MenuModel* model = menu_model_;
|
||||
int index = 0;
|
||||
if (ui::MenuModel::GetModelAndIndexForCommandId(id, &model, &index)) {
|
||||
return static_cast<AtomMenuModel*>(model)->
|
||||
GetAcceleratorAtWithParams(index, true, accelerator);
|
||||
return static_cast<AtomMenuModel*>(model)->GetAcceleratorAtWithParams(
|
||||
index, true, accelerator);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue