Emit 'execute' event when menu item is clicked.
This commit is contained in:
parent
1bace4abb6
commit
46c882f0ba
1 changed files with 5 additions and 0 deletions
|
@ -106,6 +106,11 @@ string16 Menu::GetSublabelForCommandId(int command_id) const {
|
|||
}
|
||||
|
||||
void Menu::ExecuteCommand(int command_id, int event_flags) {
|
||||
v8::Handle<v8::Value> args[] = {
|
||||
v8::String::New("execute"),
|
||||
v8::Integer::New(command_id)
|
||||
};
|
||||
node::MakeCallback(handle(), "emit", 2, args);
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
Loading…
Add table
Reference in a new issue