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