Index: ash/common/frame/caption_buttons/frame_caption_button.h |
diff --git a/ash/common/frame/caption_buttons/frame_caption_button.h b/ash/common/frame/caption_buttons/frame_caption_button.h |
index 8b6df285b534eeb44c82a17b119ee615cb0d75eb..3f808629632052f1d6bc4dcfa2cd01a6ea0a78dd 100644 |
--- a/ash/common/frame/caption_buttons/frame_caption_button.h |
+++ b/ash/common/frame/caption_buttons/frame_caption_button.h |
@@ -15,7 +15,7 @@ |
namespace gfx { |
class SlideAnimation; |
-struct VectorIcon; |
+enum class VectorIconId; |
} |
namespace ash { |
@@ -32,12 +32,12 @@ |
~FrameCaptionButton() override; |
// Sets the image to use to paint the button. If |animate| is ANIMATE_YES, |
- // the button crossfades to the new visuals. If the image matches the one |
+ // the button crossfades to the new visuals. If the image id matches the one |
// currently used by the button and |animate| is ANIMATE_NO, the crossfade |
// animation is progressed to the end. |
void SetImage(CaptionButtonIcon icon, |
Animate animate, |
- const gfx::VectorIcon& icon_image); |
+ gfx::VectorIconId icon_image_id); |
// Returns true if the button is crossfading to new visuals set in |
// SetImage(). |
@@ -58,6 +58,8 @@ |
void set_use_light_images(bool light) { use_light_images_ = light; } |
CaptionButtonIcon icon() const { return icon_; } |
+ |
+ gfx::VectorIconId icon_image_id() const { return icon_image_id_; } |
void set_size(const gfx::Size& size) { size_ = size; } |
@@ -88,7 +90,7 @@ |
// The image id (kept for the purposes of testing) and image used to paint the |
// button's icon. |
- const gfx::VectorIcon* icon_definition_ = nullptr; |
+ gfx::VectorIconId icon_image_id_; |
gfx::ImageSkia icon_image_; |
// The icon image to crossfade from. |