blob: b582d16ef6408523f82f5b7cc1b7c01be73cc111 [file] [log] [blame]
[email protected]f67678062011-01-07 17:33:391// 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]2dba83f2013-09-18 14:16:425#ifndef UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_
6#define UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_
[email protected]f67678062011-01-07 17:33:397
chrishtrbdbe3182017-03-15 15:15:438#include "ui/gfx/animation/animation_export.h"
[email protected]6827766b2011-07-28 06:32:339
[email protected]ffb15d12013-09-15 17:29:3010namespace gfx {
[email protected]f67678062011-01-07 17:33:3911
12class Animation;
sangwoo.ko5b3d5a41f2019-05-08 03:25:3813class AnimationContainer;
[email protected]f67678062011-01-07 17:33:3914
15// AnimationDelegate
16//
17// Implement this interface when you want to receive notifications about the
18// state of an animation.
chrishtrbdbe3182017-03-15 15:15:4319class ANIMATION_EXPORT AnimationDelegate {
[email protected]f67678062011-01-07 17:33:3920 public:
[email protected]fe322492014-06-17 10:24:5621 virtual ~AnimationDelegate() {}
22
[email protected]f67678062011-01-07 17:33:3923 // 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.ko5b3d5a41f2019-05-08 03:25:3831
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]f67678062011-01-07 17:33:3935};
36
[email protected]ffb15d12013-09-15 17:29:3037} // namespace gfx
[email protected]f67678062011-01-07 17:33:3938
[email protected]2dba83f2013-09-18 14:16:4239#endif // UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_