Home
last modified time | relevance | path

Searched refs:command_updater (Results 1 – 25 of 83) sorted by relevance

1234

/external/chromium/chrome/browser/
Dcommand_updater_unittest.cc35 CommandUpdater command_updater(&handler); in TEST_F() local
38 EXPECT_FALSE(command_updater.SupportsCommand(0)); in TEST_F()
39 EXPECT_FALSE(command_updater.IsCommandEnabled(0)); in TEST_F()
42 command_updater.ExecuteCommand(0); in TEST_F()
45 command_updater.UpdateCommandEnabled(1, true); in TEST_F()
46 EXPECT_TRUE(command_updater.SupportsCommand(1)); in TEST_F()
47 EXPECT_TRUE(command_updater.IsCommandEnabled(1)); in TEST_F()
48 command_updater.ExecuteCommand(1); in TEST_F()
51 command_updater.UpdateCommandEnabled(2, false); in TEST_F()
52 EXPECT_TRUE(command_updater.SupportsCommand(2)); in TEST_F()
[all …]
Dbrowser_browsertest.cc331 CommandUpdater* command_updater = browser()->command_updater(); in IN_PROC_BROWSER_TEST_F() local
338 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
342 CommandUpdater* command_updater = browser()->command_updater(); in IN_PROC_BROWSER_TEST_F() local
348 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
352 CommandUpdater* command_updater = browser()->command_updater(); in IN_PROC_BROWSER_TEST_F() local
359 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
363 CommandUpdater* command_updater = browser()->command_updater(); in IN_PROC_BROWSER_TEST_F() local
370 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
374 CommandUpdater* command_updater = browser()->command_updater(); in IN_PROC_BROWSER_TEST_F() local
379 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium_org/chrome/browser/
Dcommand_updater_unittest.cc36 CommandUpdater command_updater(&delegate); in TEST() local
39 EXPECT_FALSE(command_updater.SupportsCommand(0)); in TEST()
40 EXPECT_FALSE(command_updater.IsCommandEnabled(0)); in TEST()
43 command_updater.ExecuteCommand(0); in TEST()
46 command_updater.UpdateCommandEnabled(1, true); in TEST()
47 EXPECT_TRUE(command_updater.SupportsCommand(1)); in TEST()
48 EXPECT_TRUE(command_updater.IsCommandEnabled(1)); in TEST()
49 command_updater.ExecuteCommand(1); in TEST()
52 command_updater.UpdateCommandEnabled(2, false); in TEST()
53 EXPECT_TRUE(command_updater.SupportsCommand(2)); in TEST()
[all …]
/external/chromium_org/chrome/browser/ui/
Dbrowser_command_controller_unittest.cc158 const CommandUpdater* command_updater = command_controller.command_updater(); in TEST_F() local
162 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); in TEST_F()
166 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); in TEST_F()
170 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); in TEST_F()
191 const CommandUpdater* command_updater = command_controller.command_updater(); in TEST_F() local
195 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); in TEST_F()
229 const CommandUpdater* command_updater = command_controller.command_updater(); in TEST_F() local
230 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); in TEST_F()
262 const CommandUpdater* command_updater = command_controller.command_updater(); in TEST_F() local
266 EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); in TEST_F()
[all …]
Dbrowser_browsertest.cc1038 CommandUpdater* command_updater = in IN_PROC_BROWSER_TEST_F() local
1039 browser()->command_controller()->command_updater(); in IN_PROC_BROWSER_TEST_F()
1047 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1051 CommandUpdater* command_updater = in IN_PROC_BROWSER_TEST_F() local
1052 browser()->command_controller()->command_updater(); in IN_PROC_BROWSER_TEST_F()
1058 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1062 CommandUpdater* command_updater = in IN_PROC_BROWSER_TEST_F() local
1063 browser()->command_controller()->command_updater(); in IN_PROC_BROWSER_TEST_F()
1072 EXPECT_TRUE(command_updater->IsCommandEnabled(IDC_CREATE_SHORTCUTS)); in IN_PROC_BROWSER_TEST_F()
1076 CommandUpdater* command_updater = in IN_PROC_BROWSER_TEST_F() local
[all …]
Dbrowser_command_controller.h38 CommandUpdater* command_updater() { return &command_updater_; } in command_updater() function
71 static void UpdateOpenFileState(CommandUpdater* command_updater);
76 CommandUpdater* command_updater,
Dbrowser_command_controller.cc1028 CommandUpdater* command_updater, in UpdateSharedCommandsForIncognitoAvailability() argument
1032 command_updater->UpdateCommandEnabled( in UpdateSharedCommandsForIncognitoAvailability()
1035 command_updater->UpdateCommandEnabled( in UpdateSharedCommandsForIncognitoAvailability()
1043 command_updater->UpdateCommandEnabled( in UpdateSharedCommandsForIncognitoAvailability()
1049 command_updater->UpdateCommandEnabled(IDC_MANAGE_EXTENSIONS, in UpdateSharedCommandsForIncognitoAvailability()
1052 command_updater->UpdateCommandEnabled(IDC_IMPORT_SETTINGS, command_enabled); in UpdateSharedCommandsForIncognitoAvailability()
1053 command_updater->UpdateCommandEnabled(IDC_OPTIONS, command_enabled); in UpdateSharedCommandsForIncognitoAvailability()
1054 command_updater->UpdateCommandEnabled(IDC_SHOW_SIGNIN, command_enabled); in UpdateSharedCommandsForIncognitoAvailability()
1299 CommandUpdater* command_updater) { in UpdateOpenFileState() argument
1305 command_updater->UpdateCommandEnabled(IDC_OPEN_FILE, enabled); in UpdateOpenFileState()
/external/chromium_org/chrome/browser/ui/cocoa/location_bar/
Dmic_search_decoration.mm8 #include "chrome/browser/command_updater.h"
14 MicSearchDecoration::MicSearchDecoration(CommandUpdater* command_updater)
15 : command_updater_(command_updater) {
Dstar_decoration.mm8 #include "chrome/browser/command_updater.h"
24 StarDecoration::StarDecoration(CommandUpdater* command_updater)
25 : command_updater_(command_updater) {
Dmic_search_decoration.h18 explicit MicSearchDecoration(CommandUpdater* command_updater);
/external/chromium_org/chrome/browser/ui/omnibox/
Domnibox_edit_controller.cc21 OmniboxEditController::OmniboxEditController(CommandUpdater* command_updater) in OmniboxEditController() argument
22 : command_updater_(command_updater), in OmniboxEditController()
Domnibox_view.h59 CommandUpdater* command_updater() { return command_updater_; } in command_updater() function
60 const CommandUpdater* command_updater() const { return command_updater_; } in command_updater() function
259 CommandUpdater* command_updater);
Domnibox_edit_controller.h57 explicit OmniboxEditController(CommandUpdater* command_updater);
60 CommandUpdater* command_updater() { return command_updater_; } in command_updater() function
Domnibox_view.cc158 CommandUpdater* command_updater) in OmniboxView() argument
160 command_updater_(command_updater) { in OmniboxView()
/external/chromium_org/chrome/browser/ui/views/location_bar/
Dtranslate_icon_view.cc17 TranslateIconView::TranslateIconView(CommandUpdater* command_updater) in TranslateIconView() argument
18 : BubbleIconView(command_updater, IDC_TRANSLATE_PAGE) { in TranslateIconView()
Dstar_view.cc18 StarView::StarView(CommandUpdater* command_updater) in StarView() argument
19 : BubbleIconView(command_updater, IDC_BOOKMARK_PAGE_FROM_STAR) { in StarView()
Dbubble_icon_view.cc12 BubbleIconView::BubbleIconView(CommandUpdater* command_updater, int command_id) in BubbleIconView() argument
13 : command_updater_(command_updater), in BubbleIconView()
Dtranslate_icon_view.h16 explicit TranslateIconView(CommandUpdater* command_updater);
Dstar_view.h15 explicit StarView(CommandUpdater* command_updater);
/external/chromium/chrome/browser/ui/cocoa/location_bar/
Dstar_decoration.mm9 #include "chrome/browser/command_updater.h"
24 StarDecoration::StarDecoration(CommandUpdater* command_updater)
25 : command_updater_(command_updater) {
/external/chromium/chrome/browser/ui/views/location_bar/
Dstar_view.cc18 StarView::StarView(CommandUpdater* command_updater) in StarView() argument
19 : command_updater_(command_updater) { in StarView()
/external/chromium/chrome/browser/ui/gtk/
Dbrowser_toolbar_gtk.cc93 browser_->command_updater()->AddCommandObserver(IDC_BACK, this); in BrowserToolbarGtk()
94 browser_->command_updater()->AddCommandObserver(IDC_FORWARD, this); in BrowserToolbarGtk()
95 browser_->command_updater()->AddCommandObserver(IDC_HOME, this); in BrowserToolbarGtk()
96 browser_->command_updater()->AddCommandObserver(IDC_BOOKMARK_PAGE, this); in BrowserToolbarGtk()
107 browser_->command_updater()->RemoveCommandObserver(IDC_BACK, this); in ~BrowserToolbarGtk()
108 browser_->command_updater()->RemoveCommandObserver(IDC_FORWARD, this); in ~BrowserToolbarGtk()
109 browser_->command_updater()->RemoveCommandObserver(IDC_HOME, this); in ~BrowserToolbarGtk()
110 browser_->command_updater()->RemoveCommandObserver(IDC_BOOKMARK_PAGE, this); in ~BrowserToolbarGtk()
Dglobal_menu_bar.cc155 browser_->command_updater()->IsCommandEnabled(it->first)); in GlobalMenuBar()
170 browser_->command_updater()->AddCommandObserver(it->first, this); in GlobalMenuBar()
184 browser_->command_updater()->RemoveCommandObserver(it->first, this); in ~GlobalMenuBar()
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dtoolbar_view_browsertest.cc38 CommandUpdater* updater = browser->command_controller()->command_updater(); in RunToolbarCycleFocusTest()
106 CommandUpdater* updater = browser()->command_controller()->command_updater(); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/ui/cocoa/toolbar/
Dtoolbar_controller_unittest.mm10 #include "chrome/browser/command_updater.h"
59 browser()->command_controller()->command_updater();
67 initWithCommands:browser()->command_controller()->command_updater()
102 CommandUpdater* updater = browser()->command_controller()->command_updater();
148 CommandUpdater* updater = browser()->command_controller()->command_updater();

1234