diff options
author | yusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 05:01:45 +0000 |
---|---|---|
committer | yusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 05:01:45 +0000 |
commit | c394d5dc4c364115c2be5a8740b0059c575c037a (patch) | |
tree | de35781aee77b6ed9a655c47355c278c4fbe011d /chrome/browser | |
parent | 835d7c811c98f179090c57a827a9c9baa2130435 (diff) | |
download | chromium_src-c394d5dc4c364115c2be5a8740b0059c575c037a.zip chromium_src-c394d5dc4c364115c2be5a8740b0059c575c037a.tar.gz chromium_src-c394d5dc4c364115c2be5a8740b0059c575c037a.tar.bz2 |
Change the input method indicator for the US-international layout from "US" to "INTL"
BUG=chromium-os:7529
TEST=manually
Review URL: http://codereview.chromium.org/3705004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62511 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/chromeos/status/input_method_menu.cc | 3 | ||||
-rw-r--r-- | chrome/browser/chromeos/status/input_method_menu_unittest.cc | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/status/input_method_menu.cc b/chrome/browser/chromeos/status/input_method_menu.cc index e1411e8..779c767 100644 --- a/chrome/browser/chromeos/status/input_method_menu.cc +++ b/chrome/browser/chromeos/status/input_method_menu.cc @@ -84,9 +84,10 @@ const struct { const char* indicator_text; } kMappingFromIdToIndicatorText[] = { // To distinguish from "xkb:us::eng" + { "xkb:us:altgr-intl:eng", "INTL" }, { "xkb:us:dvorak:eng", "DV" }, // To distinguish from "xkb:jp::jpn" - { "mozc", "\xe3\x81\x82" }, // Japanese Hiragana letter A in UTF-8. + { "mozc", "\xe3\x81\x82" }, // U+3042, Japanese Hiragana letter A in UTF-8. { "mozc-dv", "\xe3\x81\x82" }, { "mozc-jp", "\xe3\x81\x82" }, // For simplified Chinese input methods diff --git a/chrome/browser/chromeos/status/input_method_menu_unittest.cc b/chrome/browser/chromeos/status/input_method_menu_unittest.cc index 3d194b7..8a2c4ba 100644 --- a/chrome/browser/chromeos/status/input_method_menu_unittest.cc +++ b/chrome/browser/chromeos/status/input_method_menu_unittest.cc @@ -35,6 +35,10 @@ TEST(InputMethodMenuTest, GetTextForIndicatorTest) { EXPECT_EQ(L"DV", InputMethodMenu::GetTextForIndicator(desc)); } { + InputMethodDescriptor desc("xkb:us:altgr-intl:eng", "US intl", "us", "eng"); + EXPECT_EQ(L"INTL", InputMethodMenu::GetTextForIndicator(desc)); + } + { InputMethodDescriptor desc("mozc", "Mozc", "us", "ja"); EXPECT_EQ(UTF8ToWide("\xe3\x81\x82"), InputMethodMenu::GetTextForIndicator(desc)); |