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

Unified Diff: chrome/browser/chromeos/status/status_area_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/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_) {
« no previous file with comments | « chrome/browser/chromeos/status/status_area_button.h ('k') | chrome/browser/chromeos/status/status_area_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698