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

Side by Side Diff: ui/base/animation/animation_container_element.h

Issue 6154001: Move animation code to new ui/base/animation directory.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2010 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 APP_ANIMATION_CONTAINER_ELEMENT_H_ 5 #ifndef UI_BASE_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_
6 #define APP_ANIMATION_CONTAINER_ELEMENT_H_ 6 #define UI_BASE_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/time.h" 9 #include "base/time.h"
10 10
11 namespace ui {
12
11 // Interface for the elements the AnimationContainer contains. This is 13 // Interface for the elements the AnimationContainer contains. This is
12 // implemented by Animation. 14 // implemented by Animation.
13 class AnimationContainerElement { 15 class AnimationContainerElement {
14 public: 16 public:
15 // Sets the start of the animation. This is invoked from 17 // Sets the start of the animation. This is invoked from
16 // AnimationContainer::Start. 18 // AnimationContainer::Start.
17 virtual void SetStartTime(base::TimeTicks start_time) = 0; 19 virtual void SetStartTime(base::TimeTicks start_time) = 0;
18 20
19 // Invoked when the animation is to progress. 21 // Invoked when the animation is to progress.
20 virtual void Step(base::TimeTicks time_now) = 0; 22 virtual void Step(base::TimeTicks time_now) = 0;
21 23
22 // 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
23 // this it should first invoke Stop, then Start. 25 // this it should first invoke Stop, then Start.
24 virtual base::TimeDelta GetTimerInterval() const = 0; 26 virtual base::TimeDelta GetTimerInterval() const = 0;
25 27
26 protected: 28 protected:
27 virtual ~AnimationContainerElement() {} 29 virtual ~AnimationContainerElement() {}
28 }; 30 };
29 31
30 #endif // APP_ANIMATION_CONTAINER_ELEMENT_H_ 32 } // namespace ui
33
34 #endif // UI_BASE_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_
OLDNEW
« no previous file with comments | « ui/base/animation/animation_container.cc ('k') | ui/base/animation/animation_container_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698