OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 { 2, IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE_2 }}, | 136 { 2, IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE_2 }}, |
137 IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE, | 137 IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE, |
138 PrefService::SYNCABLE_PREF, | 138 PrefService::SYNCABLE_PREF, |
139 }; | 139 }; |
140 | 140 |
141 // --------------------------------------------------------------------------- | 141 // --------------------------------------------------------------------------- |
142 // For Korean input method (ibus-mozc-hangul) | 142 // For Korean input method (ibus-mozc-hangul) |
143 // --------------------------------------------------------------------------- | 143 // --------------------------------------------------------------------------- |
144 const char kHangulSectionName[] = "engine/Hangul"; | 144 const char kHangulSectionName[] = "engine/Hangul"; |
145 const char kHangulKeyboardConfigName[] = "HangulKeyboard"; | 145 const char kHangulKeyboardConfigName[] = "HangulKeyboard"; |
146 const char kHangulHanjaKeysConfigName[] = "HanjaKeys"; | 146 |
| 147 const char kHangulHanjaBindingKeysConfigName[] = "HanjaKeyBindings"; |
| 148 // Mozc-hangul treats Hangul_Hanja key as hanja key event even if it is not set. |
147 // We add Control+9 since F9 key is reserved by the window manager. | 149 // We add Control+9 since F9 key is reserved by the window manager. |
148 // TODO: HanjaKeys are not configurable yet (and we're not sure if it should.) | 150 // TODO(nona): Hanja keys are not configurable yet (and we're not sure if it |
149 const char kHangulHanjaKeys[] = "F9,Hangul_Hanja,Control+9"; | 151 // should.) |
150 | |
151 // Mozc-hangul treats Hangul_Hanja key as hanja key event even if it is not set. | |
152 const char kHangulHanjaBindingKeysConfigName[] = "HanjaKeyBindings"; | |
153 const char kHangulHanjaBindingKeys[] = "F9,Ctrl 9"; | 152 const char kHangulHanjaBindingKeys[] = "F9,Ctrl 9"; |
154 | 153 |
155 const HangulKeyboardNameIDPair kHangulKeyboardNameIDPairs[] = { | 154 const HangulKeyboardNameIDPair kHangulKeyboardNameIDPairs[] = { |
156 // We have to sync the |keyboard_id|s with those in | 155 // We have to sync the |keyboard_id|s with those in libhangul. |
157 // ibus-hangul/files/setup/main.py. | |
158 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_2_SET, "2" }, | 156 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_2_SET, "2" }, |
159 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_FINAL, | 157 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_FINAL, |
160 "3f" }, | 158 "3f" }, |
161 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_390, "39" }, | 159 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_390, "39" }, |
162 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_NO_SHIFT, | 160 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_NO_SHIFT, |
163 "3s" }, | 161 "3s" }, |
164 // We don't support "Sebeolsik 2 set" keyboard. | 162 // We don't support "Sebeolsik 2 set" keyboard. |
165 }; | 163 }; |
166 COMPILE_ASSERT(kNumHangulKeyboardNameIDPairs == | 164 COMPILE_ASSERT(kNumHangulKeyboardNameIDPairs == |
167 arraysize(kHangulKeyboardNameIDPairs), | 165 arraysize(kHangulKeyboardNameIDPairs), |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 | 415 |
418 // --------------------------------------------------------------------------- | 416 // --------------------------------------------------------------------------- |
419 // For keyboard stuff | 417 // For keyboard stuff |
420 // --------------------------------------------------------------------------- | 418 // --------------------------------------------------------------------------- |
421 const int kXkbAutoRepeatDelayInMs = 500; | 419 const int kXkbAutoRepeatDelayInMs = 500; |
422 const int kXkbAutoRepeatIntervalInMs = 50; | 420 const int kXkbAutoRepeatIntervalInMs = 50; |
423 const char kPreferredKeyboardLayout[] = "PreferredKeyboardLayout"; | 421 const char kPreferredKeyboardLayout[] = "PreferredKeyboardLayout"; |
424 | 422 |
425 } // namespace language_prefs | 423 } // namespace language_prefs |
426 } // namespace chromeos | 424 } // namespace chromeos |
OLD | NEW |