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 15 matching lines...) Expand all Loading... |
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 will initialize Chrome OS settings to values in user prefs. | 32 // This method will initialize Chrome OS settings to values in user prefs. |
33 void Init(PrefService* prefs); | 33 void Init(PrefService* prefs); |
34 | 34 |
35 // Overridden from NotificationObserver: | 35 // Overridden from NotificationObserver: |
36 virtual void Observe(NotificationType type, | 36 virtual void Observe(int type, |
37 const NotificationSource& source, | 37 const NotificationSource& source, |
38 const NotificationDetails& details); | 38 const NotificationDetails& details); |
39 | 39 |
40 private: | 40 private: |
41 // This will set the OS settings when the preference changes. | 41 // This will set the OS settings when the preference changes. |
42 // If this method is called with NULL, it will set all OS settings to what's | 42 // If this method is called with NULL, it will set all OS settings to what's |
43 // stored in the preferences. | 43 // stored in the preferences. |
44 void NotifyPrefChanged(const std::string* pref_name); | 44 void NotifyPrefChanged(const std::string* pref_name); |
45 | 45 |
46 // Writes boolean |value| to the input method (IBus) configuration daemon. | 46 // Writes boolean |value| to the input method (IBus) configuration daemon. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 IntegerPrefMember language_xkb_auto_repeat_interval_pref_; | 122 IntegerPrefMember language_xkb_auto_repeat_interval_pref_; |
123 | 123 |
124 BooleanPrefMember enable_screen_lock_; | 124 BooleanPrefMember enable_screen_lock_; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(Preferences); | 126 DISALLOW_COPY_AND_ASSIGN(Preferences); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace chromeos | 129 } // namespace chromeos |
130 | 130 |
131 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ | 131 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ |
OLD | NEW |