OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 1, | 144 1, |
145 "hsuSelKeyType", | 145 "hsuSelKeyType", |
146 {{ 1, IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE_1 }, | 146 {{ 1, IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE_1 }, |
147 { 2, IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE_2 }}, | 147 { 2, IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE_2 }}, |
148 IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE, | 148 IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_HSU_SEL_KEY_TYPE, |
149 }; | 149 }; |
150 | 150 |
151 // For Korean input method (ibus-hangul) | 151 // For Korean input method (ibus-hangul) |
152 const char kHangulSectionName[] = "engine/Hangul"; | 152 const char kHangulSectionName[] = "engine/Hangul"; |
153 const char kHangulKeyboardConfigName[] = "HangulKeyboard"; | 153 const char kHangulKeyboardConfigName[] = "HangulKeyboard"; |
| 154 const char kHangulHanjaKeysConfigName[] = "HanjaKeys"; |
| 155 // We add Control+Alt+9 in addition to the two default keys since Hanja key |
| 156 // might not be available on the Chrome OS keyboard and F9 key is reserved by |
| 157 // the window manager. |
| 158 // TODO: Hanja keys are not configurable yet (and we're not sure if it should.) |
| 159 const char kHangulHanjaKeys[] = "F9,Hangul_Hanja,Control+Alt+9"; |
154 | 160 |
155 const struct HangulKeyboardNameIDPair { | 161 const struct HangulKeyboardNameIDPair { |
156 int message_id; | 162 int message_id; |
157 const char* keyboard_id; | 163 const char* keyboard_id; |
158 } kHangulKeyboardNameIDPairs[] = { | 164 } kHangulKeyboardNameIDPairs[] = { |
159 // We have to sync the |keyboard_id|s with those in | 165 // We have to sync the |keyboard_id|s with those in |
160 // ibus-hangul/files/setup/main.py. | 166 // ibus-hangul/files/setup/main.py. |
161 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_2_SET, "2" }, | 167 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_2_SET, "2" }, |
162 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_FINAL, | 168 { IDS_OPTIONS_SETTINGS_LANGUAGES_HANGUL_SETTINGS_KEYBOARD_3_SET_FINAL, |
163 "3f" }, | 169 "3f" }, |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // the login screen. | 403 // the login screen. |
398 const wchar_t kPreferredKeyboardLayout[] = L"PreferredKeyboardLayout"; | 404 const wchar_t kPreferredKeyboardLayout[] = L"PreferredKeyboardLayout"; |
399 | 405 |
400 // A input method name that corresponds the hardware keyboard layout. | 406 // A input method name that corresponds the hardware keyboard layout. |
401 // TODO(yusukes): just assuming US qwerty keyboard is not always correct. | 407 // TODO(yusukes): just assuming US qwerty keyboard is not always correct. |
402 const char kHardwareKeyboardLayout[] = "xkb:us::eng"; | 408 const char kHardwareKeyboardLayout[] = "xkb:us::eng"; |
403 | 409 |
404 } // chromeos | 410 } // chromeos |
405 | 411 |
406 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ | 412 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ |
OLD | NEW |