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

Unified Diff: ash/wm/caption_buttons/frame_caption_button.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, 10 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.h
diff --git a/ash/wm/caption_buttons/frame_caption_button.h b/ash/wm/caption_buttons/frame_caption_button.h
index ee0f8358ec6b8cc778bb651ed0b8e438759006d9..8ab85392c766028d45726e9e149695834f351cac 100644
--- a/ash/wm/caption_buttons/frame_caption_button.h
+++ b/ash/wm/caption_buttons/frame_caption_button.h
@@ -37,9 +37,10 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
// animation is progressed to the end.
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);
// Returns true if the button is crossfading to new visuals set in
// SetImages().
@@ -50,6 +51,10 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
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_;
}
@@ -67,16 +72,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_;
« no previous file with comments | « ash/wm/caption_buttons/alternate_frame_size_button_unittest.cc ('k') | ash/wm/caption_buttons/frame_caption_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698