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

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

Issue 1757993004: Added ink drop hover/ripple to menu hosting bookmark buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sky@ & varkha@ comments. Created 4 years, 9 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 2d71307768ea47067ed81d4f5549852f59ded576..ec511e2198621c82580defa1c9b866a2ecaf64e8 100644
--- a/ui/views/animation/ink_drop_animation_controller.h
+++ b/ui/views/animation/ink_drop_animation_controller.h
@@ -37,6 +37,12 @@ class VIEWS_EXPORT InkDropAnimationController {
// Animates from the current InkDropState to |ink_drop_state|.
virtual void AnimateToState(InkDropState ink_drop_state) = 0;
+ // Immediately snaps the InkDropState to ACTIVATED. This more specific
+ // implementation of the non-existent SnapToState(InkDropState) function is
+ // the only one available because it was the only InkDropState that clients
+ // needed to skip animations for.
+ virtual void SnapToActivated() = 0;
+
// Enables or disables the hover state.
virtual void SetHovered(bool is_hovered) = 0;
« no previous file with comments | « ui/views/animation/ink_drop_animation.cc ('k') | ui/views/animation/ink_drop_animation_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698