[email protected] | f6767806 | 2011-01-07 17:33:39 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 2dba83f | 2013-09-18 14:16:42 | [diff] [blame] | 5 | #ifndef UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_ |
6 | #define UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_ | ||||
[email protected] | f6767806 | 2011-01-07 17:33:39 | [diff] [blame] | 7 | |
chrishtr | bdbe318 | 2017-03-15 15:15:43 | [diff] [blame] | 8 | #include "ui/gfx/animation/animation_export.h" |
[email protected] | 6827766b | 2011-07-28 06:32:33 | [diff] [blame] | 9 | |
[email protected] | ffb15d1 | 2013-09-15 17:29:30 | [diff] [blame] | 10 | namespace gfx { |
[email protected] | f6767806 | 2011-01-07 17:33:39 | [diff] [blame] | 11 | |
12 | class Animation; | ||||
sangwoo.ko | 5b3d5a41f | 2019-05-08 03:25:38 | [diff] [blame] | 13 | class AnimationContainer; |
[email protected] | f6767806 | 2011-01-07 17:33:39 | [diff] [blame] | 14 | |
15 | // AnimationDelegate | ||||
16 | // | ||||
17 | // Implement this interface when you want to receive notifications about the | ||||
18 | // state of an animation. | ||||
chrishtr | bdbe318 | 2017-03-15 15:15:43 | [diff] [blame] | 19 | class ANIMATION_EXPORT AnimationDelegate { |
[email protected] | f6767806 | 2011-01-07 17:33:39 | [diff] [blame] | 20 | public: |
[email protected] | fe32249 | 2014-06-17 10:24:56 | [diff] [blame] | 21 | virtual ~AnimationDelegate() {} |
22 | |||||
[email protected] | f6767806 | 2011-01-07 17:33:39 | [diff] [blame] | 23 | // Called when an animation has completed. |
24 | virtual void AnimationEnded(const Animation* animation) {} | ||||
25 | |||||
26 | // Called when an animation has progressed. | ||||
27 | virtual void AnimationProgressed(const Animation* animation) {} | ||||
28 | |||||
29 | // Called when an animation has been canceled. | ||||
30 | virtual void AnimationCanceled(const Animation* animation) {} | ||||
sangwoo.ko | 5b3d5a41f | 2019-05-08 03:25:38 | [diff] [blame] | 31 | |
32 | // Called when an animation container has been set. This gives a chance to | ||||
33 | // set a custom animation runner. | ||||
34 | virtual void AnimationContainerWasSet(AnimationContainer* container) {} | ||||
[email protected] | f6767806 | 2011-01-07 17:33:39 | [diff] [blame] | 35 | }; |
36 | |||||
[email protected] | ffb15d1 | 2013-09-15 17:29:30 | [diff] [blame] | 37 | } // namespace gfx |
[email protected] | f6767806 | 2011-01-07 17:33:39 | [diff] [blame] | 38 | |
[email protected] | 2dba83f | 2013-09-18 14:16:42 | [diff] [blame] | 39 | #endif // UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_ |