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

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

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/animation/linear_animation.cc ('k') | ui/gfx/animation/multi_animation.cc » ('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_BASE_ANIMATION_MULTI_ANIMATION_H_ 5 #ifndef UI_BASE_ANIMATION_MULTI_ANIMATION_H_
6 #define UI_BASE_ANIMATION_MULTI_ANIMATION_H_ 6 #define UI_BASE_ANIMATION_MULTI_ANIMATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/base/animation/animation.h" 10 #include "ui/gfx/animation/animation.h"
11 #include "ui/base/animation/tween.h" 11 #include "ui/gfx/animation/tween.h"
12 12
13 namespace ui { 13 namespace gfx {
14 14
15 // MultiAnimation is an animation that consists of a number of sub animations. 15 // MultiAnimation is an animation that consists of a number of sub animations.
16 // To create a MultiAnimation pass in the parts, invoke Start() and the delegate 16 // To create a MultiAnimation pass in the parts, invoke Start() and the delegate
17 // is notified as the animation progresses. By default MultiAnimation runs until 17 // is notified as the animation progresses. By default MultiAnimation runs until
18 // Stop is invoked, see |set_continuous()| for details. 18 // Stop is invoked, see |set_continuous()| for details.
19 class UI_EXPORT MultiAnimation : public Animation { 19 class GFX_EXPORT MultiAnimation : public Animation {
20 public: 20 public:
21 // Defines part of the animation. Each part consists of the following: 21 // Defines part of the animation. Each part consists of the following:
22 // 22 //
23 // time_ms: the time of the part. 23 // time_ms: the time of the part.
24 // start_time_ms: the amount of time to offset this part by when calculating 24 // start_time_ms: the amount of time to offset this part by when calculating
25 // the percented completed. 25 // the percented completed.
26 // end_time_ms: the end time used to calculate the percentange completed. 26 // end_time_ms: the end time used to calculate the percentange completed.
27 // 27 //
28 // In most cases |start_time_ms| = 0 and |end_time_ms| = |time_ms|. But you 28 // In most cases |start_time_ms| = 0 and |end_time_ms| = |time_ms|. But you
29 // can adjust the start/end for different effects. For example, to run a part 29 // can adjust the start/end for different effects. For example, to run a part
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Index of the current part. 85 // Index of the current part.
86 size_t current_part_index_; 86 size_t current_part_index_;
87 87
88 // See description above setter. 88 // See description above setter.
89 bool continuous_; 89 bool continuous_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(MultiAnimation); 91 DISALLOW_COPY_AND_ASSIGN(MultiAnimation);
92 }; 92 };
93 93
94 } // namespace ui 94 } // namespace gfx
95 95
96 #endif // UI_BASE_ANIMATION_MULTI_ANIMATION_H_ 96 #endif // UI_BASE_ANIMATION_MULTI_ANIMATION_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/linear_animation.cc ('k') | ui/gfx/animation/multi_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698