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 #include "chrome/browser/chromeos/preferences.h" | 5 #include "chrome/browser/chromeos/preferences.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/autoclick/autoclick_controller.h" | 9 #include "ash/autoclick/autoclick_controller.h" |
10 #include "ash/common/wm_shell.h" | 10 #include "ash/common/wm_shell.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 ui::kDefaultMagnifierType, | 171 ui::kDefaultMagnifierType, |
172 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 172 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
173 registry->RegisterDoublePref(prefs::kAccessibilityScreenMagnifierScale, | 173 registry->RegisterDoublePref(prefs::kAccessibilityScreenMagnifierScale, |
174 std::numeric_limits<double>::min()); | 174 std::numeric_limits<double>::min()); |
175 registry->RegisterBooleanPref( | 175 registry->RegisterBooleanPref( |
176 prefs::kAccessibilityAutoclickEnabled, | 176 prefs::kAccessibilityAutoclickEnabled, |
177 false, | 177 false, |
178 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 178 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
179 registry->RegisterIntegerPref( | 179 registry->RegisterIntegerPref( |
180 prefs::kAccessibilityAutoclickDelayMs, | 180 prefs::kAccessibilityAutoclickDelayMs, |
181 ash::AutoclickController::kDefaultAutoclickDelayMs, | 181 int{ash::AutoclickController::GetDefaultAutoclickDelay() |
| 182 .InMilliseconds()}, |
182 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 183 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
183 registry->RegisterBooleanPref( | 184 registry->RegisterBooleanPref( |
184 prefs::kAccessibilityVirtualKeyboardEnabled, | 185 prefs::kAccessibilityVirtualKeyboardEnabled, |
185 false, | 186 false, |
186 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 187 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
187 registry->RegisterBooleanPref( | 188 registry->RegisterBooleanPref( |
188 prefs::kAccessibilityMonoAudioEnabled, | 189 prefs::kAccessibilityMonoAudioEnabled, |
189 false, | 190 false, |
190 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 191 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
191 registry->RegisterBooleanPref( | 192 registry->RegisterBooleanPref( |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 touch_hud_projection_enabled_.SetValue(enabled); | 765 touch_hud_projection_enabled_.SetValue(enabled); |
765 } | 766 } |
766 | 767 |
767 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { | 768 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { |
768 if (active_user != user_) | 769 if (active_user != user_) |
769 return; | 770 return; |
770 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); | 771 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); |
771 } | 772 } |
772 | 773 |
773 } // namespace chromeos | 774 } // namespace chromeos |
OLD | NEW |