| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 { "xkb:us:colemak:eng", "CO" }, | 88 { "xkb:us:colemak:eng", "CO" }, |
| 89 { "xkb:de:neo:ger", "NEO" }, | 89 { "xkb:de:neo:ger", "NEO" }, |
| 90 // To distinguish from "xkb:es::spa" | 90 // To distinguish from "xkb:es::spa" |
| 91 { "xkb:es:cat:cat", "CAS" }, | 91 { "xkb:es:cat:cat", "CAS" }, |
| 92 // To distinguish from "xkb:gb::eng" | 92 // To distinguish from "xkb:gb::eng" |
| 93 { "xkb:gb:dvorak:eng", "DV" }, | 93 { "xkb:gb:dvorak:eng", "DV" }, |
| 94 // To distinguish from "xkb:jp::jpn" | 94 // To distinguish from "xkb:jp::jpn" |
| 95 { "mozc", "\xe3\x81\x82" }, // U+3042, Japanese Hiragana letter A in UTF-8. | 95 { "mozc", "\xe3\x81\x82" }, // U+3042, Japanese Hiragana letter A in UTF-8. |
| 96 { "mozc-dv", "\xe3\x81\x82" }, | 96 { "mozc-dv", "\xe3\x81\x82" }, |
| 97 { "mozc-jp", "\xe3\x81\x82" }, | 97 { "mozc-jp", "\xe3\x81\x82" }, |
| 98 { "ibus-zinnia-japanese", "\xe6\x89\x8b" }, // U+624B, "hand" | 98 { "zinnia-japanese", "\xe6\x89\x8b" }, // U+624B, "hand" |
| 99 // For simplified Chinese input methods | 99 // For simplified Chinese input methods |
| 100 { "pinyin", "\xe6\x8b\xbc" }, // U+62FC | 100 { "pinyin", "\xe6\x8b\xbc" }, // U+62FC |
| 101 // For traditional Chinese input methods | 101 // For traditional Chinese input methods |
| 102 { "mozc-chewing", "\xe9\x85\xb7" }, // U+9177 | 102 { "mozc-chewing", "\xe9\x85\xb7" }, // U+9177 |
| 103 { "m17n:zh:cangjie", "\xe5\x80\x89" }, // U+5009 | 103 { "m17n:zh:cangjie", "\xe5\x80\x89" }, // U+5009 |
| 104 { "m17n:zh:quick", "\xe9\x80\x9f" }, // U+901F | 104 { "m17n:zh:quick", "\xe9\x80\x9f" }, // U+901F |
| 105 // For Hangul input method. | 105 // For Hangul input method. |
| 106 { "hangul", "\xed\x95\x9c" }, // U+D55C | 106 { "hangul", "\xed\x95\x9c" }, // U+D55C |
| 107 }; | 107 }; |
| 108 const size_t kMappingFromIdToIndicatorTextLen = | 108 const size_t kMappingFromIdToIndicatorTextLen = |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 CrosLibrary::Get()->GetInputMethodLibrary()->RemoveObserver(this); | 663 CrosLibrary::Get()->GetInputMethodLibrary()->RemoveObserver(this); |
| 664 } | 664 } |
| 665 } | 665 } |
| 666 | 666 |
| 667 void InputMethodMenu::SetMinimumWidth(int width) { | 667 void InputMethodMenu::SetMinimumWidth(int width) { |
| 668 // On the OOBE network selection screen, fixed width menu would be preferable. | 668 // On the OOBE network selection screen, fixed width menu would be preferable. |
| 669 minimum_input_method_menu_width_ = width; | 669 minimum_input_method_menu_width_ = width; |
| 670 } | 670 } |
| 671 | 671 |
| 672 } // namespace chromeos | 672 } // namespace chromeos |
| OLD | NEW |