| 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"; | 17 const char kHotKeySectionName[] = "general/hotkey"; |
| 18 const char kPreloadEnginesConfigName[] = "preload_engines"; | 18 const char kPreloadEnginesConfigName[] = "preload_engines"; |
| 19 const char kNextEngineInMenuConfigName[] = "next_engine_in_menu"; | |
| 20 const char kPreviousEngineConfigName[] = "previous_engine"; | |
| 21 // The following two variables are for deleting ibus-daemon's default hotkeys. | |
| 22 const char kHotkeyNextEngineInMenu[] = ""; | |
| 23 const char kHotkeyPreviousEngine[] = ""; | |
| 24 | 19 |
| 25 // --------------------------------------------------------------------------- | 20 // --------------------------------------------------------------------------- |
| 26 // For Traditional Chinese input method (ibus-mozc-chewing) | 21 // For Traditional Chinese input method (ibus-mozc-chewing) |
| 27 // --------------------------------------------------------------------------- | 22 // --------------------------------------------------------------------------- |
| 28 const char kChewingSectionName[] = "engine/Chewing"; | 23 const char kChewingSectionName[] = "engine/Chewing"; |
| 29 | 24 |
| 30 // We have to sync the |ibus_config_name|s with those in | 25 // We have to sync the |ibus_config_name|s with those in |
| 31 // ibus-chewing/files/src/Config.cc. | 26 // ibus-chewing/files/src/Config.cc. |
| 32 const LanguageBooleanPrefs kChewingBooleanPrefs[] = { | 27 const LanguageBooleanPrefs kChewingBooleanPrefs[] = { |
| 33 { prefs::kLanguageChewingAutoShiftCur, false, "autoShiftCur", | 28 { prefs::kLanguageChewingAutoShiftCur, false, "autoShiftCur", |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // since input_method::GetHardwareInputMethodId() might return a fallback | 394 // since input_method::GetHardwareInputMethodId() might return a fallback |
| 400 // layout name if local_state->RegisterStringPref(kHardwareKeyboardLayout) | 395 // layout name if local_state->RegisterStringPref(kHardwareKeyboardLayout) |
| 401 // is not called yet. | 396 // is not called yet. |
| 402 local_state->RegisterStringPref(kPreferredKeyboardLayout, | 397 local_state->RegisterStringPref(kPreferredKeyboardLayout, |
| 403 "", | 398 "", |
| 404 PrefService::UNSYNCABLE_PREF); | 399 PrefService::UNSYNCABLE_PREF); |
| 405 } | 400 } |
| 406 | 401 |
| 407 } // namespace language_prefs | 402 } // namespace language_prefs |
| 408 } // namespace chromeos | 403 } // namespace chromeos |
| OLD | NEW |