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

Unified Diff: views/controls/button/image_button.h

Issue 119025: Add ability to theme our buttons.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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: views/controls/button/image_button.h
===================================================================
--- views/controls/button/image_button.h (revision 17327)
+++ views/controls/button/image_button.h (working copy)
@@ -19,6 +19,9 @@
// Set the image the button should use for the provided state.
virtual void SetImage(ButtonState aState, SkBitmap* anImage);
+ // Set the background details.
+ virtual void SetBackground(SkColor color, SkBitmap* image, SkBitmap* mask);
+
enum HorizontalAlignment { ALIGN_LEFT = 0,
ALIGN_CENTER,
ALIGN_RIGHT, };
@@ -43,6 +46,9 @@
// The images used to render the different states of this button.
SkBitmap images_[BS_COUNT];
+ // The background image.
+ SkBitmap* background_image_;
+
private:
// Image alignment.
HorizontalAlignment h_alignment_;

Powered by Google App Engine
This is Rietveld 408576698