Home
last modified time | relevance | path

Searched refs:menu_model (Results 1 – 25 of 55) sorted by relevance

123

/external/chromium_org/chrome/browser/status_icons/
Dstatus_icon_menu_model_unittest.cc37 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/
Dapps_search_box_controller_unittest.mm169 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 …]
Dapps_search_results_model_bridge.mm34 ui::MenuModel* menu_model = result_->GetContextMenuModel();
35 if (!menu_model)
39 [[MenuController alloc] initWithModel:menu_model
/external/chromium_org/ui/message_center/views/
Dmessage_view_context_menu_controller.cc29 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/
Dcontext_menu_matcher.cc24 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()
Dcontext_menu_matcher.h31 ui::SimpleMenuModel* menu_model,
72 ui::SimpleMenuModel* menu_model,
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_context_menu.cc52 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/
Ddownload_shelf_context_menu_view.cc26 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/
Dmulti_user_context_menu.cc10 scoped_ptr<ui::MenuModel> menu_model; in CreateMultiUserContextMenu() local
11 return menu_model.Pass(); in CreateMultiUserContextMenu()
/external/chromium_org/chrome/browser/ui/views/
Dcontent_setting_bubble_contents.cc126 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()
Dcontent_setting_bubble_contents.h92 ui::SimpleMenuModel* menu_model);
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dreload_button.cc210 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()
Dwrench_menu.cc411 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/
Dmenu_model_adapter.cc17 MenuModelAdapter::MenuModelAdapter(ui::MenuModel* menu_model) in MenuModelAdapter() argument
18 : menu_model_(menu_model), in MenuModelAdapter()
21 DCHECK(menu_model); in MenuModelAdapter()
Dmenu_runner.cc283 MenuRunner::MenuRunner(ui::MenuModel* menu_model) in MenuRunner() argument
284 : menu_model_adapter_(new MenuModelAdapter(menu_model)), in MenuRunner()
Dmenu_runner.h96 explicit MenuRunner(ui::MenuModel* menu_model);
Dmenu_model_adapter.h25 explicit MenuModelAdapter(ui::MenuModel* menu_model);
/external/chromium_org/ui/app_list/views/
Dapp_list_menu_views.cc24 menu_delegate_.reset(new views::MenuModelAdapter(menu_model())); in AppListMenuViews()
Dsearch_result_view.cc340 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()
Dapp_list_item_view.cc363 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/
Dapp_list_menu.h30 ui::SimpleMenuModel* menu_model() { return &menu_model_; } in menu_model() function
/external/chromium_org/chrome/browser/ui/views/frame/
Dsystem_menu_model_builder.h32 ui::MenuModel* menu_model() { return menu_model_.get(); } in menu_model() function
/external/chromium_org/chrome/browser/ui/cocoa/wrench_menu/
Drecent_tabs_menu_model_delegate.mm6 #include "ui/base/models/menu_model.h"
/external/chromium_org/chrome/browser/ui/bookmarks/
Dbookmark_context_menu_controller.h62 ui::SimpleMenuModel* menu_model() { return menu_model_.get(); } in menu_model() function
/external/chromium_org/ash/
Dshell_unittest.cc367 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()

123