| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void Observe(int type, | 106 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_PRINT_PREVIEW) && !defined(OS_CHROMEOS) |
| 111 void OnCloudPrintPrefsChanged(); | 111 void OnCloudPrintPrefsChanged(); |
| 112 #endif | 112 #endif |
| 113 | 113 |
| 114 // SelectFileDialog::Listener implementation | 114 // SelectFileDialog::Listener implementation |
| 115 void FileSelected(const base::FilePath& path, | 115 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. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 #if !defined(USE_NSS) | 263 #if !defined(USE_NSS) |
| 264 // Callback for the "showManageSSLCertificates" message. This will invoke | 264 // Callback for the "showManageSSLCertificates" message. This will invoke |
| 265 // an appropriate certificate management action based on the platform. | 265 // an appropriate certificate management action based on the platform. |
| 266 void ShowManageSSLCertificates(const base::ListValue* args); | 266 void ShowManageSSLCertificates(const base::ListValue* args); |
| 267 #endif | 267 #endif |
| 268 | 268 |
| 269 #if defined(ENABLE_SERVICE_DISCOVERY) | 269 #if defined(ENABLE_SERVICE_DISCOVERY) |
| 270 void ShowCloudPrintDevicesPage(const base::ListValue* args); | 270 void ShowCloudPrintDevicesPage(const base::ListValue* args); |
| 271 #endif | 271 #endif |
| 272 | 272 |
| 273 #if defined(ENABLE_FULL_PRINTING) | 273 #if defined(ENABLE_PRINT_PREVIEW) |
| 274 // Register localized values used by Cloud Print | 274 // Register localized values used by Cloud Print |
| 275 void RegisterCloudPrintValues(base::DictionaryValue* values); | 275 void RegisterCloudPrintValues(base::DictionaryValue* values); |
| 276 #endif | 276 #endif |
| 277 | 277 |
| 278 // Check if hotword is available. If it is, tell the javascript to show | 278 // Check if hotword is available. If it is, tell the javascript to show |
| 279 // the hotword section of the settings page. | 279 // the hotword section of the settings page. |
| 280 void SendHotwordAvailable(); | 280 void SendHotwordAvailable(); |
| 281 | 281 |
| 282 // Callback for "requestHotwordAvailable" message. | 282 // Callback for "requestHotwordAvailable" message. |
| 283 void HandleRequestHotwordAvailable(const base::ListValue* args); | 283 void HandleRequestHotwordAvailable(const base::ListValue* args); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 386 |
| 387 // 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. |
| 388 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 388 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 389 | 389 |
| 390 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 390 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 391 }; | 391 }; |
| 392 | 392 |
| 393 } // namespace options | 393 } // namespace options |
| 394 | 394 |
| 395 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 395 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |