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

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

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)
Patch Set: attempt to unbreak mac and unit test Created 4 years, 3 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/gfx/animation/linear_animation.h ('k') | ui/gfx/animation/slide_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/linear_animation.cc
diff --git a/ui/gfx/animation/linear_animation.cc b/ui/gfx/animation/linear_animation.cc
index 7c7327958b2ce2abe61dd5f429667904214b475b..39bff2524aa7b6eca3652727425cd2ae6662a7c1 100644
--- a/ui/gfx/animation/linear_animation.cc
+++ b/ui/gfx/animation/linear_animation.cc
@@ -24,19 +24,13 @@ static TimeDelta CalculateInterval(int frame_rate) {
return TimeDelta::FromMicroseconds(timer_interval);
}
-LinearAnimation::LinearAnimation(int frame_rate,
- AnimationDelegate* delegate)
- : Animation(CalculateInterval(frame_rate)),
- state_(0.0),
- in_end_(false) {
- set_delegate(delegate);
-}
+LinearAnimation::LinearAnimation(AnimationDelegate* delegate, int frame_rate)
+ : LinearAnimation(0, frame_rate, delegate) {}
LinearAnimation::LinearAnimation(int duration,
int frame_rate,
AnimationDelegate* delegate)
: Animation(CalculateInterval(frame_rate)),
- duration_(TimeDelta::FromMilliseconds(duration)),
state_(0.0),
in_end_(false) {
set_delegate(delegate);
« no previous file with comments | « ui/gfx/animation/linear_animation.h ('k') | ui/gfx/animation/slide_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698