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

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

Issue 20843010: Revive Chewing IME for traditional Chinese Input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 7 years, 4 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
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 #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
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" },
133 { "th", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_th" }, 131 { "th", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_th" },
134 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, 132 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" },
135 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, 133 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" },
136 }; 134 };
137 135
138 } // namespace 136 } // namespace
139 137
140 namespace chromeos { 138 namespace chromeos {
141 139
142 extern const char* kExtensionImePrefix; 140 extern const char* kExtensionImePrefix;
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 if (iter != id_to_descriptor_.end()) { 725 if (iter != id_to_descriptor_.end()) {
728 const InputMethodDescriptor& input_method = iter->second; 726 const InputMethodDescriptor& input_method = iter->second;
729 language_code_to_ids_.insert( 727 language_code_to_ids_.insert(
730 std::make_pair(language_code, input_method.id())); 728 std::make_pair(language_code, input_method.id()));
731 } 729 }
732 } 730 }
733 } 731 }
734 732
735 } // namespace input_method 733 } // namespace input_method
736 } // namespace chromeos 734 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698