| 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 14 matching lines...) Expand all Loading... |
| 25 // the preferences. These include touchpad settings, etc. | 25 // the preferences. These include touchpad settings, etc. |
| 26 // When the preferences change, we change the settings to reflect the new value. | 26 // When the preferences change, we change the settings to reflect the new value. |
| 27 class Preferences : public PrefServiceObserver { | 27 class Preferences : public PrefServiceObserver { |
| 28 public: | 28 public: |
| 29 Preferences(); | 29 Preferences(); |
| 30 explicit Preferences( | 30 explicit Preferences( |
| 31 input_method::InputMethodManager* input_method_manager); // for testing | 31 input_method::InputMethodManager* input_method_manager); // for testing |
| 32 virtual ~Preferences(); | 32 virtual ~Preferences(); |
| 33 | 33 |
| 34 // This method will register the prefs associated with Chrome OS settings. | 34 // This method will register the prefs associated with Chrome OS settings. |
| 35 static void RegisterUserPrefs(PrefService* prefs); | 35 static void RegisterUserPrefs(PrefServiceSyncable* prefs); |
| 36 | 36 |
| 37 // This method will initialize Chrome OS settings to values in user prefs. | 37 // This method will initialize Chrome OS settings to values in user prefs. |
| 38 void Init(PrefService* prefs); | 38 void Init(PrefService* prefs); |
| 39 | 39 |
| 40 void InitUserPrefsForTesting(PrefService* prefs); | 40 void InitUserPrefsForTesting(PrefService* prefs); |
| 41 void SetInputMethodListForTesting(); | 41 void SetInputMethodListForTesting(); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // Initializes all member prefs. | 44 // Initializes all member prefs. |
| 45 void InitUserPrefs(PrefService* prefs); | 45 void InitUserPrefs(PrefService* prefs); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 BooleanPrefMember enable_screen_lock_; | 156 BooleanPrefMember enable_screen_lock_; |
| 157 | 157 |
| 158 BooleanPrefMember enable_drm_; | 158 BooleanPrefMember enable_drm_; |
| 159 | 159 |
| 160 DISALLOW_COPY_AND_ASSIGN(Preferences); | 160 DISALLOW_COPY_AND_ASSIGN(Preferences); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace chromeos | 163 } // namespace chromeos |
| 164 | 164 |
| 165 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ | 165 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ |
| OLD | NEW |