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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 public ShellIntegration::DefaultWebClientObserver, | 58 public ShellIntegration::DefaultWebClientObserver, |
59 #if defined(OS_CHROMEOS) | 59 #if defined(OS_CHROMEOS) |
60 public chromeos::system::PointerDeviceObserver::Observer, | 60 public chromeos::system::PointerDeviceObserver::Observer, |
61 public policy::ConsumerManagementService::Observer, | 61 public policy::ConsumerManagementService::Observer, |
62 #endif | 62 #endif |
63 public TemplateURLServiceObserver, | 63 public TemplateURLServiceObserver, |
64 public extensions::ExtensionRegistryObserver, | 64 public extensions::ExtensionRegistryObserver, |
65 public content::NotificationObserver { | 65 public content::NotificationObserver { |
66 public: | 66 public: |
67 BrowserOptionsHandler(); | 67 BrowserOptionsHandler(); |
68 virtual ~BrowserOptionsHandler(); | 68 ~BrowserOptionsHandler() override; |
69 | 69 |
70 // OptionsPageUIHandler implementation. | 70 // OptionsPageUIHandler implementation. |
71 virtual void GetLocalizedValues(base::DictionaryValue* values) override; | 71 void GetLocalizedValues(base::DictionaryValue* values) override; |
72 virtual void PageLoadStarted() override; | 72 void PageLoadStarted() override; |
73 virtual void InitializeHandler() override; | 73 void InitializeHandler() override; |
74 virtual void InitializePage() override; | 74 void InitializePage() override; |
75 virtual void RegisterMessages() override; | 75 void RegisterMessages() override; |
76 virtual void Uninitialize() override; | 76 void Uninitialize() override; |
77 | 77 |
78 // ProfileSyncServiceObserver implementation. | 78 // ProfileSyncServiceObserver implementation. |
79 virtual void OnStateChanged() override; | 79 void OnStateChanged() override; |
80 | 80 |
81 // SigninManagerBase::Observer implementation. | 81 // SigninManagerBase::Observer implementation. |
82 virtual void GoogleSigninSucceeded(const std::string& account_id, | 82 void GoogleSigninSucceeded(const std::string& account_id, |
83 const std::string& username, | 83 const std::string& username, |
84 const std::string& password) override; | 84 const std::string& password) override; |
85 virtual void GoogleSignedOut(const std::string& account_id, | 85 void GoogleSignedOut(const std::string& account_id, |
86 const std::string& username) override; | 86 const std::string& username) override; |
87 | 87 |
88 // ShellIntegration::DefaultWebClientObserver implementation. | 88 // ShellIntegration::DefaultWebClientObserver implementation. |
89 virtual void SetDefaultWebClientUIState( | 89 void SetDefaultWebClientUIState( |
90 ShellIntegration::DefaultWebClientUIState state) override; | 90 ShellIntegration::DefaultWebClientUIState state) override; |
91 virtual bool IsInteractiveSetDefaultPermitted() override; | 91 bool IsInteractiveSetDefaultPermitted() override; |
92 | 92 |
93 // TemplateURLServiceObserver implementation. | 93 // TemplateURLServiceObserver implementation. |
94 virtual void OnTemplateURLServiceChanged() override; | 94 void OnTemplateURLServiceChanged() override; |
95 | 95 |
96 // extensions::ExtensionRegistryObserver: | 96 // extensions::ExtensionRegistryObserver: |
97 virtual void OnExtensionLoaded( | 97 void OnExtensionLoaded(content::BrowserContext* browser_context, |
98 content::BrowserContext* browser_context, | 98 const extensions::Extension* extension) override; |
99 const extensions::Extension* extension) override; | 99 void OnExtensionUnloaded( |
100 virtual void OnExtensionUnloaded( | |
101 content::BrowserContext* browser_context, | 100 content::BrowserContext* browser_context, |
102 const extensions::Extension* extension, | 101 const extensions::Extension* extension, |
103 extensions::UnloadedExtensionInfo::Reason reason) override; | 102 extensions::UnloadedExtensionInfo::Reason reason) override; |
104 | 103 |
105 private: | 104 private: |
106 // content::NotificationObserver implementation. | 105 // content::NotificationObserver implementation. |
107 virtual void Observe(int type, | 106 void Observe(int type, |
108 const content::NotificationSource& source, | 107 const content::NotificationSource& source, |
109 const content::NotificationDetails& details) override; | 108 const content::NotificationDetails& details) override; |
110 | 109 |
111 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) | 110 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) |
112 void OnCloudPrintPrefsChanged(); | 111 void OnCloudPrintPrefsChanged(); |
113 #endif | 112 #endif |
114 | 113 |
115 // SelectFileDialog::Listener implementation | 114 // SelectFileDialog::Listener implementation |
116 virtual void FileSelected(const base::FilePath& path, | 115 void FileSelected(const base::FilePath& path, |
117 int index, | 116 int index, |
118 void* params) override; | 117 void* params) override; |
119 | 118 |
120 #if defined(OS_CHROMEOS) | 119 #if defined(OS_CHROMEOS) |
121 // PointerDeviceObserver::Observer implementation. | 120 // PointerDeviceObserver::Observer implementation. |
122 virtual void TouchpadExists(bool exists) override; | 121 virtual void TouchpadExists(bool exists) override; |
123 virtual void MouseExists(bool exists) override; | 122 virtual void MouseExists(bool exists) override; |
124 | 123 |
125 // Will be called when the policy::key::kUserAvatarImage policy changes. | 124 // Will be called when the policy::key::kUserAvatarImage policy changes. |
126 void OnUserImagePolicyChanged(const base::Value* previous_policy, | 125 void OnUserImagePolicyChanged(const base::Value* previous_policy, |
127 const base::Value* current_policy); | 126 const base::Value* current_policy); |
128 | 127 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 386 |
388 // Used to get WeakPtr to self for use on the UI thread. | 387 // Used to get WeakPtr to self for use on the UI thread. |
389 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 388 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
390 | 389 |
391 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 390 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
392 }; | 391 }; |
393 | 392 |
394 } // namespace options | 393 } // namespace options |
395 | 394 |
396 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 395 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |