| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/status/input_method_menu.h" | 5 #include "chrome/browser/chromeos/status/input_method_menu.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 { "mozc-jp", "\xe3\x81\x82" }, | 101 { "mozc-jp", "\xe3\x81\x82" }, |
| 102 { "zinnia-japanese", "\xe6\x89\x8b" }, // U+624B, "hand" | 102 { "zinnia-japanese", "\xe6\x89\x8b" }, // U+624B, "hand" |
| 103 // For simplified Chinese input methods | 103 // For simplified Chinese input methods |
| 104 { "pinyin", "\xe6\x8b\xbc" }, // U+62FC | 104 { "pinyin", "\xe6\x8b\xbc" }, // U+62FC |
| 105 { "pinyin-dv", "\xe6\x8b\xbc" }, | 105 { "pinyin-dv", "\xe6\x8b\xbc" }, |
| 106 // For traditional Chinese input methods | 106 // For traditional Chinese input methods |
| 107 { "mozc-chewing", "\xe9\x85\xb7" }, // U+9177 | 107 { "mozc-chewing", "\xe9\x85\xb7" }, // U+9177 |
| 108 { "m17n:zh:cangjie", "\xe5\x80\x89" }, // U+5009 | 108 { "m17n:zh:cangjie", "\xe5\x80\x89" }, // U+5009 |
| 109 { "m17n:zh:quick", "\xe9\x80\x9f" }, // U+901F | 109 { "m17n:zh:quick", "\xe9\x80\x9f" }, // U+901F |
| 110 // For Hangul input method. | 110 // For Hangul input method. |
| 111 // TODO(nona): Remove ibus-hangul support. | |
| 112 { "hangul", "\xed\x95\x9c" }, // U+D55C | |
| 113 { "mozc-hangul", "\xed\x95\x9c" }, // U+D55C | 111 { "mozc-hangul", "\xed\x95\x9c" }, // U+D55C |
| 114 }; | 112 }; |
| 115 const size_t kMappingFromIdToIndicatorTextLen = | 113 const size_t kMappingFromIdToIndicatorTextLen = |
| 116 ARRAYSIZE_UNSAFE(kMappingFromIdToIndicatorText); | 114 ARRAYSIZE_UNSAFE(kMappingFromIdToIndicatorText); |
| 117 | 115 |
| 118 // Returns the language name for the given |language_code|. | 116 // Returns the language name for the given |language_code|. |
| 119 std::wstring GetLanguageName(const std::string& language_code) { | 117 std::wstring GetLanguageName(const std::string& language_code) { |
| 120 const string16 language_name = l10n_util::GetDisplayNameForLocale( | 118 const string16 language_name = l10n_util::GetDisplayNameForLocale( |
| 121 language_code, g_browser_process->GetApplicationLocale(), true); | 119 language_code, g_browser_process->GetApplicationLocale(), true); |
| 122 return UTF16ToWide(language_name); | 120 return UTF16ToWide(language_name); |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 InputMethodManager::GetInstance()->RemoveObserver(this); | 680 InputMethodManager::GetInstance()->RemoveObserver(this); |
| 683 } | 681 } |
| 684 } | 682 } |
| 685 | 683 |
| 686 void InputMethodMenu::SetMinimumWidth(int width) { | 684 void InputMethodMenu::SetMinimumWidth(int width) { |
| 687 // On the OOBE network selection screen, fixed width menu would be preferable. | 685 // On the OOBE network selection screen, fixed width menu would be preferable. |
| 688 minimum_input_method_menu_width_ = width; | 686 minimum_input_method_menu_width_ = width; |
| 689 } | 687 } |
| 690 | 688 |
| 691 } // namespace chromeos | 689 } // namespace chromeos |
| OLD | NEW |