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

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

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)
Patch Set: sky review 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
Index: ui/gfx/animation/slide_animation.cc
diff --git a/ui/gfx/animation/slide_animation.cc b/ui/gfx/animation/slide_animation.cc
index d08ac41d9af33b7205a7e522f8b30139ba8d6c74..780e8ec8b0fa70593b13042edc5b228484e067d2 100644
--- a/ui/gfx/animation/slide_animation.cc
+++ b/ui/gfx/animation/slide_animation.cc
@@ -8,22 +8,18 @@
namespace gfx {
-// How many frames per second to target.
-static const int kDefaultFrameRateHz = 60;
-
// How long animations should take by default.
static const int kDefaultDurationMs = 120;
SlideAnimation::SlideAnimation(AnimationDelegate* target)
- : LinearAnimation(kDefaultFrameRateHz, target),
+ : LinearAnimation(target),
target_(target),
tween_type_(Tween::EASE_OUT),
showing_(false),
value_start_(0),
value_end_(0),
value_current_(0),
- slide_duration_(kDefaultDurationMs) {
-}
+ slide_duration_(kDefaultDurationMs) {}
SlideAnimation::~SlideAnimation() {
}

Powered by Google App Engine
This is Rietveld 408576698