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

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

Issue 1890243002: Expand the Material Design hover as it fades out when a ripple is triggered. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Optimized InkDropHover::AnimateFade() to not trigger a transformation animation if not required. Created 4 years, 8 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
« no previous file with comments | « no previous file | ui/views/animation/ink_drop_animation_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_animation_controller_impl.h
diff --git a/ui/views/animation/ink_drop_animation_controller_impl.h b/ui/views/animation/ink_drop_animation_controller_impl.h
index bcf9f8e0ae039f50d74cf65756630b4795181295..ee6d696077165ba64911fb6205906e449cab59d3 100644
--- a/ui/views/animation/ink_drop_animation_controller_impl.h
+++ b/ui/views/animation/ink_drop_animation_controller_impl.h
@@ -74,8 +74,11 @@ class VIEWS_EXPORT InkDropAnimationControllerImpl
// Enables or disables the hover state based on |is_hovered| and if an
// animation is triggered it will be scheduled to have the given
- // |animation_duration|.
- void SetHoveredInternal(bool is_hovered, base::TimeDelta animation_duration);
+ // |animation_duration|. If |explode| is true the hover will expand as it
+ // fades out. |explode| is ignored when |is_hovered| is true.
+ void SetHoveredInternal(bool is_hovered,
+ base::TimeDelta animation_duration,
+ bool explode);
// Starts the |hover_after_animation_timer_| timer. This will stop the current
// |hover_after_animation_timer_| instance if it exists.
« no previous file with comments | « no previous file | ui/views/animation/ink_drop_animation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698