| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // When the preferences change, we change the settings to reflect the new value. | 33 // When the preferences change, we change the settings to reflect the new value. |
| 34 class Preferences : public PrefServiceSyncableObserver { | 34 class Preferences : public PrefServiceSyncableObserver { |
| 35 public: | 35 public: |
| 36 Preferences(); | 36 Preferences(); |
| 37 explicit Preferences( | 37 explicit Preferences( |
| 38 input_method::InputMethodManager* input_method_manager); // for testing | 38 input_method::InputMethodManager* input_method_manager); // for testing |
| 39 virtual ~Preferences(); | 39 virtual ~Preferences(); |
| 40 | 40 |
| 41 // These method will register the prefs associated with Chrome OS settings. | 41 // These method will register the prefs associated with Chrome OS settings. |
| 42 static void RegisterPrefs(PrefRegistrySimple* registry); | 42 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 43 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 43 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 44 | 44 |
| 45 // This method will initialize Chrome OS settings to values in user prefs. | 45 // This method will initialize Chrome OS settings to values in user prefs. |
| 46 void Init(PrefServiceSyncable* prefs); | 46 void Init(PrefServiceSyncable* prefs); |
| 47 | 47 |
| 48 void InitUserPrefsForTesting(PrefServiceSyncable* prefs); | 48 void InitUserPrefsForTesting(PrefServiceSyncable* prefs); |
| 49 void SetInputMethodListForTesting(); | 49 void SetInputMethodListForTesting(); |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 // Initializes all member prefs. | 52 // Initializes all member prefs. |
| 53 void InitUserPrefs(PrefServiceSyncable* prefs); | 53 void InitUserPrefs(PrefServiceSyncable* prefs); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 BooleanPrefMember power_allow_screen_wake_locks_; | 188 BooleanPrefMember power_allow_screen_wake_locks_; |
| 189 DoublePrefMember power_presentation_screen_dim_delay_factor_; | 189 DoublePrefMember power_presentation_screen_dim_delay_factor_; |
| 190 DoublePrefMember power_user_activity_screen_dim_delay_factor_; | 190 DoublePrefMember power_user_activity_screen_dim_delay_factor_; |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(Preferences); | 192 DISALLOW_COPY_AND_ASSIGN(Preferences); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace chromeos | 195 } // namespace chromeos |
| 196 | 196 |
| 197 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ | 197 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ |
| OLD | NEW |