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