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

Unified Diff: chrome/browser/chromeos/status/input_method_menu_button.cc

Issue 4154002: New statusbar images for ChromeOS (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/input_method_menu_button.cc
===================================================================
--- chrome/browser/chromeos/status/input_method_menu_button.cc (revision 63751)
+++ chrome/browser/chromeos/status/input_method_menu_button.cc (working copy)
@@ -57,6 +57,14 @@
////////////////////////////////////////////////////////////////////////////////
// views::View implementation:
+gfx::Size InputMethodMenuButton::GetPreferredSize() {
+ // If not enabled, then hide this button.
+ if (!IsEnabled()) {
+ return gfx::Size(0, 0);
+ }
+ return StatusAreaButton::GetPreferredSize();
+}
+
void InputMethodMenuButton::OnLocaleChanged() {
input_method::OnLocaleChanged();
const InputMethodDescriptor& input_method =
« no previous file with comments | « chrome/browser/chromeos/status/input_method_menu_button.h ('k') | chrome/browser/chromeos/status/network_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698