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

Side by Side Diff: ui/gfx/animation/multi_animation.h

Issue 2750743003: Move ui/gfx/animation/ into its own component. (Closed)
Patch Set: c Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/animation/linear_animation.h ('k') | ui/gfx/animation/slide_animation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_ANIMATION_MULTI_ANIMATION_H_ 5 #ifndef UI_GFX_ANIMATION_MULTI_ANIMATION_H_
6 #define UI_GFX_ANIMATION_MULTI_ANIMATION_H_ 6 #define UI_GFX_ANIMATION_MULTI_ANIMATION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "ui/gfx/animation/animation.h" 13 #include "ui/gfx/animation/animation.h"
14 #include "ui/gfx/animation/tween.h" 14 #include "ui/gfx/animation/tween.h"
15 15
16 namespace gfx { 16 namespace gfx {
17 17
18 // MultiAnimation is an animation that consists of a number of sub animations. 18 // MultiAnimation is an animation that consists of a number of sub animations.
19 // To create a MultiAnimation pass in the parts, invoke Start() and the delegate 19 // To create a MultiAnimation pass in the parts, invoke Start() and the delegate
20 // is notified as the animation progresses. By default MultiAnimation runs until 20 // is notified as the animation progresses. By default MultiAnimation runs until
21 // Stop is invoked, see |set_continuous()| for details. 21 // Stop is invoked, see |set_continuous()| for details.
22 class GFX_EXPORT MultiAnimation : public Animation { 22 class ANIMATION_EXPORT MultiAnimation : public Animation {
23 public: 23 public:
24 // Defines part of the animation. Each part consists of the following: 24 // Defines part of the animation. Each part consists of the following:
25 // 25 //
26 // time_ms: the time of the part. 26 // time_ms: the time of the part.
27 // start_time_ms: the amount of time to offset this part by when calculating 27 // start_time_ms: the amount of time to offset this part by when calculating
28 // the percented completed. 28 // the percented completed.
29 // end_time_ms: the end time used to calculate the percentange completed. 29 // end_time_ms: the end time used to calculate the percentange completed.
30 // 30 //
31 // In most cases |start_time_ms| = 0 and |end_time_ms| = |time_ms|. But you 31 // In most cases |start_time_ms| = 0 and |end_time_ms| = |time_ms|. But you
32 // can adjust the start/end for different effects. For example, to run a part 32 // can adjust the start/end for different effects. For example, to run a part
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // See description above setter. 92 // See description above setter.
93 bool continuous_; 93 bool continuous_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(MultiAnimation); 95 DISALLOW_COPY_AND_ASSIGN(MultiAnimation);
96 }; 96 };
97 97
98 } // namespace gfx 98 } // namespace gfx
99 99
100 #endif // UI_GFX_ANIMATION_MULTI_ANIMATION_H_ 100 #endif // UI_GFX_ANIMATION_MULTI_ANIMATION_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/linear_animation.h ('k') | ui/gfx/animation/slide_animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698