summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/status/language_menu_button.h
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 09:26:00 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 09:26:00 +0000
commit12175182ad05fa72b6bcf76cfa2b1027ff9752f4 (patch)
tree6b41e3c47b84f7183becc88e25299b36add73afa /chrome/browser/chromeos/status/language_menu_button.h
parent85b01c001effec913e29c9cb5e8fdd32b1bec3b1 (diff)
downloadchromium_src-12175182ad05fa72b6bcf76cfa2b1027ff9752f4.zip
chromium_src-12175182ad05fa72b6bcf76cfa2b1027ff9752f4.tar.gz
chromium_src-12175182ad05fa72b6bcf76cfa2b1027ff9752f4.tar.bz2
Hide the input language menu if there is only one input method and it's a XKB keyboard layout.
For instance, if English USA keyboard layout is the only input method enabled, we don't show the input language menu on the right upper corner. On the other hand, if Japanese input method is the only input method enabled, we still show the input language menu so users can change the intra input method modes, like Hiragana and Katakana modes. BUG=chromium-os:2275 TEST=manually on the netbook Review URL: http://codereview.chromium.org/2729009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49375 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/status/language_menu_button.h')
-rw-r--r--chrome/browser/chromeos/status/language_menu_button.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/status/language_menu_button.h b/chrome/browser/chromeos/status/language_menu_button.h
index a74d5c6..78fe470 100644
--- a/chrome/browser/chromeos/status/language_menu_button.h
+++ b/chrome/browser/chromeos/status/language_menu_button.h
@@ -52,6 +52,7 @@ class LanguageMenuButton : public views::MenuButton,
// LanguageLibrary::Observer implementation.
virtual void InputMethodChanged(LanguageLibrary* obj);
virtual void ImePropertiesChanged(LanguageLibrary* obj);
+ virtual void ActiveInputMethodsChanged(LanguageLibrary* obj);
// NotificationObserver implementation.
virtual void Observe(NotificationType type,
@@ -69,6 +70,10 @@ class LanguageMenuButton : public views::MenuButton,
// Updates the status area with |name| and tooltip with |tooltip|.
void UpdateIcon(const std::wstring& name, const std::wstring& tooltip);
+ // Updates the status area from the given input method.
+ void UpdateIconFromInputMethod(
+ const InputMethodDescriptor& input_method);
+
// Rebuilds |model_|. This function should be called whenever
// |input_method_descriptors_| is updated, or ImePropertiesChanged() is
// called.