Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: chrome/browser/chromeos/status/input_method_menu.cc

Issue 7044044: Add pinyin-dv support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 { "ibus-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 { "pinyin-dv", "\xe6\x8b\xbc" },
101 // For traditional Chinese input methods 102 // For traditional Chinese input methods
102 { "mozc-chewing", "\xe9\x85\xb7" }, // U+9177 103 { "mozc-chewing", "\xe9\x85\xb7" }, // U+9177
103 { "m17n:zh:cangjie", "\xe5\x80\x89" }, // U+5009 104 { "m17n:zh:cangjie", "\xe5\x80\x89" }, // U+5009
104 { "m17n:zh:quick", "\xe9\x80\x9f" }, // U+901F 105 { "m17n:zh:quick", "\xe9\x80\x9f" }, // U+901F
105 // For Hangul input method. 106 // For Hangul input method.
106 { "hangul", "\xed\x95\x9c" }, // U+D55C 107 { "hangul", "\xed\x95\x9c" }, // U+D55C
107 }; 108 };
108 const size_t kMappingFromIdToIndicatorTextLen = 109 const size_t kMappingFromIdToIndicatorTextLen =
109 ARRAYSIZE_UNSAFE(kMappingFromIdToIndicatorText); 110 ARRAYSIZE_UNSAFE(kMappingFromIdToIndicatorText);
110 111
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 CrosLibrary::Get()->GetInputMethodLibrary()->RemoveObserver(this); 664 CrosLibrary::Get()->GetInputMethodLibrary()->RemoveObserver(this);
664 } 665 }
665 } 666 }
666 667
667 void InputMethodMenu::SetMinimumWidth(int width) { 668 void InputMethodMenu::SetMinimumWidth(int width) {
668 // On the OOBE network selection screen, fixed width menu would be preferable. 669 // On the OOBE network selection screen, fixed width menu would be preferable.
669 minimum_input_method_menu_width_ = width; 670 minimum_input_method_menu_width_ = width;
670 } 671 }
671 672
672 } // namespace chromeos 673 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698