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

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

Issue 22611007: Revert "Revive Chewing IME for traditional Chinese Input." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_manager_impl.h" 5 #include "chrome/browser/chromeos/input_method/input_method_manager_impl.h"
6 6
7 #include <algorithm> // std::find 7 #include <algorithm> // std::find
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 const struct MigrationInputMethodList { 45 const struct MigrationInputMethodList {
46 const char* old_input_method; 46 const char* old_input_method;
47 const char* new_input_method; 47 const char* new_input_method;
48 } kMigrationInputMethodList[] = { 48 } kMigrationInputMethodList[] = {
49 { "mozc", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us" }, 49 { "mozc", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us" },
50 { "mozc-jp", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_jp" }, 50 { "mozc-jp", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_jp" },
51 { "mozc-dv", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us" }, 51 { "mozc-dv", "_comp_ime_fpfbhcjppmaeaijcidgiibchfbnhbeljnacl_mozc_us" },
52 { "pinyin", "_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabzh-t-i0-pinyin" }, 52 { "pinyin", "_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabzh-t-i0-pinyin" },
53 { "pinyin-dv", "_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabzh-t-i0-pinyin" }, 53 { "pinyin-dv", "_comp_ime_nmblnjkfdkabgdofidlkienfnnbjhnabzh-t-i0-pinyin" },
54 { "mozc-chewing",
55 "_comp_ime_ekbifjdfhkmdeeajnolmgdlmkllopefizh-hant-t-i0-und "},
54 { "m17n:zh:cangjie", 56 { "m17n:zh:cangjie",
55 "_comp_ime_gjhclobljhjhgoebiipblnmdodbmpdgdzh-hant-t-i0-cangjie-1987" }, 57 "_comp_ime_gjhclobljhjhgoebiipblnmdodbmpdgdzh-hant-t-i0-cangjie-1987" },
56 // TODO(nona): Remove following migration map in M31. 58 // TODO(nona): Remove following migration map in M31.
57 { "m17n:ta:itrans", 59 { "m17n:ta:itrans",
58 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ta_itrans" }, 60 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ta_itrans" },
59 { "m17n:ta:tamil99", 61 { "m17n:ta:tamil99",
60 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ta_tamil99" }, 62 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ta_tamil99" },
61 { "m17n:ta:typewriter", 63 { "m17n:ta:typewriter",
62 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ta_typewriter" }, 64 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ta_typewriter" },
63 { "m17n:ta:inscript", 65 { "m17n:ta:inscript",
(...skipping 22 matching lines...) Expand all
86 { "m17n:kn:itrans", 88 { "m17n:kn:itrans",
87 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_kn_phone" }, 89 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_kn_phone" },
88 { "m17n:ml:itrans", 90 { "m17n:ml:itrans",
89 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ml_phone" }, 91 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ml_phone" },
90 { "m17n:mr:itrans", 92 { "m17n:mr:itrans",
91 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_deva_phone" }, 93 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_deva_phone" },
92 { "m17n:te:itrans", 94 { "m17n:te:itrans",
93 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_te_phone" }, 95 "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_te_phone" },
94 { "m17n:fa:isiri", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_fa" }, 96 { "m17n:fa:isiri", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_fa" },
95 { "m17n:ar:kbd", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ar" }, 97 { "m17n:ar:kbd", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_ar" },
98 // TODO(nona): Remove following migration map in M32
99 { "m17n:zh:quick",
100 "_comp_ime_ekbifjdfhkmdeeajnolmgdlmkllopefizh-hant-t-i0-und" },
96 }; 101 };
97 102
98 const struct MigrationHangulKeyboardToInputMethodID { 103 const struct MigrationHangulKeyboardToInputMethodID {
99 const char* keyboard_id; 104 const char* keyboard_id;
100 const char* ime_id; 105 const char* ime_id;
101 } kMigrationHangulKeyboardToInputMethodID[] = { 106 } kMigrationHangulKeyboardToInputMethodID[] = {
102 { "2", "_comp_ime_bdgdidmhaijohebebipajioienkglgfohangul_2set" }, 107 { "2", "_comp_ime_bdgdidmhaijohebebipajioienkglgfohangul_2set" },
103 { "3f", "_comp_ime_bdgdidmhaijohebebipajioienkglgfohangul_3setfinal" }, 108 { "3f", "_comp_ime_bdgdidmhaijohebebipajioienkglgfohangul_3setfinal" },
104 { "39", "_comp_ime_bdgdidmhaijohebebipajioienkglgfohangul_3set390" }, 109 { "39", "_comp_ime_bdgdidmhaijohebebipajioienkglgfohangul_3set390" },
105 { "3s", "_comp_ime_bdgdidmhaijohebebipajioienkglgfohangul_3setnoshift" }, 110 { "3s", "_comp_ime_bdgdidmhaijohebebipajioienkglgfohangul_3setnoshift" },
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 else 981 else
977 DVLOG(1) << "Failed to initialize the candidate window controller"; 982 DVLOG(1) << "Failed to initialize the candidate window controller";
978 } 983 }
979 984
980 bool InputMethodManagerImpl::IsIBusConnectionAlive() { 985 bool InputMethodManagerImpl::IsIBusConnectionAlive() {
981 return DBusThreadManager::Get() && DBusThreadManager::Get()->GetIBusClient(); 986 return DBusThreadManager::Get() && DBusThreadManager::Get()->GetIBusClient();
982 } 987 }
983 988
984 } // namespace input_method 989 } // namespace input_method
985 } // namespace chromeos 990 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698