Home
last modified time | relevance | path

Searched refs:IsCommandEnabled (Results 1 – 25 of 62) 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.cc1113 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1124 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1138 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1152 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1162 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1166 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1170 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1174 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1647 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_FORWARD)); in IN_PROC_BROWSER_TEST_F()
1657 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.cc130 ASSERT_TRUE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_REMOVE)); in TEST_F()
162 EXPECT_FALSE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL)); in TEST_F()
164 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL_NEW_WINDOW)); in TEST_F()
166 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL_INCOGNITO)); in TEST_F()
167 EXPECT_FALSE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_REMOVE)); in TEST_F()
169 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_ADD_NEW_BOOKMARK)); in TEST_F()
171 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_NEW_FOLDER)); in TEST_F()
181 EXPECT_TRUE(controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL)); in TEST_F()
183 controller.IsCommandEnabled(IDC_BOOKMARK_BAR_OPEN_ALL_NEW_WINDOW)); in TEST_F()
184 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.cc93 bool BookmarkContextMenu::IsCommandEnabled(int command_id) const { in IsCommandEnabled() function in BookmarkContextMenu
/external/chromium_org/chrome/browser/
Dbrowser_commands_unittest.cc248 if (chrome::IsCommandEnabled(browser(), IDC_ZOOM_PLUS)) in TEST_F()
253 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_PLUS)); in TEST_F()
254 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_NORMAL)); in TEST_F()
255 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_MINUS)); in TEST_F()
272 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_PLUS)); in TEST_F()
273 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_NORMAL)); in TEST_F()
274 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_MINUS)); in TEST_F()
289 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_PLUS)); in TEST_F()
290 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_NORMAL)); in TEST_F()
291 EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_ZOOM_MINUS)); in TEST_F()
[all …]
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/ui/webui/print_preview/
Dprint_preview_ui_browsertest.cc57 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_PRINT)); in IN_PROC_BROWSER_TEST_F()
66 chrome::IsCommandEnabled(browser(), IDC_BASIC_PRINT)); in IN_PROC_BROWSER_TEST_F()
71 ASSERT_FALSE(chrome::IsCommandEnabled(browser(), IDC_PRINT)); in IN_PROC_BROWSER_TEST_F()
74 chrome::IsCommandEnabled(browser(), IDC_BASIC_PRINT)); in IN_PROC_BROWSER_TEST_F()
81 ASSERT_TRUE(chrome::IsCommandEnabled(browser(), IDC_PRINT)); in IN_PROC_BROWSER_TEST_F()
84 chrome::IsCommandEnabled(browser(), IDC_BASIC_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 if (!chrome::IsCommandEnabled(browser_, command_id)) in IsCommandIdEnabled()
/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.cc179 bool IsCommandEnabled(ui::MenuModel* model, int id) const { in IsCommandEnabled() function in BackgroundModeManagerTest
787 EXPECT_FALSE(IsCommandEnabled(context_menu, 0)); // P1 - CE in TEST_F()
788 EXPECT_TRUE(IsCommandEnabled(context_menu, 1)); // P1 - CEO in TEST_F()
789 EXPECT_TRUE(IsCommandEnabled(context_menu, 2)); // P1 - RE in TEST_F()
790 EXPECT_TRUE(IsCommandEnabled(context_menu, 3)); // P1 - REO in TEST_F()
791 EXPECT_TRUE(IsCommandEnabled(context_menu, 4)); // P1 in TEST_F()
792 EXPECT_FALSE(IsCommandEnabled(context_menu, 5)); // P2 - CE in TEST_F()
793 EXPECT_TRUE(IsCommandEnabled(context_menu, 6)); // P2 - RE in TEST_F()
794 EXPECT_TRUE(IsCommandEnabled(context_menu, 7)); // P2 - REO in TEST_F()
795 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/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/screen/
Dscreen_accelerator_handler.h24 virtual bool IsCommandEnabled(int command_id) const OVERRIDE;
/external/chromium_org/athena/input/public/
Daccelerator_manager.h56 virtual bool IsCommandEnabled(int command_id) const = 0;
/external/chromium_org/chrome/browser/ui/passwords/
Dmanage_passwords_test.cc43 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;
/external/chromium_org/athena/wm/
Dwindow_manager_impl.h78 virtual bool IsCommandEnabled(int command_id) const OVERRIDE;
/external/chromium_org/athena/home/
Dhome_card_impl.h74 virtual bool IsCommandEnabled(int command_id) const OVERRIDE;
/external/chromium_org/chrome/browser/ui/views/extensions/
Dbrowser_action_overflow_menu_controller.h58 virtual bool IsCommandEnabled(int id) const OVERRIDE;

123