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

Unified Diff: ui/gfx/animation/tween.cc

Issue 2947843005: Update voice interaction animation (Closed)
Patch Set: Created 3 years, 6 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
« ui/gfx/animation/tween.h ('K') | « ui/gfx/animation/tween.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/tween.cc
diff --git a/ui/gfx/animation/tween.cc b/ui/gfx/animation/tween.cc
index e608ee58e1954ffb4874ae24ee5471bafc07ec0c..f9498d9b4380daa750bcbcf807ab197ff103a04d 100644
--- a/ui/gfx/animation/tween.cc
+++ b/ui/gfx/animation/tween.cc
@@ -61,6 +61,9 @@ double Tween::CalculateValue(Tween::Type type, double state) {
case LINEAR_OUT_SLOW_IN:
return gfx::CubicBezier(0, 0, .2, 1).Solve(state);
+ case SLOW_OUT_LINEAR_IN:
+ return gfx::CubicBezier(0, 0, 1, .2).Solve(state);
+
case FAST_OUT_LINEAR_IN:
return gfx::CubicBezier(0.4, 0, 1, 1).Solve(state);
« ui/gfx/animation/tween.h ('K') | « ui/gfx/animation/tween.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698