| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 217 |
| 218 // Updates the UI, allowing the user to change the wallpaper if |managed| is | 218 // Updates the UI, allowing the user to change the wallpaper if |managed| is |
| 219 // |false| and preventing the user from changing the wallpaper if |managed| is | 219 // |false| and preventing the user from changing the wallpaper if |managed| is |
| 220 // |true|. | 220 // |true|. |
| 221 void OnWallpaperManagedChanged(bool managed); | 221 void OnWallpaperManagedChanged(bool managed); |
| 222 | 222 |
| 223 // Updates the UI, allowing the user to change the system time zone if | 223 // Updates the UI, allowing the user to change the system time zone if |
| 224 // kSystemTimezonePolicy is set, and preventing the user from changing the | 224 // kSystemTimezonePolicy is set, and preventing the user from changing the |
| 225 // system time zone if kSystemTimezonePolicy is not set. | 225 // system time zone if kSystemTimezonePolicy is not set. |
| 226 void OnSystemTimezonePolicyChanged(); | 226 void OnSystemTimezonePolicyChanged(); |
| 227 |
| 228 // Updates the UI, preventing the user from changing timezone or timezone |
| 229 // detection settings if kSystemTimezoneAutomaticDetectionPolicy is set, and |
| 230 // allowing the user to update these settings if |
| 231 // kSystemTimezoneAutomaticDetectionPolicy is not set. |
| 232 void OnSystemTimezoneAutomaticDetectionPolicyChanged(); |
| 227 #endif | 233 #endif |
| 228 | 234 |
| 229 // Callback for the "selectDownloadLocation" message. This will prompt the | 235 // Callback for the "selectDownloadLocation" message. This will prompt the |
| 230 // user for a destination folder using platform-specific APIs. | 236 // user for a destination folder using platform-specific APIs. |
| 231 void HandleSelectDownloadLocation(const base::ListValue* args); | 237 void HandleSelectDownloadLocation(const base::ListValue* args); |
| 232 | 238 |
| 233 // Callback for the "autoOpenFileTypesResetToDefault" message. This will | 239 // Callback for the "autoOpenFileTypesResetToDefault" message. This will |
| 234 // remove all auto-open file-type settings. | 240 // remove all auto-open file-type settings. |
| 235 void HandleAutoOpenButton(const base::ListValue* args); | 241 void HandleAutoOpenButton(const base::ListValue* args); |
| 236 | 242 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 401 |
| 396 scoped_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> | 402 scoped_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> |
| 397 default_zoom_level_subscription_; | 403 default_zoom_level_subscription_; |
| 398 | 404 |
| 399 PrefChangeRegistrar profile_pref_registrar_; | 405 PrefChangeRegistrar profile_pref_registrar_; |
| 400 #if defined(OS_CHROMEOS) | 406 #if defined(OS_CHROMEOS) |
| 401 scoped_ptr<policy::PolicyChangeRegistrar> policy_registrar_; | 407 scoped_ptr<policy::PolicyChangeRegistrar> policy_registrar_; |
| 402 | 408 |
| 403 // Whether factory reset can be performed. | 409 // Whether factory reset can be performed. |
| 404 bool enable_factory_reset_; | 410 bool enable_factory_reset_; |
| 411 |
| 412 PrefChangeRegistrar local_state_pref_change_registrar_; |
| 405 #endif | 413 #endif |
| 406 | 414 |
| 407 ScopedObserver<SigninManagerBase, SigninManagerBase::Observer> | 415 ScopedObserver<SigninManagerBase, SigninManagerBase::Observer> |
| 408 signin_observer_; | 416 signin_observer_; |
| 409 | 417 |
| 410 // Used to get WeakPtr to self for use on the UI thread. | 418 // Used to get WeakPtr to self for use on the UI thread. |
| 411 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 419 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 412 | 420 |
| 413 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 421 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 414 }; | 422 }; |
| 415 | 423 |
| 416 } // namespace options | 424 } // namespace options |
| 417 | 425 |
| 418 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 426 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |