OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 11 matching lines...) Expand all Loading... |
22 // the preferences. These include touchpad settings, etc. | 22 // the preferences. These include touchpad settings, etc. |
23 // When the preferences change, we change the settings to reflect the new value. | 23 // When the preferences change, we change the settings to reflect the new value. |
24 class Preferences : public NotificationObserver { | 24 class Preferences : public NotificationObserver { |
25 public: | 25 public: |
26 Preferences(); | 26 Preferences(); |
27 virtual ~Preferences(); | 27 virtual ~Preferences(); |
28 | 28 |
29 // This method will register the prefs associated with Chrome OS settings. | 29 // This method will register the prefs associated with Chrome OS settings. |
30 static void RegisterUserPrefs(PrefService* prefs); | 30 static void RegisterUserPrefs(PrefService* prefs); |
31 | 31 |
| 32 // This method is called when kLanguagePreferredVirtualKeyboard is updated to |
| 33 // change the virtual keyboard settings to reflect the new value. |
| 34 static void UpdateVirturalKeyboardPreference(PrefService* prefs); |
| 35 |
32 // 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. |
33 void Init(PrefService* prefs); | 37 void Init(PrefService* prefs); |
34 | 38 |
35 // Overridden from NotificationObserver: | 39 // Overridden from NotificationObserver: |
36 virtual void Observe(int type, | 40 virtual void Observe(int type, |
37 const NotificationSource& source, | 41 const NotificationSource& source, |
38 const NotificationDetails& details); | 42 const NotificationDetails& details); |
39 | 43 |
40 private: | 44 private: |
41 // This will set the OS settings when the preference changes. | 45 // This will set the OS settings when the preference changes. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 BooleanPrefMember enable_screen_lock_; | 128 BooleanPrefMember enable_screen_lock_; |
125 | 129 |
126 BooleanPrefMember use_shared_proxies_; | 130 BooleanPrefMember use_shared_proxies_; |
127 | 131 |
128 DISALLOW_COPY_AND_ASSIGN(Preferences); | 132 DISALLOW_COPY_AND_ASSIGN(Preferences); |
129 }; | 133 }; |
130 | 134 |
131 } // namespace chromeos | 135 } // namespace chromeos |
132 | 136 |
133 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ | 137 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ |
OLD | NEW |