| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |