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

Unified Diff: ash/wm/caption_buttons/frame_caption_button_container_view.h

Issue 148003003: Use white header for app windows part #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698