Index: chrome/browser/chromeos/status/status_area_button.cc |
=================================================================== |
--- chrome/browser/chromeos/status/status_area_button.cc (revision 63751) |
+++ chrome/browser/chromeos/status/status_area_button.cc (working copy) |
@@ -34,21 +34,15 @@ |
if (use_menu_button_paint_) { |
views::MenuButton::Paint(canvas, for_drag); |
} else { |
- if (state() == BS_PUSHED) |
- DrawPressed(canvas); |
- |
DrawIcon(canvas); |
PaintFocusBorder(canvas); |
} |
} |
gfx::Size StatusAreaButton::GetPreferredSize() { |
- // icons are 24x24 |
- static const int kIconWidth = 24; |
- static const int kIconHeight = 24; |
gfx::Insets insets = views::MenuButton::GetInsets(); |
- gfx::Size prefsize(kIconWidth + insets.width(), |
- kIconHeight + insets.height()); |
+ gfx::Size prefsize(icon_width() + insets.width(), |
+ icon_height() + insets.height()); |
// Adjusts size when use menu button paint. |
if (use_menu_button_paint_) { |