Home
last modified time | relevance | path

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

12

/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 …]
Dbrowser_commands_unittest.cc94 browser()->command_updater()->UpdateCommandEnabled(IDC_BOOKMARK_PAGE, true); in TEST_F()
/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) {
Dstar_decoration.h19 explicit StarDecoration(CommandUpdater* command_updater);
Dlocation_bar_view_mac.mm16 #include "chrome/browser/command_updater.h"
71 CommandUpdater* command_updater,
76 command_updater, field)),
77 command_updater_(command_updater),
87 star_decoration_(new StarDecoration(command_updater)),
Dlocation_bar_view_mac.h50 CommandUpdater* 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()
Dstar_view.h22 explicit StarView(CommandUpdater* command_updater);
Dlocation_bar_view.h111 CommandUpdater* command_updater,
Dlocation_bar_view.cc99 CommandUpdater* command_updater, in LocationBarView() argument
104 command_updater_(command_updater), in LocationBarView()
/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/chrome/browser/ui/cocoa/toolbar/
Dtoolbar_controller_unittest.mm52 CommandUpdater* updater = browser->command_updater();
60 commands:browser->command_updater()
91 CommandUpdater* updater = helper_.browser()->command_updater();
133 CommandUpdater* updater = helper_.browser()->command_updater();
/external/chromium/chrome/browser/download/
Dsave_page_browsertest.cc146 ASSERT_TRUE(browser()->command_updater()->SupportsCommand(IDC_SAVE_PAGE)); in IN_PROC_BROWSER_TEST_F()
147 EXPECT_FALSE(browser()->command_updater()->IsCommandEnabled(IDC_SAVE_PAGE)); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/ui/toolbar/
Dwrench_menu_model.cc108 bool enabled = browser_->command_updater()->IsCommandEnabled(command_id); in IsCommandIdEnabled()
113 enabled &= browser_->command_updater()->IsCommandEnabled(IDC_ENCODING_MENU); in IsCommandIdEnabled()
324 return browser_->command_updater()->IsCommandEnabled(command_id); in IsCommandIdEnabled()
/external/chromium/chrome/browser/ui/views/
Dtoolbar_view.cc98 browser_->command_updater()->AddCommandObserver(IDC_BACK, this); in ToolbarView()
99 browser_->command_updater()->AddCommandObserver(IDC_FORWARD, this); in ToolbarView()
100 browser_->command_updater()->AddCommandObserver(IDC_HOME, this); in ToolbarView()
154 location_bar_ = new LocationBarView(profile, browser_->command_updater(), in Init()
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit_view_gtk.h74 CommandUpdater* command_updater,
159 CommandUpdater* command_updater,
Dautocomplete_edit_view_mac.h33 CommandUpdater* command_updater,
Dautocomplete_edit_view_views.h47 CommandUpdater* command_updater,
Dautocomplete_edit_view_views.cc115 CommandUpdater* command_updater, in AutocompleteEditViewViews() argument
122 command_updater_(command_updater), in AutocompleteEditViewViews()
Dautocomplete_edit_view_gtk.cc157 CommandUpdater* command_updater, in AutocompleteEditViewGtk() argument
177 command_updater_(command_updater), in AutocompleteEditViewGtk()
884 CommandUpdater* command_updater, in Create() argument
892 command_updater, in Create()
903 command_updater, in Create()
Dautocomplete_edit_view_win.h71 CommandUpdater* command_updater,
/external/chromium/chrome/browser/ui/cocoa/wrench_menu/
Dwrench_menu_controller_unittest.mm49 commands:browser->command_updater()
/external/chromium/chrome/browser/automation/
Dtesting_automation_provider.cc608 if (browser && browser->command_updater()->IsCommandEnabled(IDC_RELOAD)) { in Reload()
760 if (browser->command_updater()->SupportsCommand(command) && in ExecuteBrowserCommandAsync()
761 browser->command_updater()->IsCommandEnabled(command)) { in ExecuteBrowserCommandAsync()
780 if (browser->command_updater()->SupportsCommand(command) && in ExecuteBrowserCommand()
781 browser->command_updater()->IsCommandEnabled(command)) { in ExecuteBrowserCommand()
1445 browser->command_updater()->IsCommandEnabled(message_num); in IsMenuCommandEnabled()
1494 if (!browser->command_updater()->IsCommandEnabled(IDC_SAVE_PAGE)) { in SavePage()
1947 if (browser && browser->command_updater()->IsCommandEnabled(IDC_BACK)) { in GoBackBlockUntilNavigationsComplete()
1965 if (browser && browser->command_updater()->IsCommandEnabled(IDC_FORWARD)) { in GoForwardBlockUntilNavigationsComplete()
5428 if (browser->command_updater()->IsCommandEnabled(IDC_ENCODING_MENU)) in GetPageCurrentEncoding()

12