@@ -38,34 +38,34 @@ bool MenuDelegate::IsCommandIdChecked(int command_id) const {
3838 if (command_id < 0 )
3939 return false ;
4040
41- MenuItem* item = dispatcher_host_->GetObject <MenuItem>(command_id);
41+ MenuItem* item = dispatcher_host_->GetApiObject <MenuItem>(command_id);
4242 return item->is_checked_ ;
4343}
4444
4545bool MenuDelegate::IsCommandIdEnabled (int command_id) const {
4646 if (command_id < 0 )
4747 return false ;
4848
49- MenuItem* item = dispatcher_host_->GetObject <MenuItem>(command_id);
49+ MenuItem* item = dispatcher_host_->GetApiObject <MenuItem>(command_id);
5050 return item->is_enabled_ ;
5151}
5252
5353bool MenuDelegate::IsItemForCommandIdDynamic (int command_id) const {
5454 if (command_id < 0 )
5555 return false ;
5656
57- MenuItem* item = dispatcher_host_->GetObject <MenuItem>(command_id);
57+ MenuItem* item = dispatcher_host_->GetApiObject <MenuItem>(command_id);
5858 return item->is_modified_ ;
5959}
6060
6161string16 MenuDelegate::GetLabelForCommandId (int command_id) const {
62- MenuItem* item = dispatcher_host_->GetObject <MenuItem>(command_id);
62+ MenuItem* item = dispatcher_host_->GetApiObject <MenuItem>(command_id);
6363 return item->label_ ;
6464}
6565
6666bool MenuDelegate::GetIconForCommandId (int command_id,
6767 gfx::Image* icon) const {
68- MenuItem* item = dispatcher_host_->GetObject <MenuItem>(command_id);
68+ MenuItem* item = dispatcher_host_->GetApiObject <MenuItem>(command_id);
6969 if (item->icon_ .IsEmpty ())
7070 return false ;
7171
@@ -77,15 +77,15 @@ void MenuDelegate::ExecuteCommand(int command_id) {
7777 if (command_id < 0 )
7878 return ;
7979
80- MenuItem* item = dispatcher_host_->GetObject <MenuItem>(command_id);
80+ MenuItem* item = dispatcher_host_->GetApiObject <MenuItem>(command_id);
8181 item->OnClick ();
8282}
8383
8484bool MenuDelegate::HasIcon (int command_id) {
8585 if (command_id < 0 )
8686 return false ;
8787
88- MenuItem* item = dispatcher_host_->GetObject <MenuItem>(command_id);
88+ MenuItem* item = dispatcher_host_->GetApiObject <MenuItem>(command_id);
8989 return !item->icon_ .IsEmpty ();
9090}
9191
0 commit comments