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

Side by Side Diff: ui/gfx/animation/animation_container_element.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/animation_container.h ('k') | ui/gfx/animation/animation_container_observer.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_ANIMATION_CONTAINER_ELEMENT_H_ 5 #ifndef UI_GFX_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_
6 #define UI_GFX_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_ 6 #define UI_GFX_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "ui/gfx/gfx_export.h" 9 #include "ui/gfx/animation/animation_export.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 // Interface for the elements the AnimationContainer contains. This is 13 // Interface for the elements the AnimationContainer contains. This is
14 // implemented by Animation. 14 // implemented by Animation.
15 class GFX_EXPORT AnimationContainerElement { 15 class ANIMATION_EXPORT AnimationContainerElement {
16 public: 16 public:
17 // Sets the start of the animation. This is invoked from 17 // Sets the start of the animation. This is invoked from
18 // AnimationContainer::Start. 18 // AnimationContainer::Start.
19 virtual void SetStartTime(base::TimeTicks start_time) = 0; 19 virtual void SetStartTime(base::TimeTicks start_time) = 0;
20 20
21 // Invoked when the animation is to progress. 21 // Invoked when the animation is to progress.
22 virtual void Step(base::TimeTicks time_now) = 0; 22 virtual void Step(base::TimeTicks time_now) = 0;
23 23
24 // Returns the time interval of the animation. If an Element needs to change 24 // Returns the time interval of the animation. If an Element needs to change
25 // this it should first invoke Stop, then Start. 25 // this it should first invoke Stop, then Start.
26 virtual base::TimeDelta GetTimerInterval() const = 0; 26 virtual base::TimeDelta GetTimerInterval() const = 0;
27 27
28 protected: 28 protected:
29 virtual ~AnimationContainerElement() {} 29 virtual ~AnimationContainerElement() {}
30 }; 30 };
31 31
32 } // namespace gfx 32 } // namespace gfx
33 33
34 #endif // UI_GFX_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_ 34 #endif // UI_GFX_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/animation_container.h ('k') | ui/gfx/animation/animation_container_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698