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

Unified Diff: ui/views/controls/glow_hover_controller.h

Issue 1418563016: Use the new DrawHighlight() helper to replace GlowHoverController::Draw(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nuke #includes Created 5 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | ui/views/controls/glow_hover_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | ui/views/controls/glow_hover_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698