| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" }, | 121 { "th", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_th" }, |
| 122 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, | 122 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, |
| 123 { "vi", "us", "_comp_ime_jhffeifommiaekmbkkjlpmilogcfdohpvkd_vi_tcvn" }, |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace | 126 } // namespace |
| 126 | 127 |
| 127 namespace chromeos { | 128 namespace chromeos { |
| 128 | 129 |
| 129 extern const char* kExtensionImePrefix; | 130 extern const char* kExtensionImePrefix; |
| 130 | 131 |
| 131 namespace input_method { | 132 namespace input_method { |
| 132 | 133 |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 if (iter != id_to_descriptor_.end()) { | 715 if (iter != id_to_descriptor_.end()) { |
| 715 const InputMethodDescriptor& input_method = iter->second; | 716 const InputMethodDescriptor& input_method = iter->second; |
| 716 language_code_to_ids_.insert( | 717 language_code_to_ids_.insert( |
| 717 std::make_pair(language_code, input_method.id())); | 718 std::make_pair(language_code, input_method.id())); |
| 718 } | 719 } |
| 719 } | 720 } |
| 720 } | 721 } |
| 721 | 722 |
| 722 } // namespace input_method | 723 } // namespace input_method |
| 723 } // namespace chromeos | 724 } // namespace chromeos |
| OLD | NEW |