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

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

Issue 17239002: Removes the old ibus based keyboards, and replace them with the ones based on extension IME API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the test failures. Created 7 years, 6 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 const struct { 111 const struct {
112 const char* locale; 112 const char* locale;
113 const char* layout; 113 const char* layout;
114 const char* input_method_id; 114 const char* input_method_id;
115 } kDefaultInputMethodRecommendation[] = { 115 } kDefaultInputMethodRecommendation[] = {
116 { "ja", "us", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us" }, 116 { "ja", "us", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us" },
117 { "ja", "jp", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_jp" }, 117 { "ja", "jp", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_jp" },
118 { "zh-CN", "us", "_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabzh-t-i0-pinyin" }, 118 { "zh-CN", "us", "_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabzh-t-i0-pinyin" },
119 { "zh-TW", "us", 119 { "zh-TW", "us",
120 "_comp_ime_goedamlknlnjaengojinmfgpmdjmkooozh-hant-t-i0-und" }, 120 "_comp_ime_goedamlknlnjaengojinmfgpmdjmkooozh-hant-t-i0-und" },
121 { "th", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_th" },
122 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" },
121 }; 123 };
122 124
123 } // namespace 125 } // namespace
124 126
125 namespace chromeos { 127 namespace chromeos {
126 128
127 extern const char* kExtensionImePrefix; 129 extern const char* kExtensionImePrefix;
128 130
129 namespace input_method { 131 namespace input_method {
130 132
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 if (iter != id_to_descriptor_.end()) { 714 if (iter != id_to_descriptor_.end()) {
713 const InputMethodDescriptor& input_method = iter->second; 715 const InputMethodDescriptor& input_method = iter->second;
714 language_code_to_ids_.insert( 716 language_code_to_ids_.insert(
715 std::make_pair(language_code, input_method.id())); 717 std::make_pair(language_code, input_method.id()));
716 } 718 }
717 } 719 }
718 } 720 }
719 721
720 } // namespace input_method 722 } // namespace input_method
721 } // namespace chromeos 723 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698