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

Unified Diff: ui/views/animation/ink_drop_hover.cc

Issue 1495753002: Make the material design ripple effect more visible on a quick action (single click or single tap) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests and addressed comments from previous patch sets. 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_hover.cc
diff --git a/ui/views/animation/ink_drop_hover.cc b/ui/views/animation/ink_drop_hover.cc
index 8f17674ecd0f4f79e51d97a4ead3ee90757337cf..439ee24f444f45df3e4935032f29bc3620eb5662 100644
--- a/ui/views/animation/ink_drop_hover.cc
+++ b/ui/views/animation/ink_drop_hover.cc
@@ -67,6 +67,7 @@ void InkDropHover::AnimateFade(HoverAnimationType animation_type,
ui::LayerAnimator* animator = layer_->GetAnimator();
ui::ScopedLayerAnimationSettings animation(animator);
+ animation.SetTweenType(gfx::Tween::EASE_IN_OUT);
animation.SetPreemptionStrategy(
ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET);
ui::LayerAnimationElement* animation_element =

Powered by Google App Engine
This is Rietveld 408576698