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

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

Issue 10823387: Revert 152059 - Gradient overlay for constrained window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « ui/base/animation/linear_animation.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/linear_animation.cc
===================================================================
--- ui/base/animation/linear_animation.cc (revision 152061)
+++ ui/base/animation/linear_animation.cc (working copy)
@@ -45,14 +45,6 @@
return state_;
}
-void LinearAnimation::SetCurrentValue(double new_value) {
- new_value = std::max(0.0, std::min(1.0, new_value));
- base::TimeDelta time_delta = base::TimeDelta::FromMicroseconds(
- duration_.InMicroseconds() * (new_value - state_));
- SetStartTime(start_time() - time_delta);
- state_ = new_value;
-}
-
void LinearAnimation::End() {
if (!is_animating())
return;
@@ -87,10 +79,6 @@
Stop();
}
-void LinearAnimation::AnimationStarted() {
- state_ = 0.0;
-}
-
void LinearAnimation::AnimationStopped() {
if (!in_end_)
return;
« no previous file with comments | « ui/base/animation/linear_animation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698