bool Menu::IsCommandIdChecked(int command_id) const {
v8::HandleScope handle_scope(node_isolate);
return CallDelegate(v8::False(),
- handle(),
+ const_cast<Menu*>(this)->handle(),
"isCommandIdChecked",
command_id)->BooleanValue();
}
bool Menu::IsCommandIdEnabled(int command_id) const {
v8::HandleScope handle_scope(node_isolate);
return CallDelegate(v8::True(),
- handle(),
+ const_cast<Menu*>(this)->handle(),
"isCommandIdEnabled",
command_id)->BooleanValue();
}
bool Menu::IsCommandIdVisible(int command_id) const {
v8::HandleScope handle_scope(node_isolate);
return CallDelegate(v8::True(),
- handle(),
+ const_cast<Menu*>(this)->handle(),
"isCommandIdVisible",
command_id)->BooleanValue();
}
bool Menu::IsItemForCommandIdDynamic(int command_id) const {
v8::HandleScope handle_scope(node_isolate);
return CallDelegate(v8::False(),
- handle(),
+ const_cast<Menu*>(this)->handle(),
"isItemForCommandIdDynamic",
command_id)->BooleanValue();
}
string16 Menu::GetLabelForCommandId(int command_id) const {
v8::HandleScope handle_scope(node_isolate);
return FromV8Value(CallDelegate(v8::False(),
- handle(),
+ const_cast<Menu*>(this)->handle(),
"getLabelForCommandId",
command_id));
}
string16 Menu::GetSublabelForCommandId(int command_id) const {
v8::HandleScope handle_scope(node_isolate);
return FromV8Value(CallDelegate(v8::False(),
- handle(),
+ const_cast<Menu*>(this)->handle(),
"getSubLabelForCommandId",
command_id));
}