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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // TemplateURLServiceObserver implementation. | 67 // TemplateURLServiceObserver implementation. |
68 virtual void OnTemplateURLServiceChanged() OVERRIDE; | 68 virtual void OnTemplateURLServiceChanged() OVERRIDE; |
69 | 69 |
70 private: | 70 private: |
71 // content::NotificationObserver implementation. | 71 // content::NotificationObserver implementation. |
72 virtual void Observe(int type, | 72 virtual void Observe(int type, |
73 const content::NotificationSource& source, | 73 const content::NotificationSource& source, |
74 const content::NotificationDetails& details) OVERRIDE; | 74 const content::NotificationDetails& details) OVERRIDE; |
75 | 75 |
| 76 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) |
76 void OnCloudPrintPrefsChanged(); | 77 void OnCloudPrintPrefsChanged(); |
| 78 #endif |
77 | 79 |
78 // SelectFileDialog::Listener implementation | 80 // SelectFileDialog::Listener implementation |
79 virtual void FileSelected(const base::FilePath& path, | 81 virtual void FileSelected(const base::FilePath& path, |
80 int index, | 82 int index, |
81 void* params) OVERRIDE; | 83 void* params) OVERRIDE; |
82 | 84 |
83 #if defined(OS_CHROMEOS) | 85 #if defined(OS_CHROMEOS) |
84 // PointerDeviceObserver::Observer implementation. | 86 // PointerDeviceObserver::Observer implementation. |
85 virtual void TouchpadExists(bool exists) OVERRIDE; | 87 virtual void TouchpadExists(bool exists) OVERRIDE; |
86 virtual void MouseExists(bool exists) OVERRIDE; | 88 virtual void MouseExists(bool exists) OVERRIDE; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // an appropriate dialog for configuring proxy settings. | 235 // an appropriate dialog for configuring proxy settings. |
234 void ShowNetworkProxySettings(const ListValue* args); | 236 void ShowNetworkProxySettings(const ListValue* args); |
235 #endif | 237 #endif |
236 | 238 |
237 #if !defined(USE_NSS) | 239 #if !defined(USE_NSS) |
238 // Callback for the "showManageSSLCertificates" message. This will invoke | 240 // Callback for the "showManageSSLCertificates" message. This will invoke |
239 // an appropriate certificate management action based on the platform. | 241 // an appropriate certificate management action based on the platform. |
240 void ShowManageSSLCertificates(const ListValue* args); | 242 void ShowManageSSLCertificates(const ListValue* args); |
241 #endif | 243 #endif |
242 | 244 |
| 245 #if defined(ENABLE_FULL_PRINTING) |
243 // Callback for the Cloud Print manage button. This will open a new | 246 // Callback for the Cloud Print manage button. This will open a new |
244 // tab pointed at the management URL. | 247 // tab pointed at the management URL. |
245 void ShowCloudPrintManagePage(const ListValue* args); | 248 void ShowCloudPrintManagePage(const ListValue* args); |
246 | 249 |
247 // Register localized values used by Cloud Print | 250 // Register localized values used by Cloud Print |
248 void RegisterCloudPrintValues(DictionaryValue* values); | 251 void RegisterCloudPrintValues(DictionaryValue* values); |
249 | 252 |
250 #if !defined(OS_CHROMEOS) | 253 #if !defined(OS_CHROMEOS) |
251 // Callback for the Sign in to Cloud Print button. This will start | 254 // Callback for the Sign in to Cloud Print button. This will start |
252 // the authentication process. | 255 // the authentication process. |
253 void ShowCloudPrintSetupDialog(const ListValue* args); | 256 void ShowCloudPrintSetupDialog(const ListValue* args); |
254 | 257 |
255 // Callback for the Disable Cloud Print button. This will sign out | 258 // Callback for the Disable Cloud Print button. This will sign out |
256 // of cloud print. | 259 // of cloud print. |
257 void HandleDisableCloudPrintConnector(const ListValue* args); | 260 void HandleDisableCloudPrintConnector(const ListValue* args); |
258 | 261 |
259 // Pings the service to send us it's current notion of the enabled state. | 262 // Pings the service to send us it's current notion of the enabled state. |
260 void RefreshCloudPrintStatusFromService(); | 263 void RefreshCloudPrintStatusFromService(); |
261 | 264 |
262 // Setup the enabled or disabled state of the cloud print connector | 265 // Setup the enabled or disabled state of the cloud print connector |
263 // management UI. | 266 // management UI. |
264 void SetupCloudPrintConnectorSection(); | 267 void SetupCloudPrintConnectorSection(); |
265 | 268 |
266 // Remove cloud print connector section if cloud print connector management | 269 // Remove cloud print connector section if cloud print connector management |
267 // UI is disabled. | 270 // UI is disabled. |
268 void RemoveCloudPrintConnectorSection(); | 271 void RemoveCloudPrintConnectorSection(); |
269 #endif | 272 #endif // defined(OS_CHROMEOS) |
| 273 #endif // defined(ENABLE_FULL_PRINTING) |
270 | 274 |
271 #if defined(OS_CHROMEOS) | 275 #if defined(OS_CHROMEOS) |
272 // Opens the wallpaper manager component extension. | 276 // Opens the wallpaper manager component extension. |
273 void HandleOpenWallpaperManager(const base::ListValue* args); | 277 void HandleOpenWallpaperManager(const base::ListValue* args); |
274 | 278 |
275 // Called when the accessibility checkbox values are changed. | 279 // Called when the accessibility checkbox values are changed. |
276 // |args| will contain the checkbox checked state as a string | 280 // |args| will contain the checkbox checked state as a string |
277 // ("true" or "false"). | 281 // ("true" or "false"). |
278 void VirtualKeyboardChangeCallback(const base::ListValue* args); | 282 void VirtualKeyboardChangeCallback(const base::ListValue* args); |
279 | 283 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 base::FilePath profile_path_being_created_; | 331 base::FilePath profile_path_being_created_; |
328 | 332 |
329 // Used to track how long profile creation takes. | 333 // Used to track how long profile creation takes. |
330 base::TimeTicks profile_creation_start_time_; | 334 base::TimeTicks profile_creation_start_time_; |
331 | 335 |
332 // Used to get WeakPtr to self for use on the UI thread. | 336 // Used to get WeakPtr to self for use on the UI thread. |
333 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 337 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
334 | 338 |
335 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; | 339 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; |
336 | 340 |
337 #if !defined(OS_CHROMEOS) | 341 #if defined(ENABLE_FULL_PRINTING) && !defined(OS_CHROMEOS) |
338 StringPrefMember cloud_print_connector_email_; | 342 StringPrefMember cloud_print_connector_email_; |
339 BooleanPrefMember cloud_print_connector_enabled_; | 343 BooleanPrefMember cloud_print_connector_enabled_; |
340 bool cloud_print_connector_ui_enabled_; | 344 bool cloud_print_connector_ui_enabled_; |
341 #endif | 345 #endif |
342 | 346 |
343 StringPrefMember auto_open_files_; | 347 StringPrefMember auto_open_files_; |
344 DoublePrefMember default_zoom_level_; | 348 DoublePrefMember default_zoom_level_; |
345 | 349 |
346 PrefChangeRegistrar profile_pref_registrar_; | 350 PrefChangeRegistrar profile_pref_registrar_; |
347 | 351 |
348 scoped_ptr<ManagedUserRegistrationUtility> managed_user_registration_utility_; | 352 scoped_ptr<ManagedUserRegistrationUtility> managed_user_registration_utility_; |
349 | 353 |
350 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 354 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
351 }; | 355 }; |
352 | 356 |
353 } // namespace options | 357 } // namespace options |
354 | 358 |
355 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 359 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |