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

Side by Side Diff: ui/gfx/animation/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
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_ANIMATION_H_ 5 #ifndef UI_BASE_ANIMATION_ANIMATION_H_
6 #define UI_BASE_ANIMATION_ANIMATION_H_ 6 #define UI_BASE_ANIMATION_ANIMATION_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "ui/base/animation/animation_container_element.h" 11 #include "ui/gfx/animation/animation_container_element.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Rect; 14 class Rect;
15 } 15 }
16 16
17 namespace ui { 17 namespace gfx {
18 18
19 class AnimationContainer; 19 class AnimationContainer;
20 class AnimationDelegate; 20 class AnimationDelegate;
21 21
22 // Base class used in implementing animations. You only need use this class if 22 // Base class used in implementing animations. You only need use this class if
23 // you're implementing a new animation type, otherwise you'll likely want one of 23 // you're implementing a new animation type, otherwise you'll likely want one of
24 // LinearAnimation, SlideAnimation, ThrobAnimation or MultiAnimation. 24 // LinearAnimation, SlideAnimation, ThrobAnimation or MultiAnimation.
25 // 25 //
26 // To subclass override Step, which is invoked as the animation progresses and 26 // To subclass override Step, which is invoked as the animation progresses and
27 // GetCurrentValue() to return the value appropriate to the animation. 27 // GetCurrentValue() to return the value appropriate to the animation.
28 class UI_EXPORT Animation : public AnimationContainerElement { 28 class GFX_EXPORT Animation : public AnimationContainerElement {
29 public: 29 public:
30 explicit Animation(base::TimeDelta timer_interval); 30 explicit Animation(base::TimeDelta timer_interval);
31 virtual ~Animation(); 31 virtual ~Animation();
32 32
33 // Starts the animation. Does nothing if the animation is already running. 33 // Starts the animation. Does nothing if the animation is already running.
34 void Start(); 34 void Start();
35 35
36 // Stops the animation. Does nothing if the animation is not running. 36 // Stops the animation. Does nothing if the animation is not running.
37 void Stop(); 37 void Stop();
38 38
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // Container we're in. If non-null we're animating. 98 // Container we're in. If non-null we're animating.
99 scoped_refptr<AnimationContainer> container_; 99 scoped_refptr<AnimationContainer> container_;
100 100
101 // Time we started at. 101 // Time we started at.
102 base::TimeTicks start_time_; 102 base::TimeTicks start_time_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(Animation); 104 DISALLOW_COPY_AND_ASSIGN(Animation);
105 }; 105 };
106 106
107 } // namespace ui 107 } // namespace gfx
108 108
109 #endif // UI_BASE_ANIMATION_ANIMATION_H_ 109 #endif // UI_BASE_ANIMATION_ANIMATION_H_
OLDNEW
« no previous file with comments | « ui/compositor/transform_animation_curve_adapter_unittest.cc ('k') | ui/gfx/animation/animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698