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 const char kHangulHanjaKeysConfigName[] = "HanjaKeys"; |
Seigo Nonaka
2011/08/10 08:53:13
Sorry I forget add TODO task here.
Please remove t
Yusuke Sato
2011/08/10 09:18:48
good point. Fixed.
On 2011/08/10 08:53:13, nona1
| |
147 // We add Control+9 since F9 key is reserved by the window manager. | 147 // 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.) | 148 // TODO: HanjaKeys are not configurable yet (and we're not sure if it should.) |
149 const char kHangulHanjaKeys[] = "F9,Hangul_Hanja,Control+9"; | 149 const char kHangulHanjaKeys[] = "F9,Hangul_Hanja,Control+9"; |
150 | 150 |
151 // Mozc-hangul treats Hangul_Hanja key as hanja key event even if it is not set. | 151 // Mozc-hangul treats Hangul_Hanja key as hanja key event even if it is not set. |
152 const char kHangulHanjaBindingKeysConfigName[] = "HanjaKeyBindings"; | 152 const char kHangulHanjaBindingKeysConfigName[] = "HanjaKeyBindings"; |
153 const char kHangulHanjaBindingKeys[] = "F9,Ctrl 9"; | 153 const char kHangulHanjaBindingKeys[] = "F9,Ctrl 9"; |
154 | 154 |
155 const HangulKeyboardNameIDPair kHangulKeyboardNameIDPairs[] = { | 155 const HangulKeyboardNameIDPair kHangulKeyboardNameIDPairs[] = { |
156 // We have to sync the |keyboard_id|s with those in | 156 // 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" }, | 157 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_2_SET, "2" }, |
159 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_FINAL, | 158 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_FINAL, |
160 "3f" }, | 159 "3f" }, |
161 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_390, "39" }, | 160 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_390, "39" }, |
162 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_NO_SHIFT, | 161 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_NO_SHIFT, |
163 "3s" }, | 162 "3s" }, |
164 // We don't support "Sebeolsik 2 set" keyboard. | 163 // We don't support "Sebeolsik 2 set" keyboard. |
165 }; | 164 }; |
166 COMPILE_ASSERT(kNumHangulKeyboardNameIDPairs == | 165 COMPILE_ASSERT(kNumHangulKeyboardNameIDPairs == |
167 arraysize(kHangulKeyboardNameIDPairs), | 166 arraysize(kHangulKeyboardNameIDPairs), |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
417 | 416 |
418 // --------------------------------------------------------------------------- | 417 // --------------------------------------------------------------------------- |
419 // For keyboard stuff | 418 // For keyboard stuff |
420 // --------------------------------------------------------------------------- | 419 // --------------------------------------------------------------------------- |
421 const int kXkbAutoRepeatDelayInMs = 500; | 420 const int kXkbAutoRepeatDelayInMs = 500; |
422 const int kXkbAutoRepeatIntervalInMs = 50; | 421 const int kXkbAutoRepeatIntervalInMs = 50; |
423 const char kPreferredKeyboardLayout[] = "PreferredKeyboardLayout"; | 422 const char kPreferredKeyboardLayout[] = "PreferredKeyboardLayout"; |
424 | 423 |
425 } // namespace language_prefs | 424 } // namespace language_prefs |
426 } // namespace chromeos | 425 } // namespace chromeos |
OLD | NEW |