| 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_CHROMEOS_PREFERENCES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 namespace chromeos { | 32 namespace chromeos { |
| 33 | 33 |
| 34 class User; | 34 class User; |
| 35 | 35 |
| 36 namespace input_method { | 36 namespace input_method { |
| 37 class InputMethodManager; | 37 class InputMethodManager; |
| 38 class InputMethodSyncer; | 38 class InputMethodSyncer; |
| 39 } | 39 } |
| 40 | 40 |
| 41 // This is a set of possible values of SystemTimezoneAutomaticDetection device |
| 42 // policy. It should be kept in sync with enum AutomaticTimezoneDetectionType |
| 43 // in chrome_device_policy.proto . |
| 44 enum ResolveDeviceTimezoneByGeolocationPolicyValues { |
| 45 USERS_DECIDE = 0, |
| 46 DISABLED = 1, |
| 47 IP_ONLY = 2, |
| 48 SEND_WIFI_ACCESS_POINTS = 3, |
| 49 NUM_ELEMENTS |
| 50 }; |
| 51 |
| 41 // The Preferences class handles Chrome OS preferences. When the class | 52 // The Preferences class handles Chrome OS preferences. When the class |
| 42 // is first initialized, it will initialize the OS settings to what's stored in | 53 // is first initialized, it will initialize the OS settings to what's stored in |
| 43 // the preferences. These include touchpad settings, etc. | 54 // the preferences. These include touchpad settings, etc. |
| 44 // When the preferences change, we change the settings to reflect the new value. | 55 // When the preferences change, we change the settings to reflect the new value. |
| 45 class Preferences : public syncable_prefs::PrefServiceSyncableObserver, | 56 class Preferences : public syncable_prefs::PrefServiceSyncableObserver, |
| 46 public ash::ShellObserver, | 57 public ash::ShellObserver, |
| 47 public user_manager::UserManager::UserSessionStateObserver { | 58 public user_manager::UserManager::UserSessionStateObserver { |
| 48 public: | 59 public: |
| 49 Preferences(); | 60 Preferences(); |
| 50 explicit Preferences( | 61 explicit Preferences( |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 scoped_refptr<input_method::InputMethodManager::State> ime_state_; | 170 scoped_refptr<input_method::InputMethodManager::State> ime_state_; |
| 160 | 171 |
| 161 scoped_ptr<input_method::InputMethodSyncer> input_method_syncer_; | 172 scoped_ptr<input_method::InputMethodSyncer> input_method_syncer_; |
| 162 | 173 |
| 163 DISALLOW_COPY_AND_ASSIGN(Preferences); | 174 DISALLOW_COPY_AND_ASSIGN(Preferences); |
| 164 }; | 175 }; |
| 165 | 176 |
| 166 } // namespace chromeos | 177 } // namespace chromeos |
| 167 | 178 |
| 168 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ | 179 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ |
| OLD | NEW |