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

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

Issue 2750743003: Move ui/gfx/animation/ into its own component. (Closed)
Patch Set: none 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
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_ANIMATION_H_ 5 #ifndef UI_GFX_ANIMATION_ANIMATION_H_
6 #define UI_GFX_ANIMATION_ANIMATION_H_ 6 #define UI_GFX_ANIMATION_ANIMATION_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "ui/gfx/animation/animation_container_element.h" 12 #include "ui/gfx/animation/animation_container_element.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class Rect; 15 class Rect;
16 } 16 }
17 17
18 namespace gfx { 18 namespace gfx {
19 19
20 class AnimationContainer; 20 class AnimationContainer;
21 class AnimationDelegate; 21 class AnimationDelegate;
22 22
23 // Base class used in implementing animations. You only need use this class if 23 // Base class used in implementing animations. You only need use this class if
24 // you're implementing a new animation type, otherwise you'll likely want one of 24 // you're implementing a new animation type, otherwise you'll likely want one of
25 // LinearAnimation, SlideAnimation, ThrobAnimation or MultiAnimation. 25 // LinearAnimation, SlideAnimation, ThrobAnimation or MultiAnimation.
26 // 26 //
27 // To subclass override Step, which is invoked as the animation progresses and 27 // To subclass override Step, which is invoked as the animation progresses and
28 // GetCurrentValue() to return the value appropriate to the animation. 28 // GetCurrentValue() to return the value appropriate to the animation.
29 class GFX_EXPORT Animation : public AnimationContainerElement { 29 class ANIMATION_EXPORT Animation : public AnimationContainerElement {
30 public: 30 public:
31 explicit Animation(base::TimeDelta timer_interval); 31 explicit Animation(base::TimeDelta timer_interval);
32 ~Animation() override; 32 ~Animation() override;
33 33
34 // Starts the animation. Does nothing if the animation is already running. 34 // Starts the animation. Does nothing if the animation is already running.
35 void Start(); 35 void Start();
36 36
37 // Stops the animation. Does nothing if the animation is not running. 37 // Stops the animation. Does nothing if the animation is not running.
38 void Stop(); 38 void Stop();
39 39
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Time we started at. 107 // Time we started at.
108 base::TimeTicks start_time_; 108 base::TimeTicks start_time_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(Animation); 110 DISALLOW_COPY_AND_ASSIGN(Animation);
111 }; 111 };
112 112
113 } // namespace gfx 113 } // namespace gfx
114 114
115 #endif // UI_GFX_ANIMATION_ANIMATION_H_ 115 #endif // UI_GFX_ANIMATION_ANIMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698