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

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

Issue 10386212: Add new attention state to launcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« ash/launcher/launcher_button.cc ('K') | « ui/base/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/base/animation/tween.cc
diff --git a/ui/base/animation/tween.cc b/ui/base/animation/tween.cc
index c1e4a472f1ff9da834b2f488212d0563eef6ec56..fa299c193724544e5acaca0f1d22332f194b97d1 100644
--- a/ui/base/animation/tween.cc
+++ b/ui/base/animation/tween.cc
@@ -42,6 +42,9 @@ double Tween::CalculateValue(Tween::Type type, double state) {
case EASE_OUT:
return 1.0 - pow(1.0 - state, 2);
+ case SMOOTH_IN_OUT:
+ return sin(state);
+
case ZERO:
return 0;
}
« ash/launcher/launcher_button.cc ('K') | « ui/base/animation/tween.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698