summaryrefslogtreecommitdiffstats
path: root/ash/system/ime
diff options
context:
space:
mode:
authorzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-12 01:58:16 +0000
committerzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-12 01:58:16 +0000
commita45b752cd91adf18d56e407ec77874b0a39c5aca (patch)
treeb7b02643499fccd84bb84fd880f44634fc04c049 /ash/system/ime
parentde8f719a266bd09b7a5a4d3c356f67b420f72729 (diff)
downloadchromium_src-a45b752cd91adf18d56e407ec77874b0a39c5aca.zip
chromium_src-a45b752cd91adf18d56e407ec77874b0a39c5aca.tar.gz
chromium_src-a45b752cd91adf18d56e407ec77874b0a39c5aca.tar.bz2
Add decoration to the language button to indicate that a third party IME is in use
TBR=jhawkins@chromium.org BUG=None TEST=Install an IME extension. Enable it. Check that the Language Bar indicates that it is 3rd party Review URL: https://chromiumcodereview.appspot.com/10544070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141594 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/ime')
-rw-r--r--ash/system/ime/tray_ime.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ash/system/ime/tray_ime.cc b/ash/system/ime/tray_ime.cc
index 386fde5..b33462e 100644
--- a/ash/system/ime/tray_ime.cc
+++ b/ash/system/ime/tray_ime.cc
@@ -227,7 +227,12 @@ TrayIME::~TrayIME() {
void TrayIME::UpdateTrayLabel(const IMEInfo& current, size_t count) {
if (tray_label_) {
- tray_label_->label()->SetText(current.short_name);
+ if (current.third_party) {
+ // TODO(zork): Update this decoration.
+ tray_label_->label()->SetText(current.short_name + UTF8ToUTF16("(3rd)"));
+ } else {
+ tray_label_->label()->SetText(current.short_name);
+ }
tray_label_->SetVisible(count > 1);
}
}