| 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 "base/prefs/public/pref_observer.h" | 9 #include "base/prefs/public/pref_observer.h" |
| 10 #include "chrome/browser/api/sync/profile_sync_service_observer.h" | 10 #include "chrome/browser/api/sync/profile_sync_service_observer.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual void OnPreferenceChanged(PrefServiceBase* service, | 92 virtual void OnPreferenceChanged(PrefServiceBase* service, |
| 93 const std::string& pref_name) OVERRIDE; | 93 const std::string& pref_name) OVERRIDE; |
| 94 | 94 |
| 95 // Overridden from TabStripModelObserver: | 95 // Overridden from TabStripModelObserver: |
| 96 virtual void TabInsertedAt(content::WebContents* contents, | 96 virtual void TabInsertedAt(content::WebContents* contents, |
| 97 int index, | 97 int index, |
| 98 bool foreground) OVERRIDE; | 98 bool foreground) OVERRIDE; |
| 99 virtual void TabDetachedAt(content::WebContents* contents, | 99 virtual void TabDetachedAt(content::WebContents* contents, |
| 100 int index) OVERRIDE; | 100 int index) OVERRIDE; |
| 101 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 101 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 102 TabContents* old_contents, | 102 content::WebContents* old_contents, |
| 103 TabContents* new_contents, | 103 content::WebContents* new_contents, |
| 104 int index) OVERRIDE; | 104 int index) OVERRIDE; |
| 105 | 105 |
| 106 // Overridden from TabRestoreServiceObserver: | 106 // Overridden from TabRestoreServiceObserver: |
| 107 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE; | 107 virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE; |
| 108 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE; | 108 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE; |
| 109 | 109 |
| 110 // Overridden from ProfileSyncServiceObserver: | 110 // Overridden from ProfileSyncServiceObserver: |
| 111 virtual void OnStateChanged() OVERRIDE; | 111 virtual void OnStateChanged() OVERRIDE; |
| 112 | 112 |
| 113 // Returns true if the regular Chrome UI (not the fullscreen one and | 113 // Returns true if the regular Chrome UI (not the fullscreen one and |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 content::NotificationRegistrar registrar_; | 184 content::NotificationRegistrar registrar_; |
| 185 PrefChangeRegistrar profile_pref_registrar_; | 185 PrefChangeRegistrar profile_pref_registrar_; |
| 186 PrefChangeRegistrar local_pref_registrar_; | 186 PrefChangeRegistrar local_pref_registrar_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(BrowserCommandController); | 188 DISALLOW_COPY_AND_ASSIGN(BrowserCommandController); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace chrome | 191 } // namespace chrome |
| 192 | 192 |
| 193 #endif // CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ | 193 #endif // CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ |
| OLD | NEW |