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

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

Issue 12096014: Highlight tabs while scrubbing Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review issues Created 7 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: 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 1c75d4fde575c4135bc993a57305fc1eea02115d..7d8e62ce2bd17654d5f0e59eed3cc325ac1f0d7b 100644
--- a/ui/views/controls/glow_hover_controller.h
+++ b/ui/views/controls/glow_hover_controller.h
@@ -29,6 +29,11 @@ class View;
// invokes SchedulePaint() back on the View as necessary.
class VIEWS_EXPORT GlowHoverController : public ui::AnimationDelegate {
public:
+ enum Style {
+ SUBTLE,
+ PRONOUNCED
+ };
+
explicit GlowHoverController(views::View* view);
virtual ~GlowHoverController();
@@ -40,7 +45,7 @@ class VIEWS_EXPORT GlowHoverController : public ui::AnimationDelegate {
void SetLocation(const gfx::Point& location);
// Initiates showing the hover.
- void Show();
+ void Show(Style style);
// Hides the hover.
void Hide();
@@ -72,6 +77,7 @@ class VIEWS_EXPORT GlowHoverController : public ui::AnimationDelegate {
// Location of the glow, relative to view.
gfx::Point location_;
+ double opacity_scale_;
DISALLOW_COPY_AND_ASSIGN(GlowHoverController);
};

Powered by Google App Engine
This is Rietveld 408576698