Chromium Code Reviews

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

Issue 5146003: Changed the default for tap-to-click to true. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/string_split.h" 7 #include "base/string_split.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 12 matching lines...)
23 namespace chromeos { 23 namespace chromeos {
24 24
25 static const char kFallbackInputMethodLocale[] = "en-US"; 25 static const char kFallbackInputMethodLocale[] = "en-US";
26 26
27 Preferences::Preferences() {} 27 Preferences::Preferences() {}
28 28
29 Preferences::~Preferences() {} 29 Preferences::~Preferences() {}
30 30
31 // static 31 // static
32 void Preferences::RegisterUserPrefs(PrefService* prefs) { 32 void Preferences::RegisterUserPrefs(PrefService* prefs) {
33 prefs->RegisterBooleanPref(prefs::kTapToClickEnabled, false); 33 prefs->RegisterBooleanPref(prefs::kTapToClickEnabled, true);
34 prefs->RegisterBooleanPref(prefs::kLabsMediaplayerEnabled, false); 34 prefs->RegisterBooleanPref(prefs::kLabsMediaplayerEnabled, false);
35 prefs->RegisterBooleanPref(prefs::kLabsAdvancedFilesystemEnabled, false); 35 prefs->RegisterBooleanPref(prefs::kLabsAdvancedFilesystemEnabled, false);
36 // Check if the accessibility pref is already registered, which can happen 36 // Check if the accessibility pref is already registered, which can happen
37 // in WizardController::RegisterPrefs. We still want to try to register 37 // in WizardController::RegisterPrefs. We still want to try to register
38 // the pref here in case of Chrome/Linux with ChromeOS=1. 38 // the pref here in case of Chrome/Linux with ChromeOS=1.
39 if (prefs->FindPreference(prefs::kAccessibilityEnabled) == NULL) { 39 if (prefs->FindPreference(prefs::kAccessibilityEnabled) == NULL) {
40 prefs->RegisterBooleanPref(prefs::kAccessibilityEnabled, false); 40 prefs->RegisterBooleanPref(prefs::kAccessibilityEnabled, false);
41 } 41 }
42 prefs->RegisterIntegerPref(prefs::kTouchpadSensitivity, 3); 42 prefs->RegisterIntegerPref(prefs::kTouchpadSensitivity, 3);
43 prefs->RegisterStringPref(prefs::kLanguageCurrentInputMethod, ""); 43 prefs->RegisterStringPref(prefs::kLanguageCurrentInputMethod, "");
(...skipping 385 matching lines...)
429 AutoRepeatRate rate; 429 AutoRepeatRate rate;
430 rate.initial_delay_in_ms = language_xkb_auto_repeat_delay_pref_.GetValue(); 430 rate.initial_delay_in_ms = language_xkb_auto_repeat_delay_pref_.GetValue();
431 rate.repeat_interval_in_ms = 431 rate.repeat_interval_in_ms =
432 language_xkb_auto_repeat_interval_pref_.GetValue(); 432 language_xkb_auto_repeat_interval_pref_.GetValue();
433 DCHECK(rate.initial_delay_in_ms > 0); 433 DCHECK(rate.initial_delay_in_ms > 0);
434 DCHECK(rate.repeat_interval_in_ms > 0); 434 DCHECK(rate.repeat_interval_in_ms > 0);
435 CrosLibrary::Get()->GetKeyboardLibrary()->SetAutoRepeatRate(rate); 435 CrosLibrary::Get()->GetKeyboardLibrary()->SetAutoRepeatRate(rate);
436 } 436 }
437 437
438 } // namespace chromeos 438 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine