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

Side by Side Diff: ui/gfx/animation/animation_container.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.cc ('k') | ui/gfx/animation/animation_container.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_ANIMATION_CONTAINER_H_ 5 #ifndef UI_BASE_ANIMATION_ANIMATION_CONTAINER_H_
6 #define UI_BASE_ANIMATION_ANIMATION_CONTAINER_H_ 6 #define UI_BASE_ANIMATION_ANIMATION_CONTAINER_H_
7 7
8 #include <set> 8 #include <set>
9 9
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 "base/timer/timer.h" 12 #include "base/timer/timer.h"
13 #include "ui/base/ui_export.h" 13 #include "ui/gfx/gfx_export.h"
14 14
15 namespace ui { 15 namespace gfx {
16 16
17 class AnimationContainerElement; 17 class AnimationContainerElement;
18 class AnimationContainerObserver; 18 class AnimationContainerObserver;
19 19
20 // AnimationContainer is used by Animation to manage the underlying timer. 20 // AnimationContainer is used by Animation to manage the underlying timer.
21 // Internally each Animation creates a single AnimationContainer. You can 21 // Internally each Animation creates a single AnimationContainer. You can
22 // group a set of Animations into the same AnimationContainer by way of 22 // group a set of Animations into the same AnimationContainer by way of
23 // Animation::SetContainer. Grouping a set of Animations into the same 23 // Animation::SetContainer. Grouping a set of Animations into the same
24 // AnimationContainer ensures they all update and start at the same time. 24 // AnimationContainer ensures they all update and start at the same time.
25 // 25 //
26 // AnimationContainer is ref counted. Each Animation contained within the 26 // AnimationContainer is ref counted. Each Animation contained within the
27 // AnimationContainer own it. 27 // AnimationContainer own it.
28 class UI_EXPORT AnimationContainer 28 class GFX_EXPORT AnimationContainer
29 : public base::RefCounted<AnimationContainer> { 29 : public base::RefCounted<AnimationContainer> {
30 public: 30 public:
31 AnimationContainer(); 31 AnimationContainer();
32 32
33 // Invoked by Animation when it needs to start. Starts the timer if necessary. 33 // Invoked by Animation when it needs to start. Starts the timer if necessary.
34 // NOTE: This is invoked by Animation for you, you shouldn't invoke this 34 // NOTE: This is invoked by Animation for you, you shouldn't invoke this
35 // directly. 35 // directly.
36 void Start(AnimationContainerElement* animation); 36 void Start(AnimationContainerElement* animation);
37 37
38 // Invoked by Animation when it needs to stop. If there are no more animations 38 // Invoked by Animation when it needs to stop. If there are no more animations
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Minimum interval the timers run at. 79 // Minimum interval the timers run at.
80 base::TimeDelta min_timer_interval_; 80 base::TimeDelta min_timer_interval_;
81 81
82 base::RepeatingTimer<AnimationContainer> timer_; 82 base::RepeatingTimer<AnimationContainer> timer_;
83 83
84 AnimationContainerObserver* observer_; 84 AnimationContainerObserver* observer_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(AnimationContainer); 86 DISALLOW_COPY_AND_ASSIGN(AnimationContainer);
87 }; 87 };
88 88
89 } // namespace ui 89 } // namespace gfx
90 90
91 #endif // UI_BASE_ANIMATION_ANIMATION_CONTAINER_H_ 91 #endif // UI_BASE_ANIMATION_ANIMATION_CONTAINER_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/animation.cc ('k') | ui/gfx/animation/animation_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698