#ifndef CC_ANIMATION_ANIMATION_DELEGATE_H_
#define CC_ANIMATION_ANIMATION_DELEGATE_H_
#include <memory>
#include <optional>
#include "base/time/time.h"
#include "cc/animation/animation_export.h"
#include "ui/gfx/animation/keyframe/animation_curve.h"
namespace cc {
class CC_ANIMATION_EXPORT AnimationDelegate {
public:
virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time,
int target_property,
int group) = 0;
virtual void NotifyAnimationFinished(base::TimeTicks monotonic_time,
int target_property,
int group) = 0;
virtual void NotifyAnimationAborted(base::TimeTicks monotonic_time,
int target_property,
int group) = 0;
virtual void NotifyAnimationTakeover(
base::TimeTicks monotonic_time,
int target_property,
base::TimeTicks animation_start_time,
std::unique_ptr<gfx::AnimationCurve> curve) = 0;
virtual void NotifyLocalTimeUpdated(
std::optional<base::TimeDelta> local_time) = 0;
protected:
virtual ~AnimationDelegate() {}
};
}
#endif