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 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 5 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // component extension IME as the first loging input method, we have to prepare | 121 // component extension IME as the first loging input method, we have to prepare |
122 // component extension IME IDs. | 122 // component extension IME IDs. |
123 const struct { | 123 const struct { |
124 const char* locale; | 124 const char* locale; |
125 const char* layout; | 125 const char* layout; |
126 const char* input_method_id; | 126 const char* input_method_id; |
127 } kDefaultInputMethodRecommendation[] = { | 127 } kDefaultInputMethodRecommendation[] = { |
128 { "ja", "us", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us" }, | 128 { "ja", "us", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us" }, |
129 { "ja", "jp", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_jp" }, | 129 { "ja", "jp", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_jp" }, |
130 { "zh-CN", "us", "_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabzh-t-i0-pinyin" }, | 130 { "zh-CN", "us", "_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabzh-t-i0-pinyin" }, |
| 131 { "zh-TW", "us", |
| 132 "_comp_ime_goedamlknlnjaengojinmfgpmdjmkooozh-hant-t-i0-und" }, |
131 { "th", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_th" }, | 133 { "th", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_th" }, |
132 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, | 134 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, |
133 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, | 135 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, |
134 }; | 136 }; |
135 | 137 |
136 } // namespace | 138 } // namespace |
137 | 139 |
138 namespace chromeos { | 140 namespace chromeos { |
139 | 141 |
140 extern const char* kExtensionImePrefix; | 142 extern const char* kExtensionImePrefix; |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 if (iter != id_to_descriptor_.end()) { | 727 if (iter != id_to_descriptor_.end()) { |
726 const InputMethodDescriptor& input_method = iter->second; | 728 const InputMethodDescriptor& input_method = iter->second; |
727 language_code_to_ids_.insert( | 729 language_code_to_ids_.insert( |
728 std::make_pair(language_code, input_method.id())); | 730 std::make_pair(language_code, input_method.id())); |
729 } | 731 } |
730 } | 732 } |
731 } | 733 } |
732 | 734 |
733 } // namespace input_method | 735 } // namespace input_method |
734 } // namespace chromeos | 736 } // namespace chromeos |
OLD | NEW |