| 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 "ash/autoclick/autoclick_controller.h" |
| 7 #include "ash/magnifier/magnifier_constants.h" | 8 #include "ash/magnifier/magnifier_constants.h" |
| 8 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 9 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 10 #include "base/i18n/time_formatting.h" | 11 #include "base/i18n/time_formatting.h" |
| 11 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 12 #include "base/prefs/pref_member.h" | 13 #include "base/prefs/pref_member.h" |
| 13 #include "base/prefs/pref_registry_simple.h" | 14 #include "base/prefs/pref_registry_simple.h" |
| 14 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 15 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 ash::kDefaultMagnifierType, | 156 ash::kDefaultMagnifierType, |
| 156 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 157 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 157 registry->RegisterDoublePref( | 158 registry->RegisterDoublePref( |
| 158 prefs::kScreenMagnifierScale, | 159 prefs::kScreenMagnifierScale, |
| 159 std::numeric_limits<double>::min(), | 160 std::numeric_limits<double>::min(), |
| 160 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 161 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 161 registry->RegisterBooleanPref( | 162 registry->RegisterBooleanPref( |
| 162 prefs::kAutoclickEnabled, | 163 prefs::kAutoclickEnabled, |
| 163 false, | 164 false, |
| 164 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 165 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 166 registry->RegisterIntegerPref( |
| 167 prefs::kAutoclickDelayMs, |
| 168 ash::AutoclickController::kDefaultAutoclickDelayMs, |
| 169 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 165 registry->RegisterBooleanPref( | 170 registry->RegisterBooleanPref( |
| 166 prefs::kShouldAlwaysShowAccessibilityMenu, | 171 prefs::kShouldAlwaysShowAccessibilityMenu, |
| 167 false, | 172 false, |
| 168 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 173 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 169 registry->RegisterIntegerPref( | 174 registry->RegisterIntegerPref( |
| 170 prefs::kMouseSensitivity, | 175 prefs::kMouseSensitivity, |
| 171 3, | 176 3, |
| 172 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); | 177 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); |
| 173 registry->RegisterIntegerPref( | 178 registry->RegisterIntegerPref( |
| 174 prefs::kTouchpadSensitivity, | 179 prefs::kTouchpadSensitivity, |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 } | 644 } |
| 640 | 645 |
| 641 void Preferences::OnTouchHudProjectionToggled(bool enabled) { | 646 void Preferences::OnTouchHudProjectionToggled(bool enabled) { |
| 642 if (touch_hud_projection_enabled_.GetValue() == enabled) | 647 if (touch_hud_projection_enabled_.GetValue() == enabled) |
| 643 return; | 648 return; |
| 644 | 649 |
| 645 touch_hud_projection_enabled_.SetValue(enabled); | 650 touch_hud_projection_enabled_.SetValue(enabled); |
| 646 } | 651 } |
| 647 | 652 |
| 648 } // namespace chromeos | 653 } // namespace chromeos |
| OLD | NEW |