Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / chromeos / language_preferences.cc
blob559b4aeb4e75c39937e1f078bff02eda7c95a042
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
3 // found in the LICENSE file.
5 #include "base/prefs/pref_registry_simple.h"
6 #include "chrome/browser/chromeos/language_preferences.h"
8 namespace chromeos {
9 namespace language_prefs {
11 // ---------------------------------------------------------------------------
12 // For ibus-daemon
13 // ---------------------------------------------------------------------------
14 const char kGeneralSectionName[] = "general";
15 const char kPreloadEnginesConfigName[] = "preload_engines";
17 // ---------------------------------------------------------------------------
18 // For keyboard stuff
19 // ---------------------------------------------------------------------------
20 const int kXkbAutoRepeatDelayInMs = 500;
21 const int kXkbAutoRepeatIntervalInMs = 50;
22 const char kPreferredKeyboardLayout[] = "PreferredKeyboardLayout";
24 void RegisterPrefs(PrefRegistrySimple* registry) {
25 // We use an empty string here rather than a hardware keyboard layout name
26 // since input_method::GetHardwareInputMethodId() might return a fallback
27 // layout name if registry->RegisterStringPref(kHardwareKeyboardLayout)
28 // is not called yet.
29 registry->RegisterStringPref(kPreferredKeyboardLayout, "");
32 } // namespace language_prefs
33 } // namespace chromeos