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(); | |
233 #endif | 227 #endif |
234 | 228 |
235 // Callback for the "selectDownloadLocation" message. This will prompt the | 229 // Callback for the "selectDownloadLocation" message. This will prompt the |
236 // user for a destination folder using platform-specific APIs. | 230 // user for a destination folder using platform-specific APIs. |
237 void HandleSelectDownloadLocation(const base::ListValue* args); | 231 void HandleSelectDownloadLocation(const base::ListValue* args); |
238 | 232 |
239 // Callback for the "autoOpenFileTypesResetToDefault" message. This will | 233 // Callback for the "autoOpenFileTypesResetToDefault" message. This will |
240 // remove all auto-open file-type settings. | 234 // remove all auto-open file-type settings. |
241 void HandleAutoOpenButton(const base::ListValue* args); | 235 void HandleAutoOpenButton(const base::ListValue* args); |
242 | 236 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 395 |
402 scoped_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> | 396 scoped_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> |
403 default_zoom_level_subscription_; | 397 default_zoom_level_subscription_; |
404 | 398 |
405 PrefChangeRegistrar profile_pref_registrar_; | 399 PrefChangeRegistrar profile_pref_registrar_; |
406 #if defined(OS_CHROMEOS) | 400 #if defined(OS_CHROMEOS) |
407 scoped_ptr<policy::PolicyChangeRegistrar> policy_registrar_; | 401 scoped_ptr<policy::PolicyChangeRegistrar> policy_registrar_; |
408 | 402 |
409 // Whether factory reset can be performed. | 403 // Whether factory reset can be performed. |
410 bool enable_factory_reset_; | 404 bool enable_factory_reset_; |
411 | |
412 PrefChangeRegistrar local_state_pref_change_registrar_; | |
413 #endif | 405 #endif |
414 | 406 |
415 ScopedObserver<SigninManagerBase, SigninManagerBase::Observer> | 407 ScopedObserver<SigninManagerBase, SigninManagerBase::Observer> |
416 signin_observer_; | 408 signin_observer_; |
417 | 409 |
418 // Used to get WeakPtr to self for use on the UI thread. | 410 // Used to get WeakPtr to self for use on the UI thread. |
419 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 411 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
420 | 412 |
421 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 413 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
422 }; | 414 }; |
423 | 415 |
424 } // namespace options | 416 } // namespace options |
425 | 417 |
426 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 418 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |