| 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_;
|
|
|