| Index: ash/wm/caption_buttons/frame_caption_button.h
|
| diff --git a/ash/wm/caption_buttons/frame_caption_button.h b/ash/wm/caption_buttons/frame_caption_button.h
|
| index 66eae9e41dfa8b0cb0ef05fce9445236918fadcc..6b269d7d35b8cfc4942835979054464f0be1ede6 100644
|
| --- a/ash/wm/caption_buttons/frame_caption_button.h
|
| +++ b/ash/wm/caption_buttons/frame_caption_button.h
|
| @@ -32,15 +32,20 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
|
| // the button crossfades to the new visuals.
|
| void SetImages(CaptionButtonIcon icon,
|
| Animate animate,
|
| - int normal_image_id,
|
| - int hovered_image_id,
|
| - int pressed_image_id);
|
| + int icon_image_id,
|
| + int inactive_icon_image_id,
|
| + int hovered_background_image_id,
|
| + int pressed_background_image_id);
|
|
|
| // views::View overrides:
|
| virtual gfx::Size GetPreferredSize() OVERRIDE;
|
| virtual const char* GetClassName() const OVERRIDE;
|
| virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
|
|
|
| + void set_paint_as_active(bool paint_as_active) {
|
| + paint_as_active_ = paint_as_active;
|
| + }
|
| +
|
| CaptionButtonIcon icon() const {
|
| return icon_;
|
| }
|
| @@ -63,16 +68,21 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
|
| // The button's current icon.
|
| CaptionButtonIcon icon_;
|
|
|
| + // Whether the button should be painted as active.
|
| + bool paint_as_active_;
|
| +
|
| // The scale at which the button was previously painted.
|
| float last_paint_scale_;
|
|
|
| // The images and image ids used to paint the button.
|
| - int normal_image_id_;
|
| - int hovered_image_id_;
|
| - int pressed_image_id_;
|
| - gfx::ImageSkia normal_image_;
|
| - gfx::ImageSkia hovered_image_;
|
| - gfx::ImageSkia pressed_image_;
|
| + int icon_image_id_;
|
| + int inactive_icon_image_id_;
|
| + int hovered_background_image_id_;
|
| + int pressed_background_image_id_;
|
| + gfx::ImageSkia icon_image_;
|
| + gfx::ImageSkia inactive_icon_image_;
|
| + gfx::ImageSkia hovered_background_image_;
|
| + gfx::ImageSkia pressed_background_image_;
|
|
|
| // The image to crossfade from.
|
| gfx::ImageSkia crossfade_image_;
|
|
|