/external/chromium_org/chrome/browser/status_icons/ |
D | status_icon_menu_model_unittest.cc | 37 StatusIconMenuModel* menu_model() { in menu_model() function in StatusIconMenuModelTest 51 menu_model()->AddItem(0, ASCIIToUTF16("foo")); in TEST_F() 53 menu_model()->SetCommandIdChecked(0, true); in TEST_F() 54 EXPECT_TRUE(menu_model()->IsCommandIdChecked(0)); in TEST_F() 55 menu_model()->SetCommandIdChecked(0, false); in TEST_F() 56 EXPECT_FALSE(menu_model()->IsCommandIdChecked(0)); in TEST_F() 58 menu_model()->SetCommandIdEnabled(0, true); in TEST_F() 59 EXPECT_TRUE(menu_model()->IsCommandIdEnabled(0)); in TEST_F() 60 menu_model()->SetCommandIdEnabled(0, false); in TEST_F() 61 EXPECT_FALSE(menu_model()->IsCommandIdEnabled(0)); in TEST_F() [all …]
|
/external/chromium_org/ui/app_list/cocoa/ |
D | apps_search_box_controller_unittest.mm | 169 ui::MenuModel* menu_model 170 = [apps_search_box_controller_ appListMenu]->menu_model(); 173 EXPECT_EQ(menu_model->GetItemCount() + 1, 178 for (int i = 0; i < menu_model->GetItemCount(); ++i) 179 EXPECT_LT(menu_model->GetCommandIdAt(i), AppListMenu::SELECT_PROFILE); 182 EXPECT_EQ(AppListMenu::SELECT_PROFILE, menu_model->GetItemCount()); 191 ui::MenuModel* menu_model 192 = [apps_search_box_controller_ appListMenu]->menu_model(); 195 EXPECT_EQ(menu_model->GetItemCount() + 1, 198 ui::MenuModel* found_menu_model = menu_model; [all …]
|
D | apps_search_results_model_bridge.mm | 34 ui::MenuModel* menu_model = result_->GetContextMenuModel(); 35 if (!menu_model) 39 [[MenuController alloc] initWithModel:menu_model
|
/external/chromium_org/ui/message_center/views/ |
D | message_view_context_menu_controller.cc | 29 scoped_ptr<ui::MenuModel> menu_model(controller_->CreateMenuModel( in ShowContextMenuForView() local 32 if (!menu_model || menu_model->GetItemCount() == 0) in ShowContextMenuForView() 35 views::MenuRunner menu_runner(menu_model.get()); in ShowContextMenuForView()
|
/external/chromium_org/chrome/browser/extensions/ |
D | context_menu_matcher.cc | 24 ui::SimpleMenuModel* menu_model, in ContextMenuMatcher() argument 26 : profile_(profile), menu_model_(menu_model), delegate_(delegate), in ContextMenuMatcher() 193 ui::SimpleMenuModel* menu_model, in RecursivelyAppendExtensionItems() argument 207 menu_model->AddSeparator(ui::NORMAL_SEPARATOR); in RecursivelyAppendExtensionItems() 221 menu_model->AddItem(menu_id, title); in RecursivelyAppendExtensionItems() 225 menu_model->AddSubMenu(menu_id, title, submenu); in RecursivelyAppendExtensionItems() 230 menu_model->AddCheckItem(menu_id, title); in RecursivelyAppendExtensionItems() 237 menu_model->AddSeparator(ui::NORMAL_SEPARATOR); in RecursivelyAppendExtensionItems() 240 menu_model->AddRadioItem(menu_id, title, radio_group_id); in RecursivelyAppendExtensionItems() 242 menu_model->AddSeparator(ui::NORMAL_SEPARATOR); in RecursivelyAppendExtensionItems()
|
D | context_menu_matcher.h | 31 ui::SimpleMenuModel* menu_model, 72 ui::SimpleMenuModel* menu_model,
|
/external/chromium_org/chrome/browser/ui/views/bookmarks/ |
D | bookmark_context_menu.cc | 52 ui::SimpleMenuModel* menu_model = controller_->menu_model(); in BookmarkContextMenu() local 53 for (int i = 0; i < menu_model->GetItemCount(); ++i) { in BookmarkContextMenu() 55 menu_model, i, menu_, menu_model->GetCommandIdAt(i)); in BookmarkContextMenu()
|
/external/chromium_org/chrome/browser/ui/views/download/ |
D | download_shelf_context_menu_view.cc | 26 ui::MenuModel* menu_model = GetMenuModel(); in Run() local 28 DCHECK(menu_model); in Run() 30 menu_runner_.reset(new views::MenuRunner(menu_model)); in Run()
|
/external/chromium_org/chrome/browser/ui/ash/multi_user/ |
D | multi_user_context_menu.cc | 10 scoped_ptr<ui::MenuModel> menu_model; in CreateMultiUserContextMenu() local 11 return menu_model.Pass(); in CreateMultiUserContextMenu()
|
/external/chromium_org/chrome/browser/ui/views/ |
D | content_setting_bubble_contents.cc | 126 scoped_ptr<ui::SimpleMenuModel> menu_model; member 314 menu_view->menu_model.reset(new ContentSettingMediaMenuModel( in Init() 321 if (!menu_view->menu_model->GetItemCount()) { in Init() 337 menu_button, menu_view->menu_model.get())); in Init() 471 menu_runner_.reset(new views::MenuRunner(j->second->menu_model.get())); in OnMenuButtonClicked() 486 ui::SimpleMenuModel* menu_model) { in GetPreferredMediaMenuWidth() argument 490 for (int i = 0; i < menu_model->GetItemCount(); ++i) { in GetPreferredMediaMenuWidth() 491 button->SetText(menu_model->GetLabelAt(i)); in GetPreferredMediaMenuWidth()
|
D | content_setting_bubble_contents.h | 92 ui::SimpleMenuModel* menu_model);
|
/external/chromium_org/chrome/browser/ui/views/toolbar/ |
D | reload_button.cc | 210 ui::SimpleMenuModel* menu_model = new ui::SimpleMenuModel(this); in CreateMenuModel() local 212 menu_model->AddItemWithStringId(kReloadMenuItems[i], kReloadMenuItems[i]); in CreateMenuModel() 214 return menu_model; in CreateMenuModel()
|
D | wrench_menu.cc | 411 WrenchMenuView(WrenchMenu* menu, MenuModel* menu_model) in WrenchMenuView() argument 413 menu_model_(menu_model) { in WrenchMenuView() 473 MenuModel* menu_model() { return menu_model_; } in menu_model() function in __anon8a55d7ea0111::WrenchMenuView 560 MenuModel* menu_model, in CutCopyPasteView() argument 564 : WrenchMenuView(menu, menu_model) { in CutCopyPasteView() 597 menu()->CancelAndEvaluate(menu_model(), sender->tag()); in ButtonPressed() 624 MenuModel* menu_model, in ZoomView() argument 628 : WrenchMenuView(menu, menu_model), in ZoomView() 688 menu_model, fullscreen_index, IDS_ACCNAME_FULLSCREEN)); in ZoomView() 770 menu()->CancelAndEvaluate(menu_model(), sender->tag()); in ButtonPressed() [all …]
|
/external/chromium_org/ui/views/controls/menu/ |
D | menu_model_adapter.cc | 17 MenuModelAdapter::MenuModelAdapter(ui::MenuModel* menu_model) in MenuModelAdapter() argument 18 : menu_model_(menu_model), in MenuModelAdapter() 21 DCHECK(menu_model); in MenuModelAdapter()
|
D | menu_runner.cc | 283 MenuRunner::MenuRunner(ui::MenuModel* menu_model) in MenuRunner() argument 284 : menu_model_adapter_(new MenuModelAdapter(menu_model)), in MenuRunner()
|
D | menu_runner.h | 96 explicit MenuRunner(ui::MenuModel* menu_model);
|
D | menu_model_adapter.h | 25 explicit MenuModelAdapter(ui::MenuModel* menu_model);
|
/external/chromium_org/ui/app_list/views/ |
D | app_list_menu_views.cc | 24 menu_delegate_.reset(new views::MenuModelAdapter(menu_model())); in AppListMenuViews()
|
D | search_result_view.cc | 340 ui::MenuModel* menu_model = result_->GetContextMenuModel(); in ShowContextMenuForView() local 341 if (!menu_model) in ShowContextMenuForView() 344 context_menu_runner_.reset(new views::MenuRunner(menu_model)); in ShowContextMenuForView()
|
D | app_list_item_view.cc | 363 ui::MenuModel* menu_model = item_->GetContextMenuModel(); in ShowContextMenuForView() local 364 if (!menu_model) in ShowContextMenuForView() 367 context_menu_runner_.reset(new views::MenuRunner(menu_model)); in ShowContextMenuForView()
|
/external/chromium_org/ui/app_list/ |
D | app_list_menu.h | 30 ui::SimpleMenuModel* menu_model() { return &menu_model_; } in menu_model() function
|
/external/chromium_org/chrome/browser/ui/views/frame/ |
D | system_menu_model_builder.h | 32 ui::MenuModel* menu_model() { return menu_model_.get(); } in menu_model() function
|
/external/chromium_org/chrome/browser/ui/cocoa/wrench_menu/ |
D | recent_tabs_menu_model_delegate.mm | 6 #include "ui/base/models/menu_model.h"
|
/external/chromium_org/chrome/browser/ui/bookmarks/ |
D | bookmark_context_menu_controller.h | 62 ui::SimpleMenuModel* menu_model() { return menu_model_.get(); } in menu_model() function
|
/external/chromium_org/ash/ |
D | shell_unittest.cc | 367 scoped_ptr<ui::SimpleMenuModel> menu_model( in TEST_F() local 369 menu_model->AddItem(0, base::ASCIIToUTF16("Menu item")); in TEST_F() 373 new views::MenuRunner(menu_model.get())); in TEST_F()
|