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

Unified Diff: chrome/browser/chromeos/status/status_area_button.h

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.h
===================================================================
--- chrome/browser/chromeos/status/status_area_button.h (revision 63751)
+++ chrome/browser/chromeos/status/status_area_button.h (working copy)
@@ -30,16 +30,15 @@
}
protected:
- // Draws the pressed icon. This is called before DrawIcon if the state is
- // pressed. Subclasses should override this method if they need to draw a
- // pressed icon.
- virtual void DrawPressed(gfx::Canvas* canvas) {}
-
// Draws the icon for this status area button on the canvas.
// Subclasses should override this method if they need to draw their own icon.
// Otherwise, just call SetIcon() and the it will be handled for you.
virtual void DrawIcon(gfx::Canvas* canvas);
+ // Subclasses should override these methods to return the correct dimensions.
+ virtual int icon_height() { return 24; }
+ virtual int icon_width() { return 23; }
+
// True if the button wants to use views::MenuButton drawings.
bool use_menu_button_paint_;
« no previous file with comments | « chrome/browser/chromeos/status/power_menu_button_browsertest.cc ('k') | chrome/browser/chromeos/status/status_area_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698