OLD | NEW |
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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "chrome/browser/chromeos/language_preferences.h" | 6 #include "chrome/browser/chromeos/language_preferences.h" |
7 #include "chrome/common/pref_names.h" | 7 #include "chrome/common/pref_names.h" |
8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 namespace language_prefs { | 11 namespace language_prefs { |
12 | 12 |
13 // --------------------------------------------------------------------------- | 13 // --------------------------------------------------------------------------- |
14 // For ibus-daemon | 14 // For ibus-daemon |
15 // --------------------------------------------------------------------------- | 15 // --------------------------------------------------------------------------- |
16 const char kGeneralSectionName[] = "general"; | 16 const char kGeneralSectionName[] = "general"; |
17 const char kHotKeySectionName[] = "general/hotkey"; | |
18 const char kPreloadEnginesConfigName[] = "preload_engines"; | 17 const char kPreloadEnginesConfigName[] = "preload_engines"; |
19 | 18 |
20 // --------------------------------------------------------------------------- | 19 // --------------------------------------------------------------------------- |
21 // For Traditional Chinese input method (ibus-mozc-chewing) | 20 // For Traditional Chinese input method (ibus-mozc-chewing) |
22 // --------------------------------------------------------------------------- | 21 // --------------------------------------------------------------------------- |
23 const char kChewingSectionName[] = "engine/Chewing"; | 22 const char kChewingSectionName[] = "engine/Chewing"; |
24 | 23 |
25 // We have to sync the |ibus_config_name|s with those in | 24 // We have to sync the |ibus_config_name|s with those in |
26 // ibus-chewing/files/src/Config.cc. | 25 // ibus-chewing/files/src/Config.cc. |
27 const LanguageBooleanPrefs kChewingBooleanPrefs[] = { | 26 const LanguageBooleanPrefs kChewingBooleanPrefs[] = { |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 // since input_method::GetHardwareInputMethodId() might return a fallback | 393 // since input_method::GetHardwareInputMethodId() might return a fallback |
395 // layout name if local_state->RegisterStringPref(kHardwareKeyboardLayout) | 394 // layout name if local_state->RegisterStringPref(kHardwareKeyboardLayout) |
396 // is not called yet. | 395 // is not called yet. |
397 local_state->RegisterStringPref(kPreferredKeyboardLayout, | 396 local_state->RegisterStringPref(kPreferredKeyboardLayout, |
398 "", | 397 "", |
399 PrefService::UNSYNCABLE_PREF); | 398 PrefService::UNSYNCABLE_PREF); |
400 } | 399 } |
401 | 400 |
402 } // namespace language_prefs | 401 } // namespace language_prefs |
403 } // namespace chromeos | 402 } // namespace chromeos |
OLD | NEW |