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

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

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)
Patch Set: better example code 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..fa74c82be3082a56c113cc339914f1d9a6ee315d 100644
--- a/ui/gfx/animation/linear_animation.h
+++ b/ui/gfx/animation/linear_animation.h
@@ -24,6 +24,8 @@ class GFX_EXPORT LinearAnimation : public Animation {
// duration can change between calls to Start() and we need to
// expose this interface.
LinearAnimation(int frame_rate, AnimationDelegate* delegate);
+ // As above, but uses a default frame rate.
+ explicit LinearAnimation(AnimationDelegate* delegate);
tdanderson 2016/09/12 17:11:13 Nice. Maybe also call this ctor from AutoclickRing
Evan Stade 2016/09/13 02:05:14 Done.
// Initializes all fields.
LinearAnimation(int duration, int frame_rate, AnimationDelegate* delegate);

Powered by Google App Engine
This is Rietveld 408576698