Index: ui/views/controls/glow_hover_controller.h |
diff --git a/ui/views/controls/glow_hover_controller.h b/ui/views/controls/glow_hover_controller.h |
index 6be5ae7b10dc6047be4e86ce39fba597b8d502ff..00bf5287c8faba1344103a074d2fd7225fb5b838 100644 |
--- a/ui/views/controls/glow_hover_controller.h |
+++ b/ui/views/controls/glow_hover_controller.h |
@@ -44,6 +44,8 @@ class VIEWS_EXPORT GlowHoverController : public gfx::AnimationDelegate { |
// constructor. |
void SetLocation(const gfx::Point& location); |
+ const gfx::Point& location() const { return location_; } |
+ |
// Initiates showing the hover. |
void Show(Style style); |
@@ -56,14 +58,12 @@ class VIEWS_EXPORT GlowHoverController : public gfx::AnimationDelegate { |
// Returns the value of the animation. |
double GetAnimationValue() const; |
+ SkAlpha GetAlpha() const; |
+ |
// Returns true if there is something to be drawn. Use this instead of |
// invoking Draw() if creating |mask_image| is expensive. |
bool ShouldDraw() const; |
- // If the hover is currently visible it is drawn to the supplied canvas. |
- // |mask_image| is used to determine what parts of the canvas to draw on. |
- void Draw(gfx::Canvas* canvas, const gfx::ImageSkia& mask_image) const; |
- |
// gfx::AnimationDelegate overrides: |
void AnimationEnded(const gfx::Animation* animation) override; |
void AnimationProgressed(const gfx::Animation* animation) override; |