Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/chromeos/preferences.cc

Issue 1785833002: Add 5 experimental accessibility features on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change option_name to option-name Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/display/display_manager.h" 10 #include "ash/display/display_manager.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 170 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
171 registry->RegisterIntegerPref( 171 registry->RegisterIntegerPref(
172 prefs::kAccessibilityAutoclickDelayMs, 172 prefs::kAccessibilityAutoclickDelayMs,
173 ash::AutoclickController::kDefaultAutoclickDelayMs, 173 ash::AutoclickController::kDefaultAutoclickDelayMs,
174 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 174 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
175 registry->RegisterBooleanPref( 175 registry->RegisterBooleanPref(
176 prefs::kAccessibilityVirtualKeyboardEnabled, 176 prefs::kAccessibilityVirtualKeyboardEnabled,
177 false, 177 false,
178 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 178 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
179 registry->RegisterBooleanPref( 179 registry->RegisterBooleanPref(
180 prefs::kShouldAlwaysShowAccessibilityMenu, 180 prefs::kAccessibilityCaretHighlightEnabled, false,
181 false, 181 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
182 registry->RegisterBooleanPref(
183 prefs::kAccessibilityCursorHighlightEnabled, false,
184 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
185 registry->RegisterBooleanPref(
186 prefs::kAccessibilityFocusHighlightEnabled, false,
187 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
188 registry->RegisterBooleanPref(
189 prefs::kAccessibilitySelectToSpeakEnabled, false,
190 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
191 registry->RegisterBooleanPref(
192 prefs::kAccessibilitySwitchAccessEnabled, false,
193 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
194 registry->RegisterBooleanPref(
195 prefs::kShouldAlwaysShowAccessibilityMenu, false,
182 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 196 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
183 registry->RegisterIntegerPref( 197 registry->RegisterIntegerPref(
184 prefs::kMouseSensitivity, 198 prefs::kMouseSensitivity,
185 3, 199 3,
186 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); 200 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
187 registry->RegisterIntegerPref( 201 registry->RegisterIntegerPref(
188 prefs::kTouchpadSensitivity, 202 prefs::kTouchpadSensitivity,
189 3, 203 3,
190 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); 204 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
191 registry->RegisterBooleanPref( 205 registry->RegisterBooleanPref(
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 touch_hud_projection_enabled_.SetValue(enabled); 740 touch_hud_projection_enabled_.SetValue(enabled);
727 } 741 }
728 742
729 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { 743 void Preferences::ActiveUserChanged(const user_manager::User* active_user) {
730 if (active_user != user_) 744 if (active_user != user_)
731 return; 745 return;
732 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); 746 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, "");
733 } 747 }
734 748
735 } // namespace chromeos 749 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/info_private_api.cc ('k') | chrome/browser/resources/options/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698