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

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

Issue 315008: New wifi icons animation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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_area_button.h
===================================================================
--- chrome/browser/chromeos/status_area_button.h (revision 30284)
+++ chrome/browser/chromeos/status_area_button.h (working copy)
@@ -12,9 +12,17 @@
// Shows current button state by drawing a border around the current icon.
class StatusAreaButton : public views::MenuButton {
public:
- StatusAreaButton(views::ViewMenuDelegate* menu_delegate);
+ explicit StatusAreaButton(views::ViewMenuDelegate* menu_delegate);
virtual ~StatusAreaButton() {}
virtual void Paint(gfx::Canvas* canvas, bool for_drag);
+
+ protected:
+ // 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);
+
+ DISALLOW_COPY_AND_ASSIGN(StatusAreaButton);
};
#endif // CHROME_BROWSER_CHROMEOS_STATUS_AREA_BUTTON_H_
Property changes on: chrome/browser/chromeos/status_area_button.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698