| 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/accessibility_types.h" | 10 #include "ash/common/accessibility_types.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 false, | 161 false, |
| 162 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 162 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 163 registry->RegisterBooleanPref( | 163 registry->RegisterBooleanPref( |
| 164 prefs::kAccessibilityScreenMagnifierCenterFocus, | 164 prefs::kAccessibilityScreenMagnifierCenterFocus, |
| 165 true, | 165 true, |
| 166 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 166 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 167 registry->RegisterBooleanPref( | 167 registry->RegisterBooleanPref( |
| 168 prefs::kAccessibilityScreenMagnifierEnabled, false, | 168 prefs::kAccessibilityScreenMagnifierEnabled, false, |
| 169 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 169 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 170 registry->RegisterIntegerPref( | 170 registry->RegisterIntegerPref( |
| 171 prefs::kAccessibilityScreenMagnifierType, | 171 prefs::kAccessibilityScreenMagnifierType, ash::kDefaultMagnifierType, |
| 172 ui::kDefaultMagnifierType, | |
| 173 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 172 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 174 registry->RegisterDoublePref(prefs::kAccessibilityScreenMagnifierScale, | 173 registry->RegisterDoublePref(prefs::kAccessibilityScreenMagnifierScale, |
| 175 std::numeric_limits<double>::min()); | 174 std::numeric_limits<double>::min()); |
| 176 registry->RegisterBooleanPref( | 175 registry->RegisterBooleanPref( |
| 177 prefs::kAccessibilityAutoclickEnabled, | 176 prefs::kAccessibilityAutoclickEnabled, |
| 178 false, | 177 false, |
| 179 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 178 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 180 registry->RegisterIntegerPref( | 179 registry->RegisterIntegerPref( |
| 181 prefs::kAccessibilityAutoclickDelayMs, | 180 prefs::kAccessibilityAutoclickDelayMs, |
| 182 ash::AutoclickController::kDefaultAutoclickDelayMs, | 181 ash::AutoclickController::kDefaultAutoclickDelayMs, |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 touch_hud_projection_enabled_.SetValue(enabled); | 769 touch_hud_projection_enabled_.SetValue(enabled); |
| 771 } | 770 } |
| 772 | 771 |
| 773 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { | 772 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { |
| 774 if (active_user != user_) | 773 if (active_user != user_) |
| 775 return; | 774 return; |
| 776 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); | 775 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); |
| 777 } | 776 } |
| 778 | 777 |
| 779 } // namespace chromeos | 778 } // namespace chromeos |
| OLD | NEW |