menu_model 539 ash/root_window_controller.cc scoped_ptr<ui::MenuModel> menu_model( menu_model 543 ash/root_window_controller.cc if (!menu_model) menu_model 551 ash/root_window_controller.cc views::MenuRunner menu_runner(menu_model.get()); menu_model 149 ash/shelf/shelf_view.cc explicit ShelfMenuModelAdapter(ShelfMenuModel* menu_model); menu_model 173 ash/shelf/shelf_view.cc ShelfMenuModelAdapter::ShelfMenuModelAdapter(ShelfMenuModel* menu_model) menu_model 174 ash/shelf/shelf_view.cc : MenuModelAdapter(menu_model), menu_model 175 ash/shelf/shelf_view.cc menu_model_(menu_model) { menu_model 1842 ash/shelf/shelf_view.cc scoped_ptr<ShelfMenuModel> menu_model; menu_model 1845 ash/shelf/shelf_view.cc menu_model.reset(item_delegate->CreateApplicationMenu(event.flags())); menu_model 1849 ash/shelf/shelf_view.cc if (!menu_model.get() || menu_model->GetItemCount() <= 5) menu_model 1853 ash/shelf/shelf_view.cc new ShelfMenuModelAdapter(menu_model.get())), menu_model 1870 ash/shelf/shelf_view.cc scoped_ptr<ui::MenuModel> menu_model; menu_model 1873 ash/shelf/shelf_view.cc menu_model.reset(item_delegate->CreateContextMenu( menu_model 1875 ash/shelf/shelf_view.cc if (!menu_model) menu_model 1883 ash/shelf/shelf_view.cc new views::MenuModelAdapter(menu_model.get())), menu_model 367 ash/shell_unittest.cc scoped_ptr<ui::SimpleMenuModel> menu_model( menu_model 369 ash/shell_unittest.cc menu_model->AddItem(0, base::ASCIIToUTF16("Menu item")); menu_model 373 ash/shell_unittest.cc new views::MenuRunner(menu_model.get())); menu_model 24 chrome/browser/extensions/context_menu_matcher.cc ui::SimpleMenuModel* menu_model, menu_model 26 chrome/browser/extensions/context_menu_matcher.cc : profile_(profile), menu_model_(menu_model), delegate_(delegate), menu_model 193 chrome/browser/extensions/context_menu_matcher.cc ui::SimpleMenuModel* menu_model, menu_model 207 chrome/browser/extensions/context_menu_matcher.cc menu_model->AddSeparator(ui::NORMAL_SEPARATOR); menu_model 221 chrome/browser/extensions/context_menu_matcher.cc menu_model->AddItem(menu_id, title); menu_model 225 chrome/browser/extensions/context_menu_matcher.cc menu_model->AddSubMenu(menu_id, title, submenu); menu_model 230 chrome/browser/extensions/context_menu_matcher.cc menu_model->AddCheckItem(menu_id, title); menu_model 237 chrome/browser/extensions/context_menu_matcher.cc menu_model->AddSeparator(ui::NORMAL_SEPARATOR); menu_model 240 chrome/browser/extensions/context_menu_matcher.cc menu_model->AddRadioItem(menu_id, title, radio_group_id); menu_model 242 chrome/browser/extensions/context_menu_matcher.cc menu_model->AddSeparator(ui::NORMAL_SEPARATOR); menu_model 31 chrome/browser/extensions/context_menu_matcher.h ui::SimpleMenuModel* menu_model, menu_model 72 chrome/browser/extensions/context_menu_matcher.h ui::SimpleMenuModel* menu_model, menu_model 324 chrome/browser/renderer_context_menu/render_view_context_menu.cc ui::SimpleMenuModel* menu_model) { menu_model 342 chrome/browser/renderer_context_menu/render_view_context_menu.cc menu_model->AddItem( menu_model 347 chrome/browser/renderer_context_menu/render_view_context_menu.cc menu_model->AddCheckItem( menu_model 356 chrome/browser/renderer_context_menu/render_view_context_menu.cc menu_model->AddSeparator(ui::NORMAL_SEPARATOR); menu_model 362 chrome/browser/renderer_context_menu/render_view_context_menu.cc menu_model->AddSubMenu( menu_model 144 chrome/browser/renderer_context_menu/render_view_context_menu.h const ui::MenuModel& menu_model() const { return menu_model_; } menu_model 51 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->AddItem(0, ASCIIToUTF16("foo")); menu_model 53 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->SetCommandIdChecked(0, true); menu_model 54 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_TRUE(menu_model()->IsCommandIdChecked(0)); menu_model 55 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->SetCommandIdChecked(0, false); menu_model 56 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_FALSE(menu_model()->IsCommandIdChecked(0)); menu_model 58 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->SetCommandIdEnabled(0, true); menu_model 59 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_TRUE(menu_model()->IsCommandIdEnabled(0)); menu_model 60 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->SetCommandIdEnabled(0, false); menu_model 61 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_FALSE(menu_model()->IsCommandIdEnabled(0)); menu_model 63 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->SetCommandIdVisible(0, true); menu_model 64 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_TRUE(menu_model()->IsCommandIdVisible(0)); menu_model 65 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->SetCommandIdVisible(0, false); menu_model 66 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_FALSE(menu_model()->IsCommandIdVisible(0)); menu_model 73 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->AddItem(0, ASCIIToUTF16("foo1")); menu_model 74 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->AddItem(1, ASCIIToUTF16("foo2")); menu_model 83 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_FALSE(menu_model()->GetAcceleratorForCommandId(0, &accel_arg)); menu_model 84 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_FALSE(menu_model()->GetIconForCommandId(0, &image_arg)); menu_model 85 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_FALSE(menu_model()->IsItemForCommandIdDynamic(0)); menu_model 88 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->SetAcceleratorForCommandId(0, &test_accel); menu_model 89 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_TRUE(menu_model()->GetAcceleratorForCommandId(0, &accel_arg)); menu_model 94 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->ChangeLabelForCommandId(0, ASCIIToUTF16("label1")); menu_model 95 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_TRUE(menu_model()->IsItemForCommandIdDynamic(0)); menu_model 96 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_EQ(ASCIIToUTF16("label1"), menu_model()->GetLabelForCommandId(0)); menu_model 97 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->ChangeLabelForCommandId(0, ASCIIToUTF16("label2")); menu_model 98 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_EQ(ASCIIToUTF16("label2"), menu_model()->GetLabelForCommandId(0)); menu_model 101 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->ChangeSublabelForCommandId(1, ASCIIToUTF16("sublabel")); menu_model 102 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_EQ(ASCIIToUTF16("sublabel"), menu_model()->GetSublabelForCommandId(1)); menu_model 105 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->ChangeIconForCommandId(1, test_image1); menu_model 106 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_TRUE(menu_model()->GetIconForCommandId(1, &image_arg)); menu_model 108 chrome/browser/status_icons/status_icon_menu_model_unittest.cc menu_model()->ChangeIconForCommandId(1, test_image2); menu_model 109 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_TRUE(menu_model()->GetIconForCommandId(1, &image_arg)); menu_model 113 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_FALSE(menu_model()->GetAcceleratorForCommandId(1, &accel_arg)); menu_model 114 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_EQ(base::string16(), menu_model()->GetLabelForCommandId(1)); menu_model 115 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_EQ(base::string16(), menu_model()->GetSublabelForCommandId(0)); menu_model 116 chrome/browser/status_icons/status_icon_menu_model_unittest.cc EXPECT_FALSE(menu_model()->GetIconForCommandId(0, &image_arg)); menu_model 10 chrome/browser/ui/ash/multi_user/multi_user_context_menu.cc scoped_ptr<ui::MenuModel> menu_model; menu_model 11 chrome/browser/ui/ash/multi_user/multi_user_context_menu.cc return menu_model.Pass(); menu_model 62 chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h ui::SimpleMenuModel* menu_model() { return menu_model_.get(); } menu_model 1157 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc new MenuGtk(NULL, current_context_menu_controller_->menu_model())); menu_model 269 chrome/browser/ui/gtk/bookmarks/bookmark_menu_controller_gtk.cc new MenuGtk(NULL, context_menu_controller_->menu_model())); menu_model 215 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_menu->menu_model.reset(new ContentSettingMediaMenuModel( menu_model 220 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_menu->menu.reset(new MenuGtk(NULL, gtk_menu->menu_model.get())); menu_model 223 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc if (!gtk_menu->menu_model->GetItemCount()) { menu_model 55 chrome/browser/ui/gtk/content_setting_bubble_gtk.h scoped_ptr<ui::SimpleMenuModel> menu_model; menu_model 24 chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc ui::SimpleMenuModel* menu_model = GetMenuModel(); menu_model 26 chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc DCHECK(menu_model); menu_model 28 chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc menu_.reset(new MenuGtk(this, menu_model)); menu_model 157 chrome/browser/ui/gtk/tab_contents/chrome_web_contents_view_delegate_gtk.cc if (context_menu_->menu_model().GetItemCount() == 0) menu_model 53 chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc ui::SimpleMenuModel* menu_model = controller_->menu_model(); menu_model 54 chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc for (int i = 0; i < menu_model->GetItemCount(); ++i) { menu_model 56 chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc menu_model, i, menu_, menu_model->GetCommandIdAt(i)); menu_model 126 chrome/browser/ui/views/content_setting_bubble_contents.cc scoped_ptr<ui::SimpleMenuModel> menu_model; menu_model 300 chrome/browser/ui/views/content_setting_bubble_contents.cc menu_view->menu_model.reset(new ContentSettingMediaMenuModel( menu_model 307 chrome/browser/ui/views/content_setting_bubble_contents.cc if (!menu_view->menu_model->GetItemCount()) { menu_model 323 chrome/browser/ui/views/content_setting_bubble_contents.cc menu_button, menu_view->menu_model.get())); menu_model 443 chrome/browser/ui/views/content_setting_bubble_contents.cc menu_runner_.reset(new views::MenuRunner(j->second->menu_model.get())); menu_model 458 chrome/browser/ui/views/content_setting_bubble_contents.cc ui::SimpleMenuModel* menu_model) { menu_model 462 chrome/browser/ui/views/content_setting_bubble_contents.cc for (int i = 0; i < menu_model->GetItemCount(); ++i) { menu_model 463 chrome/browser/ui/views/content_setting_bubble_contents.cc button->SetText(menu_model->GetLabelAt(i)); menu_model 84 chrome/browser/ui/views/content_setting_bubble_contents.h ui::SimpleMenuModel* menu_model); menu_model 27 chrome/browser/ui/views/download/download_shelf_context_menu_view.cc ui::MenuModel* menu_model = GetMenuModel(); menu_model 29 chrome/browser/ui/views/download/download_shelf_context_menu_view.cc DCHECK(menu_model); menu_model 31 chrome/browser/ui/views/download/download_shelf_context_menu_view.cc menu_runner_.reset(new views::MenuRunner(menu_model)); menu_model 283 chrome/browser/ui/views/frame/browser_frame.cc return menu_model_builder_->menu_model(); menu_model 32 chrome/browser/ui/views/frame/system_menu_model_builder.h ui::MenuModel* menu_model() { return menu_model_.get(); } menu_model 365 chrome/browser/ui/views/infobars/infobar_view.cc void InfoBarView::RunMenuAt(ui::MenuModel* menu_model, menu_model 371 chrome/browser/ui/views/infobars/infobar_view.cc menu_runner_.reset(new views::MenuRunner(menu_model)); menu_model 109 chrome/browser/ui/views/infobars/infobar_view.h void RunMenuAt(ui::MenuModel* menu_model, menu_model 135 chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc if (context_menu_->menu_model().GetItemCount() == 0) menu_model 596 chrome/browser/ui/views/task_manager_view.cc ui::SimpleMenuModel menu_model(this); menu_model 599 chrome/browser/ui/views/task_manager_view.cc menu_model.AddCheckItem(i->id, l10n_util::GetStringUTF16(i->id)); menu_model 601 chrome/browser/ui/views/task_manager_view.cc menu_runner_.reset(new views::MenuRunner(&menu_model)); menu_model 213 chrome/browser/ui/views/toolbar/reload_button.cc ui::SimpleMenuModel* menu_model = new ui::SimpleMenuModel(this); menu_model 215 chrome/browser/ui/views/toolbar/reload_button.cc menu_model->AddItemWithStringId(kReloadMenuItems[i], kReloadMenuItems[i]); menu_model 217 chrome/browser/ui/views/toolbar/reload_button.cc return menu_model; menu_model 349 chrome/browser/ui/views/toolbar/wrench_menu.cc WrenchMenuView(WrenchMenu* menu, MenuModel* menu_model) menu_model 351 chrome/browser/ui/views/toolbar/wrench_menu.cc menu_model_(menu_model) { menu_model 522 chrome/browser/ui/views/toolbar/wrench_menu.cc MenuModel* menu_model, menu_model 527 chrome/browser/ui/views/toolbar/wrench_menu.cc : WrenchMenuView(menu, menu_model) { menu_model 563 chrome/browser/ui/views/toolbar/wrench_menu.cc menu()->CancelAndEvaluate(menu_model(), sender->tag()); menu_model 590 chrome/browser/ui/views/toolbar/wrench_menu.cc MenuModel* menu_model, menu_model 595 chrome/browser/ui/views/toolbar/wrench_menu.cc : WrenchMenuView(menu, menu_model), menu_model 681 chrome/browser/ui/views/toolbar/wrench_menu.cc menu_model, fullscreen_index, IDS_ACCNAME_FULLSCREEN)); menu_model 734 chrome/browser/ui/views/toolbar/wrench_menu.cc menu()->CancelAndEvaluate(menu_model(), sender->tag()); menu_model 737 chrome/browser/ui/views/toolbar/wrench_menu.cc menu_model()->ActivatedAt(sender->tag()); menu_model 30 ui/app_list/app_list_menu.h ui::SimpleMenuModel* menu_model() { return &menu_model_; } menu_model 321 ui/app_list/views/app_list_item_view.cc ui::MenuModel* menu_model = item_->GetContextMenuModel(); menu_model 322 ui/app_list/views/app_list_item_view.cc if (!menu_model) menu_model 325 ui/app_list/views/app_list_item_view.cc context_menu_runner_.reset(new views::MenuRunner(menu_model)); menu_model 24 ui/app_list/views/app_list_menu_views.cc menu_delegate_.reset(new views::MenuModelAdapter(menu_model())); menu_model 341 ui/app_list/views/search_result_view.cc ui::MenuModel* menu_model = result_->GetContextMenuModel(); menu_model 342 ui/app_list/views/search_result_view.cc if (!menu_model) menu_model 345 ui/app_list/views/search_result_view.cc context_menu_runner_.reset(new views::MenuRunner(menu_model)); menu_model 29 ui/message_center/views/message_view_context_menu_controller.cc scoped_ptr<ui::MenuModel> menu_model(controller_->CreateMenuModel( menu_model 32 ui/message_center/views/message_view_context_menu_controller.cc if (!menu_model || menu_model->GetItemCount() == 0) menu_model 35 ui/message_center/views/message_view_context_menu_controller.cc views::MenuRunner menu_runner(menu_model.get()); menu_model 16 ui/views/controls/menu/menu_model_adapter.cc MenuModelAdapter::MenuModelAdapter(ui::MenuModel* menu_model) menu_model 17 ui/views/controls/menu/menu_model_adapter.cc : menu_model_(menu_model), menu_model 20 ui/views/controls/menu/menu_model_adapter.cc DCHECK(menu_model); menu_model 25 ui/views/controls/menu/menu_model_adapter.h explicit MenuModelAdapter(ui::MenuModel* menu_model); menu_model 283 ui/views/controls/menu/menu_runner.cc MenuRunner::MenuRunner(ui::MenuModel* menu_model) menu_model 284 ui/views/controls/menu/menu_runner.cc : menu_model_adapter_(new MenuModelAdapter(menu_model)), menu_model 85 ui/views/controls/menu/menu_runner.h explicit MenuRunner(ui::MenuModel* menu_model);