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