| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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 | |
| 5 #ifndef APP_ANIMATION_DELEGATE_H_ | |
| 6 #define APP_ANIMATION_DELEGATE_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 class Animation; | |
| 10 | |
| 11 // AnimationDelegate | |
| 12 // | |
| 13 // Implement this interface when you want to receive notifications about the | |
| 14 // state of an animation. | |
| 15 class AnimationDelegate { | |
| 16 public: | |
| 17 // Called when an animation has completed. | |
| 18 virtual void AnimationEnded(const Animation* animation) {} | |
| 19 | |
| 20 // Called when an animation has progressed. | |
| 21 virtual void AnimationProgressed(const Animation* animation) {} | |
| 22 | |
| 23 // Called when an animation has been canceled. | |
| 24 virtual void AnimationCanceled(const Animation* animation) {} | |
| 25 | |
| 26 protected: | |
| 27 virtual ~AnimationDelegate() {} | |
| 28 }; | |
| 29 | |
| 30 #endif // APP_ANIMATION_DELEGATE_H_ | |
| OLD | NEW |