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_OBSERVER_H_ | 5 #ifndef UI_BASE_ANIMATION_ANIMATION_CONTAINER_OBSERVER_H_ |
6 #define APP_ANIMATION_CONTAINER_OBSERVER_H_ | 6 #define UI_BASE_ANIMATION_ANIMATION_CONTAINER_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 namespace ui { |
| 10 |
9 class AnimationContainer; | 11 class AnimationContainer; |
10 | 12 |
11 // The observer is notified after every update of the animations managed by | 13 // The observer is notified after every update of the animations managed by |
12 // the container. | 14 // the container. |
13 class AnimationContainerObserver { | 15 class AnimationContainerObserver { |
14 public: | 16 public: |
15 // Invoked on every tick of the timer managed by the container and after | 17 // Invoked on every tick of the timer managed by the container and after |
16 // all the animations have updated. | 18 // all the animations have updated. |
17 virtual void AnimationContainerProgressed( | 19 virtual void AnimationContainerProgressed( |
18 AnimationContainer* container) = 0; | 20 AnimationContainer* container) = 0; |
19 | 21 |
20 // Invoked when no more animations are being managed by this container. | 22 // Invoked when no more animations are being managed by this container. |
21 virtual void AnimationContainerEmpty(AnimationContainer* container) = 0; | 23 virtual void AnimationContainerEmpty(AnimationContainer* container) = 0; |
22 | 24 |
23 protected: | 25 protected: |
24 virtual ~AnimationContainerObserver() {} | 26 virtual ~AnimationContainerObserver() {} |
25 }; | 27 }; |
26 | 28 |
27 #endif // APP_ANIMATION_CONTAINER_OBSERVER_H_ | 29 } // namespace ui |
| 30 |
| 31 #endif // UI_BASE_ANIMATION_ANIMATION_CONTAINER_OBSERVER_H_ |
OLD | NEW |