Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: chrome/browser/ui/browser_command_controller.h

Issue 11906008: Make Mac menu code obey incognito availability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_
7 7
8 #include "base/prefs/public/pref_change_registrar.h" 8 #include "base/prefs/public/pref_change_registrar.h"
9 #include "chrome/browser/api/sync/profile_sync_service_observer.h" 9 #include "chrome/browser/api/sync/profile_sync_service_observer.h"
10 #include "chrome/browser/command_updater.h" 10 #include "chrome/browser/command_updater.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // Update commands whose state depends on whether multiple profiles are 156 // Update commands whose state depends on whether multiple profiles are
157 // allowed. 157 // allowed.
158 void UpdateCommandsForMultipleProfiles(); 158 void UpdateCommandsForMultipleProfiles();
159 159
160 // Updates the printing command state. 160 // Updates the printing command state.
161 void UpdatePrintingState(); 161 void UpdatePrintingState();
162 162
163 // Updates the save-page-as command state. 163 // Updates the save-page-as command state.
164 void UpdateSaveAsState(); 164 void UpdateSaveAsState();
165 165
166 // Updates the open-file state (Mac Only).
167 void UpdateOpenFileState();
168
169 // Ask the Reload/Stop button to change its icon, and update the Stop command 166 // Ask the Reload/Stop button to change its icon, and update the Stop command
170 // state. |is_loading| is true if the current WebContents is loading. 167 // state. |is_loading| is true if the current WebContents is loading.
171 // |force| is true if the button should change its icon immediately. 168 // |force| is true if the button should change its icon immediately.
172 void UpdateReloadStopState(bool is_loading, bool force); 169 void UpdateReloadStopState(bool is_loading, bool force);
173 170
174 // Updates commands for find. 171 // Updates commands for find.
175 void UpdateCommandsForFind(); 172 void UpdateCommandsForFind();
176 173
177 // Add/remove observers for interstitial attachment/detachment from 174 // Add/remove observers for interstitial attachment/detachment from
178 // |contents|. 175 // |contents|.
(...skipping 22 matching lines...) Expand all
201 content::NotificationRegistrar registrar_; 198 content::NotificationRegistrar registrar_;
202 PrefChangeRegistrar profile_pref_registrar_; 199 PrefChangeRegistrar profile_pref_registrar_;
203 PrefChangeRegistrar local_pref_registrar_; 200 PrefChangeRegistrar local_pref_registrar_;
204 201
205 DISALLOW_COPY_AND_ASSIGN(BrowserCommandController); 202 DISALLOW_COPY_AND_ASSIGN(BrowserCommandController);
206 }; 203 };
207 204
208 } // namespace chrome 205 } // namespace chrome
209 206
210 #endif // CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ 207 #endif // CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698