Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_util.h

Issue 190033005: [IME] Removes the duplicated IMEs in chrome://settings/languages, and support async component IMEs … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698