Home
last modified time | relevance | path

Searched refs:IsCommandEnabled (Results 1 – 25 of 57) sorted by relevance

123

/external/chromium_org/chrome/browser/ui/
Dbrowser_command_controller_unittest.cc138 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_OPTIONS)); in TEST_F()
139 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_IMPORT_SETTINGS)); in TEST_F()
140 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_SHOW_SIGNIN)); in TEST_F()
148 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_OPTIONS)); in TEST_F()
149 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_IMPORT_SETTINGS)); in TEST_F()
150 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_SHOW_SIGNIN)); in TEST_F()
158 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_OPTIONS)); in TEST_F()
159 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_IMPORT_SETTINGS)); in TEST_F()
160 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_SHOW_SIGNIN)); in TEST_F()
165 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_FULLSCREEN)); in TEST_F()
[all …]
Dbrowser_command_controller_browsertest.cc19 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_FIND)); in IN_PROC_BROWSER_TEST_F()
27 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_FIND)); in IN_PROC_BROWSER_TEST_F()
31 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_FIND)); in IN_PROC_BROWSER_TEST_F()
35 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_FIND)); in IN_PROC_BROWSER_TEST_F()
40 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_FIND)); in IN_PROC_BROWSER_TEST_F()
Dbrowser_browsertest.cc1115 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1126 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1140 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1154 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1164 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1168 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1172 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1176 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1644 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_FORWARD)); in IN_PROC_BROWSER_TEST_F()
1654 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_FORWARD)); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_context_menu_unittest.cc131 ASSERT_TRUE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_REMOVE)); in TEST_F()
163 EXPECT_FALSE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL)); in TEST_F()
165 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL_NEW_WINDOW)); in TEST_F()
167 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL_INCOGNITO)); in TEST_F()
168 EXPECT_FALSE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_REMOVE)); in TEST_F()
170 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_ADD_NEW_BOOKMARK)); in TEST_F()
172 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_NEW_FOLDER)); in TEST_F()
182 EXPECT_TRUE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL)); in TEST_F()
184 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL_NEW_WINDOW)); in TEST_F()
185 EXPECT_TRUE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL_INCOGNITO)); in TEST_F()
[all …]
Dbookmark_context_menu.h63 virtual bool IsCommandEnabled(int command_id) const OVERRIDE;
Dbookmark_context_menu.cc97 bool BookmarkContextMenu::IsCommandEnabled(int command_id) const { in IsCommandEnabled() function in BookmarkContextMenu
/external/chromium_org/chrome/browser/ui/webui/print_preview/
Dprint_preview_ui_browsertest.cc57 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_PRINT)); in IN_PROC_BROWSER_TEST_F()
60 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ADVANCED_PRINT)); in IN_PROC_BROWSER_TEST_F()
66 ASSERT_FALSE(chrome::IsCommandEnabled(browser(), IDC_PRINT)); in IN_PROC_BROWSER_TEST_F()
69 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ADVANCED_PRINT)); in IN_PROC_BROWSER_TEST_F()
76 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_PRINT)); in IN_PROC_BROWSER_TEST_F()
79 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ADVANCED_PRINT)); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/ui/views/frame/
Dimmersive_mode_controller_ash_unittest.cc202 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_OPEN_CURRENT_URL)); in TEST_F()
203 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ABOUT)); in TEST_F()
204 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_FOCUS_LOCATION)); in TEST_F()
208 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_OPEN_CURRENT_URL)); in TEST_F()
209 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ABOUT)); in TEST_F()
210 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_FOCUS_LOCATION)); in TEST_F()
Dsystem_menu_model_delegate.cc40 return chrome::IsCommandEnabled(browser_, command_id); in IsCommandIdEnabled()
/external/chromium_org/chrome/browser/
Dcommand_updater_unittest.cc40 EXPECT_FALSE(command_updater.IsCommandEnabled(0)); in TEST()
48 EXPECT_TRUE(command_updater.IsCommandEnabled(1)); in TEST()
54 EXPECT_FALSE(command_updater.IsCommandEnabled(2)); in TEST()
Dcommand_updater.cc35 bool CommandUpdater::IsCommandEnabled(int id) const { in IsCommandEnabled() function in CommandUpdater
49 if (SupportsCommand(id) && IsCommandEnabled(id)) { in ExecuteCommandWithDisposition()
Dcommand_updater.h35 bool IsCommandEnabled(int id) const;
/external/chromium_org/chrome/browser/extensions/
Dchrome_ui_overrides_browsertest.cc21 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_BOOKMARK_PAGE)); in IN_PROC_BROWSER_TEST_F()
26 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_BOOKMARK_ALL_TABS)); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/background/
Dbackground_mode_manager_unittest.cc63 bool IsCommandEnabled(ui::MenuModel* model, int id) const { in IsCommandEnabled() function in BackgroundModeManagerTest
754 EXPECT_FALSE(IsCommandEnabled(context_menu, 0)); // P1 - CE in TEST_F()
755 EXPECT_TRUE(IsCommandEnabled(context_menu, 1)); // P1 - CEO in TEST_F()
756 EXPECT_TRUE(IsCommandEnabled(context_menu, 2)); // P1 - RE in TEST_F()
757 EXPECT_TRUE(IsCommandEnabled(context_menu, 3)); // P1 - REO in TEST_F()
758 EXPECT_TRUE(IsCommandEnabled(context_menu, 4)); // P1 in TEST_F()
759 EXPECT_FALSE(IsCommandEnabled(context_menu, 5)); // P2 - CE in TEST_F()
760 EXPECT_TRUE(IsCommandEnabled(context_menu, 6)); // P2 - RE in TEST_F()
761 EXPECT_TRUE(IsCommandEnabled(context_menu, 7)); // P2 - REO in TEST_F()
762 EXPECT_TRUE(IsCommandEnabled(context_menu, 8)); // P2 in TEST_F()
/external/chromium_org/chrome/browser/ui/cocoa/toolbar/
Dtoolbar_controller_unittest.mm84 EXPECT_EQ(updater->IsCommandEnabled(IDC_BACK),
86 EXPECT_EQ(updater->IsCommandEnabled(IDC_FORWARD),
88 EXPECT_EQ(updater->IsCommandEnabled(IDC_RELOAD),
90 EXPECT_EQ(updater->IsCommandEnabled(IDC_HOME),
144 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_BACK));
145 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_FORWARD));
/external/chromium_org/athena/input/
Daccelerator_manager_impl.cc203 bool IsCommandEnabled() const { in IsCommandEnabled() function in athena::AcceleratorManagerImpl::InternalData
204 return handler_->IsCommandEnabled(command_id_); in IsCommandEnabled()
304 return data.IsCommandEnabled() ? data.OnAcceleratorFired(accelerator) : false; in AcceleratorPressed()
/external/chromium_org/athena/screen/
Dscreen_accelerator_handler.h24 virtual bool IsCommandEnabled(int command_id) const OVERRIDE;
Dscreen_accelerator_handler.cc78 bool ScreenAcceleratorHandler::IsCommandEnabled(int command_id) const { in IsCommandEnabled() function in athena::ScreenAcceleratorHandler
/external/chromium_org/chrome/browser/ui/cocoa/
Dcommand_observer_bridge_unittest.mm67 EXPECT_EQ(updater_->IsCommandEnabled(1), true);
68 EXPECT_EQ(updater_->IsCommandEnabled(2), true);
/external/chromium_org/athena/input/public/
Daccelerator_manager.h56 virtual bool IsCommandEnabled(int command_id) const = 0;
/external/chromium_org/chrome/browser/ui/views/passwords/
Dmanage_passwords_view_test.cc52 EXPECT_TRUE(updater->IsCommandEnabled(IDC_MANAGE_PASSWORDS_FOR_PAGE)); in ExecuteManagePasswordsCommand()
/external/chromium_org/ui/views/controls/menu/
Dmenu_model_adapter.h73 virtual bool IsCommandEnabled(int id) const OVERRIDE;
Dmenu_delegate.cc63 bool MenuDelegate::IsCommandEnabled(int id) const { in IsCommandEnabled() function in views::MenuDelegate
/external/chromium_org/chrome/browser/ui/views/extensions/
Dbrowser_action_overflow_menu_controller.h55 virtual bool IsCommandEnabled(int id) const OVERRIDE;
/external/chromium_org/chrome/browser/ui/toolbar/
Dwrench_menu_model.cc144 bool enabled = chrome::IsCommandEnabled(browser_, command_id); in IsCommandIdEnabled()
149 enabled &= chrome::IsCommandEnabled(browser_, IDC_ENCODING_MENU); in IsCommandIdEnabled()
434 return chrome::IsCommandEnabled(browser_, command_id); in IsCommandIdEnabled()

123