OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // mapping is necessary since some input methods belong to the same language. | 79 // mapping is necessary since some input methods belong to the same language. |
80 // For example, both "xkb:us::eng" and "xkb:us:dvorak:eng" are for US English. | 80 // For example, both "xkb:us::eng" and "xkb:us:dvorak:eng" are for US English. |
81 const struct { | 81 const struct { |
82 const char* input_method_id; | 82 const char* input_method_id; |
83 const char* indicator_text; | 83 const char* indicator_text; |
84 } kMappingFromIdToIndicatorText[] = { | 84 } kMappingFromIdToIndicatorText[] = { |
85 // To distinguish from "xkb:us::eng" | 85 // To distinguish from "xkb:us::eng" |
86 { "xkb:us:altgr-intl:eng", "EXTD" }, | 86 { "xkb:us:altgr-intl:eng", "EXTD" }, |
87 { "xkb:us:dvorak:eng", "DV" }, | 87 { "xkb:us:dvorak:eng", "DV" }, |
88 { "xkb:us:intl:eng", "INTL" }, | 88 { "xkb:us:intl:eng", "INTL" }, |
| 89 { "xkb:us:colemak:eng", "CO" }, |
89 // To distinguish from "xkb:jp::jpn" | 90 // To distinguish from "xkb:jp::jpn" |
90 { "mozc", "\xe3\x81\x82" }, // U+3042, Japanese Hiragana letter A in UTF-8. | 91 { "mozc", "\xe3\x81\x82" }, // U+3042, Japanese Hiragana letter A in UTF-8. |
91 { "mozc-dv", "\xe3\x81\x82" }, | 92 { "mozc-dv", "\xe3\x81\x82" }, |
92 { "mozc-jp", "\xe3\x81\x82" }, | 93 { "mozc-jp", "\xe3\x81\x82" }, |
93 // For simplified Chinese input methods | 94 // For simplified Chinese input methods |
94 { "pinyin", "\xe6\x8b\xbc" }, // U+62FC | 95 { "pinyin", "\xe6\x8b\xbc" }, // U+62FC |
95 // For traditional Chinese input methods | 96 // For traditional Chinese input methods |
96 { "chewing", "\xe9\x85\xb7" }, // U+9177 | 97 { "chewing", "\xe9\x85\xb7" }, // U+9177 |
97 { "m17n:zh:cangjie", "\xe5\x80\x89" }, // U+5009 | 98 { "m17n:zh:cangjie", "\xe5\x80\x89" }, // U+5009 |
98 { "m17n:zh:quick", "\xe9\x80\x9f" }, // U+901F | 99 { "m17n:zh:quick", "\xe9\x80\x9f" }, // U+901F |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 logged_in_ = true; | 613 logged_in_ = true; |
613 } | 614 } |
614 } | 615 } |
615 | 616 |
616 void InputMethodMenu::SetMinimumWidth(int width) { | 617 void InputMethodMenu::SetMinimumWidth(int width) { |
617 // On the OOBE network selection screen, fixed width menu would be preferable. | 618 // On the OOBE network selection screen, fixed width menu would be preferable. |
618 minimum_input_method_menu_width_ = width; | 619 minimum_input_method_menu_width_ = width; |
619 } | 620 } |
620 | 621 |
621 } // namespace chromeos | 622 } // namespace chromeos |
OLD | NEW |