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

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: Moved MouseEntered/Exit() to hover handling in to the ButtonInkDropDelegate. Created 4 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/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 d4d4fce96bb1a67bdcfd04ef9acab01a9a880ad2..993c85259800d9e7a67965d06bd8914284473d41 100644
--- a/ui/views/animation/ink_drop_animation_controller.h
+++ b/ui/views/animation/ink_drop_animation_controller.h
@@ -21,8 +21,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() {}
@@ -33,6 +33,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