OLD | NEW |
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_H_ | 5 #ifndef UI_BASE_ANIMATION_ANIMATION_CONTAINER_H_ |
6 #define APP_ANIMATION_CONTAINER_H_ | 6 #define UI_BASE_ANIMATION_ANIMATION_CONTAINER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "base/timer.h" | 13 #include "base/timer.h" |
14 | 14 |
| 15 namespace ui { |
| 16 |
15 class AnimationContainerElement; | 17 class AnimationContainerElement; |
16 class AnimationContainerObserver; | 18 class AnimationContainerObserver; |
17 | 19 |
18 // AnimationContainer is used by Animation to manage the underlying timer. | 20 // AnimationContainer is used by Animation to manage the underlying timer. |
19 // Internally each Animation creates a single AnimationContainer. You can | 21 // Internally each Animation creates a single AnimationContainer. You can |
20 // 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 |
21 // Animation::SetContainer. Grouping a set of Animations into the same | 23 // Animation::SetContainer. Grouping a set of Animations into the same |
22 // AnimationContainer ensures they all update and start at the same time. | 24 // AnimationContainer ensures they all update and start at the same time. |
23 // | 25 // |
24 // AnimationContainer is ref counted. Each Animation contained within the | 26 // AnimationContainer is ref counted. Each Animation contained within the |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Minimum interval the timers run at. | 78 // Minimum interval the timers run at. |
77 base::TimeDelta min_timer_interval_; | 79 base::TimeDelta min_timer_interval_; |
78 | 80 |
79 base::RepeatingTimer<AnimationContainer> timer_; | 81 base::RepeatingTimer<AnimationContainer> timer_; |
80 | 82 |
81 AnimationContainerObserver* observer_; | 83 AnimationContainerObserver* observer_; |
82 | 84 |
83 DISALLOW_COPY_AND_ASSIGN(AnimationContainer); | 85 DISALLOW_COPY_AND_ASSIGN(AnimationContainer); |
84 }; | 86 }; |
85 | 87 |
86 #endif // APP_ANIMATION_CONTAINER_H_ | 88 } // namespace ui |
| 89 |
| 90 #endif // UI_BASE_ANIMATION_ANIMATION_CONTAINER_H_ |
OLD | NEW |