| 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> | |
| 10 | 9 |
| 11 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
| 12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 13 #include "base/prefs/pref_member.h" | 12 #include "base/prefs/pref_member.h" |
| 14 #include "chrome/browser/chromeos/language_preferences.h" | 13 #include "chrome/browser/chromeos/language_preferences.h" |
| 15 #include "chrome/browser/prefs/pref_service_syncable_observer.h" | 14 #include "chrome/browser/prefs/pref_service_syncable_observer.h" |
| 16 #include "components/user_manager/user_manager.h" | 15 #include "components/user_manager/user_manager.h" |
| 17 #include "ui/base/ime/chromeos/input_method_manager.h" | 16 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 18 | 17 |
| 19 class PrefRegistrySimple; | 18 class PrefRegistrySimple; |
| 20 class PrefService; | 19 class PrefService; |
| 21 class PrefServiceSyncable; | 20 class PrefServiceSyncable; |
| 22 | 21 |
| 23 class TracingManager; | 22 class TracingManager; |
| 24 | 23 |
| 25 namespace user_prefs { | 24 namespace user_prefs { |
| 26 class PrefRegistrySyncable; | 25 class PrefRegistrySyncable; |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace chromeos { | 28 namespace chromeos { |
| 30 | 29 |
| 31 class User; | 30 class User; |
| 32 | 31 |
| 33 namespace input_method { | 32 namespace input_method { |
| 34 class InputMethodManager; | 33 class InputMethodManager; |
| 34 class InputMethodSyncer; |
| 35 } | 35 } |
| 36 | 36 |
| 37 // The Preferences class handles Chrome OS preferences. When the class | 37 // The Preferences class handles Chrome OS preferences. When the class |
| 38 // is first initialized, it will initialize the OS settings to what's stored in | 38 // is first initialized, it will initialize the OS settings to what's stored in |
| 39 // the preferences. These include touchpad settings, etc. | 39 // the preferences. These include touchpad settings, etc. |
| 40 // When the preferences change, we change the settings to reflect the new value. | 40 // When the preferences change, we change the settings to reflect the new value. |
| 41 class Preferences : public PrefServiceSyncableObserver, | 41 class Preferences : public PrefServiceSyncableObserver, |
| 42 public ash::ShellObserver, | 42 public ash::ShellObserver, |
| 43 public user_manager::UserManager::UserSessionStateObserver { | 43 public user_manager::UserManager::UserSessionStateObserver { |
| 44 public: | 44 public: |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 // User owning these preferences. | 145 // User owning these preferences. |
| 146 const user_manager::User* user_; | 146 const user_manager::User* user_; |
| 147 | 147 |
| 148 // Whether user is a primary user. | 148 // Whether user is a primary user. |
| 149 bool user_is_primary_; | 149 bool user_is_primary_; |
| 150 | 150 |
| 151 // Input Methods state for this user. | 151 // Input Methods state for this user. |
| 152 scoped_refptr<input_method::InputMethodManager::State> ime_state_; | 152 scoped_refptr<input_method::InputMethodManager::State> ime_state_; |
| 153 | 153 |
| 154 scoped_ptr<input_method::InputMethodSyncer> input_method_syncer_; |
| 155 |
| 154 DISALLOW_COPY_AND_ASSIGN(Preferences); | 156 DISALLOW_COPY_AND_ASSIGN(Preferences); |
| 155 }; | 157 }; |
| 156 | 158 |
| 157 } // namespace chromeos | 159 } // namespace chromeos |
| 158 | 160 |
| 159 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ | 161 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ |
| OLD | NEW |