Index: ash/wm/caption_buttons/frame_caption_button_container_view.h |
diff --git a/ash/wm/caption_buttons/frame_caption_button_container_view.h b/ash/wm/caption_buttons/frame_caption_button_container_view.h |
index 594da6f4267c3aca0119b20f52181b27c446af5d..eff54ef024555697962696d3ae6baef7b815afae 100644 |
--- a/ash/wm/caption_buttons/frame_caption_button_container_view.h |
+++ b/ash/wm/caption_buttons/frame_caption_button_container_view.h |
@@ -75,9 +75,14 @@ class ASH_EXPORT FrameCaptionButtonContainerView |
// FrameCaptionButtonContainerView will keep track of the images to use for |
// |icon| even if none of the buttons currently use |icon|. |
void SetButtonImages(CaptionButtonIcon icon, |
- 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); |
+ |
+ // Sets whether the buttons should be painted as active. Does not schedule |
+ // a repaint. |
+ void SetPaintAsActive(bool paint_as_active); |
// Tell the window controls to reset themselves to the normal state. |
void ResetWindowControls(); |
@@ -91,19 +96,22 @@ class ASH_EXPORT FrameCaptionButtonContainerView |
virtual gfx::Size GetPreferredSize() OVERRIDE; |
virtual void Layout() OVERRIDE; |
virtual const char* GetClassName() const OVERRIDE; |
- virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
private: |
friend class FrameCaptionButtonContainerViewTest; |
struct ButtonIconIds { |
ButtonIconIds(); |
- ButtonIconIds(int normal_id, int hovered_id, int pressed_id); |
+ ButtonIconIds(int icon_id, |
+ int inactive_icon_id, |
+ int hovered_background_id, |
+ int pressed_background_id); |
~ButtonIconIds(); |
- 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; |
}; |
// Sets |button|'s icon to |icon|. The button will crossfade to the new icon |
@@ -129,9 +137,6 @@ class ASH_EXPORT FrameCaptionButtonContainerView |
// The widget that the buttons act on. |
views::Widget* frame_; |
- // The close button separator. |
- gfx::ImageSkia button_separator_; |
- |
// The buttons. In the normal button style, at most one of |minimize_button_| |
// and |size_button_| is visible. |
FrameCaptionButton* minimize_button_; |