OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONSTANTS_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONSTANTS_H_ | |
7 | |
8 // TODO(yusukes): Rename this file to input_method_preference.cc. Since | |
Seigo Nonaka
2012/12/17 12:29:45
nit: please remove this todo comment.
erikwright (departed)
2012/12/17 15:10:12
Done.
| |
9 // "language" usually means UI language, the current file name is confusing. | |
10 // The namespace should also be changed to "namespace input_method {". | |
11 | |
12 // This file defines types and declare variables used in "Languages and | |
13 // Input" settings in Chromium OS. | |
14 namespace chromeos { | |
15 namespace input_method { | |
16 | |
17 // --------------------------------------------------------------------------- | |
18 // For ibus-daemon | |
19 // --------------------------------------------------------------------------- | |
20 extern const char kGeneralSectionName[]; | |
21 extern const char kPreloadEnginesConfigName[]; | |
22 | |
23 // --------------------------------------------------------------------------- | |
24 // For Traditional Chinese input method (ibus-mozc-chewing) | |
25 // --------------------------------------------------------------------------- | |
26 extern const char kChewingSectionName[]; | |
27 | |
28 // We have to sync the |ibus_config_name|s with those in | |
29 // ibus-chewing/files/src/Config.cc. | |
30 extern const char kChewingAutoShiftCur[]; | |
31 extern const char kChewingAddPhraseDirection[]; | |
32 extern const char kChewingEasySymbolInput[]; | |
33 extern const char kChewingEscCleanAllBuf[]; | |
34 extern const char kChewingForceLowercaseEnglish[]; | |
35 extern const char kChewingPlainZhuyin[]; | |
36 extern const char kChewingPhraseChoiceRearward[]; | |
37 extern const char kChewingSpaceAsSelection[]; | |
38 extern const char kChewingMaxChiSymbolLen[]; | |
39 extern const char kChewingCandPerPage[]; | |
40 extern const char kChewingKeyboardType[]; | |
41 extern const char kChewingKeyboardTypeDefault[]; | |
42 extern const char kChewingKeyboardTypeHsu[]; | |
43 extern const char kChewingKeyboardTypeIbm[]; | |
44 extern const char kChewingKeyboardTypeGinYieh[]; | |
45 extern const char kChewingKeyboardTypeEten[]; | |
46 extern const char kChewingKeyboardTypeEten26[]; | |
47 extern const char kChewingKeyboardTypeDvorak[]; | |
48 extern const char kChewingKeyboardTypeDvorakHsu[]; | |
49 extern const char kChewingKeyboardTypeDachen26[]; | |
50 extern const char kChewingKeyboardTypeHanyu[]; | |
51 | |
52 extern const char kChewingSelKeys[]; | |
53 extern const char kChewingSelKeys1234567890[]; | |
54 extern const char kChewingSelKeysAsdfghjkl_[]; | |
55 extern const char kChewingSelKeysAsdfzxcv89[]; | |
56 extern const char kChewingSelKeysAsdfjkl789[]; | |
57 extern const char kChewingSelKeysAoeu_qjkix[]; | |
58 extern const char kChewingSelKeysAoeuhtnsid[]; | |
59 extern const char kChewingSelKeysAoeuidhtns[]; | |
60 extern const char kChewingSelKeys1234qweras[]; | |
61 | |
62 extern const char kChewingHsuSelKeyType[]; | |
63 extern const int kChewingHsuSelKeyType1; | |
64 extern const int kChewingHsuSelKeyType2; | |
65 | |
66 // --------------------------------------------------------------------------- | |
67 // For Korean input method (ibus-mozc-hangul) | |
68 // --------------------------------------------------------------------------- | |
69 extern const char kHangulSectionName[]; | |
70 extern const char kHangulKeyboardConfigName[]; | |
71 | |
72 extern const char kHangulHanjaBindingKeysConfigName[]; | |
73 // Mozc-hangul treats Hangul_Hanja key as hanja key event even if it is not set. | |
74 // We add Control+9 since F9 key is reserved by the window manager. | |
75 // TODO(nona): Hanja keys are not configurable yet (and we're not sure if it | |
76 // should.) | |
77 extern const char kHangulHanjaBindingKeys[]; | |
78 | |
79 // We have to sync the |keyboard_id|s with those in libhangul. | |
Seigo Nonaka
2012/12/17 12:29:45
nit: please fix indent.
erikwright (departed)
2012/12/17 15:10:12
Done.
| |
80 extern const char kHangulKeyboard2Set[]; | |
81 extern const char kHangulKeyboard3SetFinal[]; | |
82 extern const char kHangulKeyboard3Set390[]; | |
83 extern const char kHangulKeyboard3SetNoShift[]; | |
84 extern const char kHangulKeyboardRomaja[]; | |
85 // We don't support "Sebeolsik 2 set" keyboard. | |
Seigo Nonaka
2012/12/17 12:29:45
ditto.
erikwright (departed)
2012/12/17 15:10:12
Done.
| |
86 | |
87 // --------------------------------------------------------------------------- | |
88 // For Simplified Chinese input method (ibus-mozc-pinyin) | |
89 // --------------------------------------------------------------------------- | |
90 extern const char kPinyinSectionName[]; | |
91 | |
92 // We have to sync the |ibus_config_name|s with those in | |
93 // ibus-mozc-pinyin/files/languages/pinyin/unix/ibus/config_updater.cc. | |
94 extern const char kPinyinCorrectPinyin[]; | |
95 extern const char kPinyinFuzzyPinyin[]; | |
96 extern const char kPinyinShiftSelectCandidate[]; | |
97 extern const char kPinyinMinusEqualPage[]; | |
98 extern const char kPinyinCommaPeriodPage[]; | |
99 extern const char kPinyinAutoCommit[]; | |
100 extern const char kPinyinDoublePinyin[]; | |
101 extern const char kPinyinInitChinese[]; | |
102 extern const char kPinyinInitFull[]; | |
103 extern const char kPinyinInitFullPunct[]; | |
104 extern const char kPinyinInitSimplifiedChinese[]; | |
105 // TODO(yusukes): Support PINYIN_{INCOMPLETE,CORRECT,FUZZY}_... prefs (32 | |
Seigo Nonaka
2012/12/17 12:29:45
ditto.
erikwright (departed)
2012/12/17 15:10:12
Done.
| |
106 // additional boolean prefs.) | |
107 // TODO(yusukes): Support HalfWidthPuncts and IncompletePinyin prefs if needed. | |
108 | |
109 extern const char kPinyinDoublePinyinSchema[]; | |
110 extern const int kPinyinDoublePinyinSchemaMspy; | |
111 extern const int kPinyinDoublePinyinSchemaZrm; | |
112 extern const int kPinyinDoublePinyinSchemaAbc; | |
113 extern const int kPinyinDoublePinyinSchemaZgpy; | |
114 extern const int kPinyinDoublePinyinSchemaPyjj; | |
115 extern const char kPinyinLookupTablePageSize[]; | |
116 | |
117 // --------------------------------------------------------------------------- | |
118 // For Japanese input method (ibus-mozc) | |
119 // --------------------------------------------------------------------------- | |
120 extern const char kMozcSectionName[]; | |
121 | |
122 extern const char kMozcIncognitoMode[]; | |
123 extern const char kMozcUseAutoImeTurnOff[]; | |
124 extern const char kMozcUseHistorySuggest[]; | |
125 extern const char kMozcUseDictionarySuggest[]; | |
126 | |
127 extern const char kMozcPreeditMethod[]; | |
128 extern const char kMozcPreeditMethodRoman[]; | |
129 extern const char kMozcPreeditMethodKana[]; | |
130 | |
131 extern const char kMozcSessionKeymap[]; | |
132 extern const char kMozcSessionKeymapAtok[]; | |
133 extern const char kMozcSessionKeymapMsime[]; | |
134 extern const char kMozcSessionKeymapKotoeri[]; | |
135 | |
136 extern const char kMozcPunctuationMethod[]; | |
137 extern const char kMozcPunctuationMethodKutenTouten[]; | |
138 extern const char kMozcPunctuationMethodCommaPeriod[]; | |
139 extern const char kMozcPunctuationMethodKutenPeriod[]; | |
140 extern const char kMozcPunctuationMethodCommaTouten[]; | |
141 | |
142 extern const char kMozcSymbolMethod[]; | |
143 extern const char kMozcSymbolMethodCornerBracketMiddleDot[]; | |
144 extern const char kMozcSymbolMethodSquareBracketSlash[]; | |
145 extern const char kMozcSymbolMethodCornerBracketSlash[]; | |
146 extern const char kMozcSymbolMethodSquareBracketMiddleDot[]; | |
147 | |
148 extern const char kMozcSpaceCharacterForm[]; | |
149 extern const char kMozcSpaceCharacterFormFundamentalInputMode[]; | |
150 extern const char kMozcSpaceCharacterFormFundamentalFullWidth[]; | |
151 extern const char kMozcSpaceCharacterFormFundamentalHalfWidth[]; | |
152 | |
153 extern const char kMozcHistoryLearningLevel[]; | |
154 extern const char kMozcHistoryLearningLevelDefaultHistory[]; | |
155 extern const char kMozcHistoryLearningLevelReadOnly[]; | |
156 extern const char kMozcHistoryLearningLevelNoHistory[]; | |
157 | |
158 extern const char kMozcSelectionShortcut[]; | |
159 extern const char kMozcSelectionShortcutNoShortcut[]; | |
160 extern const char kMozcSelectionShortcutShortcut123456789[]; | |
161 extern const char kMozcSelectionShortcutShortcutAsdfghjkl[]; | |
162 | |
163 | |
164 extern const char kMozcShiftKeyModeSwitch[]; | |
165 extern const char kMozcShiftKeyModeSwitchOff[]; | |
166 extern const char kMozcShiftKeyModeSwitchAsciiInputMode[]; | |
167 extern const char kMozcShiftKeyModeSwitchKatakanaInputMode[]; | |
168 | |
169 extern const char kMozcNumpadCharacterForm[]; | |
170 extern const char kMozcNumpadCharacterFormNumpadInputMode[]; | |
171 extern const char kMozcNumpadCharacterFormNumpadFullWidth[]; | |
172 extern const char kMozcNumpadCharacterFormNumpadHalfWidth[]; | |
173 extern const char kMozcNumpadCharacterFormNumpadDirectInput[]; | |
174 | |
175 extern const char kMozcSuggestionsSize[]; | |
176 | |
177 } // input_method | |
178 } // chromeos | |
179 | |
180 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_CONSTANTS_H_ | |
OLD | NEW |