| 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_DELEGATE_H_ | 5 #ifndef UI_BASE_ANIMATION_ANIMATION_DELEGATE_H_ |
| 6 #define UI_BASE_ANIMATION_ANIMATION_DELEGATE_H_ | 6 #define UI_BASE_ANIMATION_ANIMATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/base/ui_export.h" | 8 #include "ui/gfx/gfx_export.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace gfx { |
| 11 | 11 |
| 12 class Animation; | 12 class Animation; |
| 13 | 13 |
| 14 // AnimationDelegate | 14 // AnimationDelegate |
| 15 // | 15 // |
| 16 // Implement this interface when you want to receive notifications about the | 16 // Implement this interface when you want to receive notifications about the |
| 17 // state of an animation. | 17 // state of an animation. |
| 18 class UI_EXPORT AnimationDelegate { | 18 class GFX_EXPORT AnimationDelegate { |
| 19 public: | 19 public: |
| 20 // Called when an animation has completed. | 20 // Called when an animation has completed. |
| 21 virtual void AnimationEnded(const Animation* animation) {} | 21 virtual void AnimationEnded(const Animation* animation) {} |
| 22 | 22 |
| 23 // Called when an animation has progressed. | 23 // Called when an animation has progressed. |
| 24 virtual void AnimationProgressed(const Animation* animation) {} | 24 virtual void AnimationProgressed(const Animation* animation) {} |
| 25 | 25 |
| 26 // Called when an animation has been canceled. | 26 // Called when an animation has been canceled. |
| 27 virtual void AnimationCanceled(const Animation* animation) {} | 27 virtual void AnimationCanceled(const Animation* animation) {} |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 virtual ~AnimationDelegate() {} | 30 virtual ~AnimationDelegate() {} |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace ui | 33 } // namespace gfx |
| 34 | 34 |
| 35 #endif // UI_BASE_ANIMATION_ANIMATION_DELEGATE_H_ | 35 #endif // UI_BASE_ANIMATION_ANIMATION_DELEGATE_H_ |
| OLD | NEW |