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

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

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/linear_animation.h
diff --git a/ui/gfx/animation/linear_animation.h b/ui/gfx/animation/linear_animation.h
index d9e6de32374afcf862285c9b92e953d04b870eb8..02caac907b937c132e514e4fe224cafd33356516 100644
--- a/ui/gfx/animation/linear_animation.h
+++ b/ui/gfx/animation/linear_animation.h
@@ -17,13 +17,17 @@ class AnimationDelegate;
// invoked.
class GFX_EXPORT LinearAnimation : public Animation {
public:
+ // Default frame rate (hz).
+ static const int kDefaultFrameRate = 60;
+
// Initializes everything except the duration.
//
// Caller must make sure to call SetDuration() if they use this
// constructor; it is preferable to use the full one, but sometimes
// duration can change between calls to Start() and we need to
// expose this interface.
- LinearAnimation(int frame_rate, AnimationDelegate* delegate);
+ LinearAnimation(AnimationDelegate* delegate,
sky 2016/09/13 19:22:15 As the second parameter is optional I believe you
Evan Stade 2016/09/13 22:01:24 Done.
+ int frame_rate = kDefaultFrameRate);
// Initializes all fields.
LinearAnimation(int duration, int frame_rate, AnimationDelegate* delegate);

Powered by Google App Engine
This is Rietveld 408576698