OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/component_extension_ime_manager_i mpl.h" | 5 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i mpl.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/extensions/component_loader.h" | 9 #include "chrome/browser/extensions/component_loader.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 25 matching lines...) Expand all Loading... | |
36 "bdgdidmhaijohebebipajioienkglgfo", | 36 "bdgdidmhaijohebebipajioienkglgfo", |
37 "/usr/share/chromeos-assets/input_methods/hangul", | 37 "/usr/share/chromeos-assets/input_methods/hangul", |
38 }, | 38 }, |
39 #if defined(OFFICIAL_BUILD) | 39 #if defined(OFFICIAL_BUILD) |
40 { | 40 { |
41 // Official Google Japanese Input. | 41 // Official Google Japanese Input. |
42 "fpfbhcjppmaeaijcidgiibchfbnhbelj", | 42 "fpfbhcjppmaeaijcidgiibchfbnhbelj", |
43 "/usr/share/chromeos-assets/input_methods/nacl_mozc", | 43 "/usr/share/chromeos-assets/input_methods/nacl_mozc", |
44 }, | 44 }, |
45 { | 45 { |
46 // Google Chinese Input (zhuyin) | 46 // Google Chinese Input (zhuyin) |
zhangchi
2013/08/01 03:35:54
Why not remove this close source one?
Seigo Nonaka
2013/08/01 17:26:09
Good catch! Fixed.
On 2013/08/01 03:35:54, zhangch
| |
47 "goedamlknlnjaengojinmfgpmdjmkooo", | 47 "goedamlknlnjaengojinmfgpmdjmkooo", |
48 "/usr/share/chromeos-assets/input_methods/zhuyin", | 48 "/usr/share/chromeos-assets/input_methods/zhuyin", |
49 }, | 49 }, |
50 { | 50 { |
51 // Google Chinese Input (pinyin) | 51 // Google Chinese Input (pinyin) |
52 "nmblnjkfdkabgdofidlkienfnnbjhnab", | 52 "nmblnjkfdkabgdofidlkienfnnbjhnab", |
53 "/usr/share/chromeos-assets/input_methods/pinyin", | 53 "/usr/share/chromeos-assets/input_methods/pinyin", |
54 }, | 54 }, |
55 { | 55 { |
56 // Google Chinese Input (cangjie) | 56 // Google Chinese Input (cangjie) |
(...skipping 10 matching lines...) Expand all Loading... | |
67 "gjaehgfemfahhmlgpdfknkhdnemmolop", | 67 "gjaehgfemfahhmlgpdfknkhdnemmolop", |
68 "/usr/share/chromeos-assets/input_methods/input_tools", | 68 "/usr/share/chromeos-assets/input_methods/input_tools", |
69 }, | 69 }, |
70 #else | 70 #else |
71 { | 71 { |
72 // Open-sourced Pinyin Chinese Input Method. | 72 // Open-sourced Pinyin Chinese Input Method. |
73 "cpgalbafkoofkjmaeonnfijgpfennjjn", | 73 "cpgalbafkoofkjmaeonnfijgpfennjjn", |
74 "/usr/share/chromeos-assets/input_methods/pinyin", | 74 "/usr/share/chromeos-assets/input_methods/pinyin", |
75 }, | 75 }, |
76 { | 76 { |
77 // Open-sourced Zhuyin Chinese Input Method. | |
78 "ekbifjdfhkmdeeajnolmgdlmkllopefi", | |
79 "/usr/share/chromeos-assets/input_methods/zhuyin", | |
80 }, | |
81 { | |
82 // Open-sourced Cangjie Chinese Input Method. | 77 // Open-sourced Cangjie Chinese Input Method. |
83 "aeebooiibjahgpgmhkeocbeekccfknbj", | 78 "aeebooiibjahgpgmhkeocbeekccfknbj", |
84 "/usr/share/chromeos-assets/input_methods/cangjie", | 79 "/usr/share/chromeos-assets/input_methods/cangjie", |
85 }, | 80 }, |
86 { | 81 { |
87 // Open-sourced Mozc Japanese Input. | 82 // Open-sourced Mozc Japanese Input. |
88 "bbaiamgfapehflhememkfglaehiobjnk", | 83 "bbaiamgfapehflhememkfglaehiobjnk", |
89 "/usr/share/chromeos-assets/input_methods/nacl_mozc", | 84 "/usr/share/chromeos-assets/input_methods/nacl_mozc", |
90 }, | 85 }, |
91 #endif | 86 #endif |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
297 std::vector<ComponentExtensionIME>* result, | 292 std::vector<ComponentExtensionIME>* result, |
298 const base::Closure& callback) { | 293 const base::Closure& callback) { |
299 DCHECK(thread_checker_.CalledOnValidThread()); | 294 DCHECK(thread_checker_.CalledOnValidThread()); |
300 DCHECK(result); | 295 DCHECK(result); |
301 component_extension_list_ = *result; | 296 component_extension_list_ = *result; |
302 is_initialized_ = true; | 297 is_initialized_ = true; |
303 callback.Run(); | 298 callback.Run(); |
304 } | 299 } |
305 | 300 |
306 } // namespace chromeos | 301 } // namespace chromeos |
OLD | NEW |