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

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

Issue 11316309: Fix the bug that A11y tray is enabled by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indent Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/chromeos/chromeos_version.h" 7 #include "base/chromeos/chromeos_version.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/i18n/time_formatting.h" 9 #include "base/i18n/time_formatting.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 PrefService::UNSYNCABLE_PREF); 110 PrefService::UNSYNCABLE_PREF);
111 } 111 }
112 if (prefs->FindPreference(prefs::kMagnifierType) == NULL) { 112 if (prefs->FindPreference(prefs::kMagnifierType) == NULL) {
113 prefs->RegisterStringPref(prefs::kMagnifierType, 113 prefs->RegisterStringPref(prefs::kMagnifierType,
114 "", 114 "",
115 PrefService::SYNCABLE_PREF); 115 PrefService::SYNCABLE_PREF);
116 } 116 }
117 if (prefs->FindPreference(prefs::kShouldAlwaysShowAccessibilityMenu) == 117 if (prefs->FindPreference(prefs::kShouldAlwaysShowAccessibilityMenu) ==
118 NULL) { 118 NULL) {
119 prefs->RegisterBooleanPref(prefs::kShouldAlwaysShowAccessibilityMenu, 119 prefs->RegisterBooleanPref(prefs::kShouldAlwaysShowAccessibilityMenu,
120 "", 120 false,
121 PrefService::UNSYNCABLE_PREF); 121 PrefService::UNSYNCABLE_PREF);
122 } 122 }
123 if (prefs->FindPreference(prefs::kVirtualKeyboardEnabled) == NULL) { 123 if (prefs->FindPreference(prefs::kVirtualKeyboardEnabled) == NULL) {
124 prefs->RegisterBooleanPref(prefs::kVirtualKeyboardEnabled, 124 prefs->RegisterBooleanPref(prefs::kVirtualKeyboardEnabled,
125 false, 125 false,
126 PrefService::UNSYNCABLE_PREF); 126 PrefService::UNSYNCABLE_PREF);
127 } 127 }
128 prefs->RegisterIntegerPref(prefs::kMouseSensitivity, 128 prefs->RegisterIntegerPref(prefs::kMouseSensitivity,
129 3, 129 3,
130 PrefService::SYNCABLE_PREF); 130 PrefService::SYNCABLE_PREF);
131 prefs->RegisterIntegerPref(prefs::kTouchpadSensitivity, 131 prefs->RegisterIntegerPref(prefs::kTouchpadSensitivity,
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 776
777 input_method::AutoRepeatRate rate; 777 input_method::AutoRepeatRate rate;
778 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue(); 778 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue();
779 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue(); 779 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue();
780 DCHECK(rate.initial_delay_in_ms > 0); 780 DCHECK(rate.initial_delay_in_ms > 0);
781 DCHECK(rate.repeat_interval_in_ms > 0); 781 DCHECK(rate.repeat_interval_in_ms > 0);
782 input_method::XKeyboard::SetAutoRepeatRate(rate); 782 input_method::XKeyboard::SetAutoRepeatRate(rate);
783 } 783 }
784 784
785 } // namespace chromeos 785 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698