| 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_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 public policy::ConsumerManagementService::Observer, | 60 public policy::ConsumerManagementService::Observer, |
| 61 #endif | 61 #endif |
| 62 public TemplateURLServiceObserver, | 62 public TemplateURLServiceObserver, |
| 63 public extensions::ExtensionRegistryObserver, | 63 public extensions::ExtensionRegistryObserver, |
| 64 public content::NotificationObserver { | 64 public content::NotificationObserver { |
| 65 public: | 65 public: |
| 66 BrowserOptionsHandler(); | 66 BrowserOptionsHandler(); |
| 67 virtual ~BrowserOptionsHandler(); | 67 virtual ~BrowserOptionsHandler(); |
| 68 | 68 |
| 69 // OptionsPageUIHandler implementation. | 69 // OptionsPageUIHandler implementation. |
| 70 virtual void GetLocalizedValues(base::DictionaryValue* values) OVERRIDE; | 70 virtual void GetLocalizedValues(base::DictionaryValue* values) override; |
| 71 virtual void PageLoadStarted() OVERRIDE; | 71 virtual void PageLoadStarted() override; |
| 72 virtual void InitializeHandler() OVERRIDE; | 72 virtual void InitializeHandler() override; |
| 73 virtual void InitializePage() OVERRIDE; | 73 virtual void InitializePage() override; |
| 74 virtual void RegisterMessages() OVERRIDE; | 74 virtual void RegisterMessages() override; |
| 75 virtual void Uninitialize() OVERRIDE; | 75 virtual void Uninitialize() override; |
| 76 | 76 |
| 77 // ProfileSyncServiceObserver implementation. | 77 // ProfileSyncServiceObserver implementation. |
| 78 virtual void OnStateChanged() OVERRIDE; | 78 virtual void OnStateChanged() override; |
| 79 | 79 |
| 80 // SigninManagerBase::Observer implementation. | 80 // SigninManagerBase::Observer implementation. |
| 81 virtual void GoogleSigninSucceeded(const std::string& account_id, | 81 virtual void GoogleSigninSucceeded(const std::string& account_id, |
| 82 const std::string& username, | 82 const std::string& username, |
| 83 const std::string& password) OVERRIDE; | 83 const std::string& password) override; |
| 84 virtual void GoogleSignedOut(const std::string& account_id, | 84 virtual void GoogleSignedOut(const std::string& account_id, |
| 85 const std::string& username) OVERRIDE; | 85 const std::string& username) override; |
| 86 | 86 |
| 87 // ShellIntegration::DefaultWebClientObserver implementation. | 87 // ShellIntegration::DefaultWebClientObserver implementation. |
| 88 virtual void SetDefaultWebClientUIState( | 88 virtual void SetDefaultWebClientUIState( |
| 89 ShellIntegration::DefaultWebClientUIState state) OVERRIDE; | 89 ShellIntegration::DefaultWebClientUIState state) override; |
| 90 virtual bool IsInteractiveSetDefaultPermitted() OVERRIDE; | 90 virtual bool IsInteractiveSetDefaultPermitted() override; |
| 91 | 91 |
| 92 // TemplateURLServiceObserver implementation. | 92 // TemplateURLServiceObserver implementation. |
| 93 virtual void OnTemplateURLServiceChanged() OVERRIDE; | 93 virtual void OnTemplateURLServiceChanged() override; |
| 94 | 94 |
| 95 // extensions::ExtensionRegistryObserver: | 95 // extensions::ExtensionRegistryObserver: |
| 96 virtual void OnExtensionLoaded( | 96 virtual void OnExtensionLoaded( |
| 97 content::BrowserContext* browser_context, | 97 content::BrowserContext* browser_context, |
| 98 const extensions::Extension* extension) OVERRIDE; | 98 const extensions::Extension* extension) override; |
| 99 virtual void OnExtensionUnloaded( | 99 virtual void OnExtensionUnloaded( |
| 100 content::BrowserContext* browser_context, | 100 content::BrowserContext* browser_context, |
| 101 const extensions::Extension* extension, | 101 const extensions::Extension* extension, |
| 102 extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE; | 102 extensions::UnloadedExtensionInfo::Reason reason) override; |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 // content::NotificationObserver implementation. | 105 // content::NotificationObserver implementation. |
| 106 virtual void Observe(int type, | 106 virtual void Observe(int type, |
| 107 const content::NotificationSource& source, | 107 const content::NotificationSource& source, |
| 108 const content::NotificationDetails& details) OVERRIDE; | 108 const content::NotificationDetails& details) override; |
| 109 | 109 |
| 110 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) | 110 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) |
| 111 void OnCloudPrintPrefsChanged(); | 111 void OnCloudPrintPrefsChanged(); |
| 112 #endif | 112 #endif |
| 113 | 113 |
| 114 // SelectFileDialog::Listener implementation | 114 // SelectFileDialog::Listener implementation |
| 115 virtual void FileSelected(const base::FilePath& path, | 115 virtual void FileSelected(const base::FilePath& path, |
| 116 int index, | 116 int index, |
| 117 void* params) OVERRIDE; | 117 void* params) override; |
| 118 | 118 |
| 119 #if defined(OS_CHROMEOS) | 119 #if defined(OS_CHROMEOS) |
| 120 // PointerDeviceObserver::Observer implementation. | 120 // PointerDeviceObserver::Observer implementation. |
| 121 virtual void TouchpadExists(bool exists) OVERRIDE; | 121 virtual void TouchpadExists(bool exists) override; |
| 122 virtual void MouseExists(bool exists) OVERRIDE; | 122 virtual void MouseExists(bool exists) override; |
| 123 | 123 |
| 124 // Will be called when the policy::key::kUserAvatarImage policy changes. | 124 // Will be called when the policy::key::kUserAvatarImage policy changes. |
| 125 void OnUserImagePolicyChanged(const base::Value* previous_policy, | 125 void OnUserImagePolicyChanged(const base::Value* previous_policy, |
| 126 const base::Value* current_policy); | 126 const base::Value* current_policy); |
| 127 | 127 |
| 128 // Will be called when the policy::key::kWallpaperImage policy changes. | 128 // Will be called when the policy::key::kWallpaperImage policy changes. |
| 129 void OnWallpaperPolicyChanged(const base::Value* previous_policy, | 129 void OnWallpaperPolicyChanged(const base::Value* previous_policy, |
| 130 const base::Value* current_policy); | 130 const base::Value* current_policy); |
| 131 | 131 |
| 132 // Will be called when powerwash dialog is shown. | 132 // Will be called when powerwash dialog is shown. |
| 133 void OnPowerwashDialogShow(const base::ListValue* args); | 133 void OnPowerwashDialogShow(const base::ListValue* args); |
| 134 | 134 |
| 135 // ConsumerManagementService::Observer: | 135 // ConsumerManagementService::Observer: |
| 136 virtual void OnConsumerManagementStatusChanged() OVERRIDE; | 136 virtual void OnConsumerManagementStatusChanged() override; |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 void UpdateSyncState(); | 139 void UpdateSyncState(); |
| 140 | 140 |
| 141 // Will be called when the kSigninAllowed pref has changed. | 141 // Will be called when the kSigninAllowed pref has changed. |
| 142 void OnSigninAllowedPrefChange(); | 142 void OnSigninAllowedPrefChange(); |
| 143 | 143 |
| 144 // Makes this the default browser. Called from WebUI. | 144 // Makes this the default browser. Called from WebUI. |
| 145 void BecomeDefaultBrowser(const base::ListValue* args); | 145 void BecomeDefaultBrowser(const base::ListValue* args); |
| 146 | 146 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 // Used to get WeakPtr to self for use on the UI thread. | 385 // Used to get WeakPtr to self for use on the UI thread. |
| 386 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 386 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 387 | 387 |
| 388 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 388 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 389 }; | 389 }; |
| 390 | 390 |
| 391 } // namespace options | 391 } // namespace options |
| 392 | 392 |
| 393 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 393 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |