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

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

Issue 2697413003: [Chrome OS] Expose keyboard auto repeat delay/interval to login screen. (Closed)
Patch Set: Nit. Created 3 years, 10 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
« no previous file with comments | « chrome/browser/chromeos/language_preferences.h ('k') | chrome/browser/chromeos/preferences.cc » ('j') | 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/language_preferences.h" 5 #include "chrome/browser/chromeos/language_preferences.h"
6 #include "components/prefs/pref_registry_simple.h" 6 #include "components/prefs/pref_registry_simple.h"
7 7
8 namespace chromeos { 8 namespace chromeos {
9 namespace language_prefs { 9 namespace language_prefs {
10 10
11 // --------------------------------------------------------------------------- 11 // ---------------------------------------------------------------------------
12 // For ibus-daemon 12 // For ibus-daemon
13 // --------------------------------------------------------------------------- 13 // ---------------------------------------------------------------------------
14 const char kGeneralSectionName[] = "general"; 14 const char kGeneralSectionName[] = "general";
15 const char kPreloadEnginesConfigName[] = "preload_engines"; 15 const char kPreloadEnginesConfigName[] = "preload_engines";
16 16
17 // --------------------------------------------------------------------------- 17 // ---------------------------------------------------------------------------
18 // For keyboard stuff 18 // For keyboard stuff
19 // --------------------------------------------------------------------------- 19 // ---------------------------------------------------------------------------
20 const bool kXkbAutoRepeatEnabled = true;
20 const int kXkbAutoRepeatDelayInMs = 500; 21 const int kXkbAutoRepeatDelayInMs = 500;
21 const int kXkbAutoRepeatIntervalInMs = 50; 22 const int kXkbAutoRepeatIntervalInMs = 50;
22 const char kPreferredKeyboardLayout[] = "PreferredKeyboardLayout"; 23 const char kPreferredKeyboardLayout[] = "PreferredKeyboardLayout";
23 24
24 void RegisterPrefs(PrefRegistrySimple* registry) { 25 void RegisterPrefs(PrefRegistrySimple* registry) {
25 // We use an empty string here rather than a hardware keyboard layout name 26 // We use an empty string here rather than a hardware keyboard layout name
26 // since input_method::GetHardwareInputMethodId() might return a fallback 27 // since input_method::GetHardwareInputMethodId() might return a fallback
27 // layout name if registry->RegisterStringPref(kHardwareKeyboardLayout) 28 // layout name if registry->RegisterStringPref(kHardwareKeyboardLayout)
28 // is not called yet. 29 // is not called yet.
29 registry->RegisterStringPref(kPreferredKeyboardLayout, ""); 30 registry->RegisterStringPref(kPreferredKeyboardLayout, "");
30 } 31 }
31 32
32 } // namespace language_prefs 33 } // namespace language_prefs
33 } // namespace chromeos 34 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/language_preferences.h ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698