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

Unified Diff: ui/views/animation/ink_drop_animation_controller.h

Issue 1390113006: Added material design mouse hover feedback support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialized radius members of InkDropAnimationControllerImpl. 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
Index: ui/views/animation/ink_drop_animation_controller.h
diff --git a/ui/views/animation/ink_drop_animation_controller.h b/ui/views/animation/ink_drop_animation_controller.h
index 77aed3b2982981e1d1536612c7ba78628461ecd9..51c115d5e518c8296d8fca162d2ff6d46f00386d 100644
--- a/ui/views/animation/ink_drop_animation_controller.h
+++ b/ui/views/animation/ink_drop_animation_controller.h
@@ -20,8 +20,8 @@ class Layer;
namespace views {
-// Pure virtual base class that manages an ink drop animation's lifetime and
-// state.
+// Pure virtual base class that manages the lifetime and state of an ink drop
+// animation as well as visual hover state feedback.
class VIEWS_EXPORT InkDropAnimationController {
public:
virtual ~InkDropAnimationController() {}
@@ -32,6 +32,12 @@ class VIEWS_EXPORT InkDropAnimationController {
// Animates from the current InkDropState to |ink_drop_state|.
virtual void AnimateToState(InkDropState ink_drop_state) = 0;
+ // Enables or disables the hover state.
+ virtual void SetHovered(bool is_hovered) = 0;
+
+ // Returns true if the hover state is enabled.
+ virtual bool IsHovered() const = 0;
+
virtual gfx::Size GetInkDropLargeSize() const = 0;
// Sets the different sizes of the ink drop.

Powered by Google App Engine
This is Rietveld 408576698