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 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ |
7 | 7 |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 std::string, InputMethodDescriptor> InputMethodIdToDescriptorMap; | 183 std::string, InputMethodDescriptor> InputMethodIdToDescriptorMap; |
184 // Map from XKB layout ID to associated input method descriptor. | 184 // Map from XKB layout ID to associated input method descriptor. |
185 typedef std::map<std::string, InputMethodDescriptor> XkbIdToDescriptorMap; | 185 typedef std::map<std::string, InputMethodDescriptor> XkbIdToDescriptorMap; |
186 // Map from component extention IME id to associated input method descriptor. | 186 // Map from component extention IME id to associated input method descriptor. |
187 typedef std::map<std::string, InputMethodDescriptor> ComponentExtIMEMap; | 187 typedef std::map<std::string, InputMethodDescriptor> ComponentExtIMEMap; |
188 | 188 |
189 LanguageCodeToIdsMap language_code_to_ids_; | 189 LanguageCodeToIdsMap language_code_to_ids_; |
190 std::map<std::string, std::string> id_to_language_code_; | 190 std::map<std::string, std::string> id_to_language_code_; |
191 InputMethodIdToDescriptorMap id_to_descriptor_; | 191 InputMethodIdToDescriptorMap id_to_descriptor_; |
192 XkbIdToDescriptorMap xkb_id_to_descriptor_; | 192 XkbIdToDescriptorMap xkb_id_to_descriptor_; |
193 ComponentExtIMEMap component_extension_ime_id_to_descriptor_; | 193 std::map<std::string, std::string> xkb_layout_to_indicator_; |
194 | 194 |
195 typedef base::hash_map<std::string, int> HashType; | 195 typedef base::hash_map<std::string, int> HashType; |
196 HashType english_to_resource_id_; | 196 HashType english_to_resource_id_; |
197 | 197 |
198 InputMethodDelegate* delegate_; | 198 InputMethodDelegate* delegate_; |
199 | 199 |
200 base::ThreadChecker thread_checker_; | 200 base::ThreadChecker thread_checker_; |
201 std::vector<std::string> hardware_layouts_; | 201 std::vector<std::string> hardware_layouts_; |
202 std::vector<std::string> hardware_login_layouts_; | 202 std::vector<std::string> hardware_login_layouts_; |
203 | 203 |
204 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil); | 204 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil); |
205 }; | 205 }; |
206 | 206 |
207 } // namespace input_method | 207 } // namespace input_method |
208 } // namespace chromeos | 208 } // namespace chromeos |
209 | 209 |
210 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ | 210 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ |
OLD | NEW |