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

Side by Side Diff: ui/gfx/animation/linear_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/animation_unittest.cc ('k') | ui/gfx/animation/linear_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_LINEAR_ANIMATION_H_ 5 #ifndef UI_BASE_ANIMATION_LINEAR_ANIMATION_H_
6 #define UI_BASE_ANIMATION_LINEAR_ANIMATION_H_ 6 #define UI_BASE_ANIMATION_LINEAR_ANIMATION_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "ui/base/animation/animation.h" 9 #include "ui/gfx/animation/animation.h"
10 10
11 namespace ui { 11 namespace gfx {
12 12
13 class AnimationDelegate; 13 class AnimationDelegate;
14 14
15 // Linear time bounded animation. As the animation progresses AnimateToState is 15 // Linear time bounded animation. As the animation progresses AnimateToState is
16 // invoked. 16 // invoked.
17 class UI_EXPORT LinearAnimation : public Animation { 17 class GFX_EXPORT LinearAnimation : public Animation {
18 public: 18 public:
19 // Initializes everything except the duration. 19 // Initializes everything except the duration.
20 // 20 //
21 // Caller must make sure to call SetDuration() if they use this 21 // Caller must make sure to call SetDuration() if they use this
22 // constructor; it is preferable to use the full one, but sometimes 22 // constructor; it is preferable to use the full one, but sometimes
23 // duration can change between calls to Start() and we need to 23 // duration can change between calls to Start() and we need to
24 // expose this interface. 24 // expose this interface.
25 LinearAnimation(int frame_rate, AnimationDelegate* delegate); 25 LinearAnimation(int frame_rate, AnimationDelegate* delegate);
26 26
27 // Initializes all fields. 27 // Initializes all fields.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Current state, on a scale from 0.0 to 1.0. 67 // Current state, on a scale from 0.0 to 1.0.
68 double state_; 68 double state_;
69 69
70 // If true, we're in end. This is used to determine if the animation should 70 // If true, we're in end. This is used to determine if the animation should
71 // be advanced to the end from AnimationStopped. 71 // be advanced to the end from AnimationStopped.
72 bool in_end_; 72 bool in_end_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(LinearAnimation); 74 DISALLOW_COPY_AND_ASSIGN(LinearAnimation);
75 }; 75 };
76 76
77 } // namespace ui 77 } // namespace gfx
78 78
79 #endif // APP_LINEAR_ANIMATION_H_ 79 #endif // APP_LINEAR_ANIMATION_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/animation_unittest.cc ('k') | ui/gfx/animation/linear_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698