| Index: Source/core/animation/AnimationPlayer.h
|
| diff --git a/Source/core/animation/AnimationPlayer.h b/Source/core/animation/AnimationPlayer.h
|
| index e8b79ba703ce94f39fd465026292a92e015d2863..0dee2b2d798a9d665a25fc633564df7c018bda20 100644
|
| --- a/Source/core/animation/AnimationPlayer.h
|
| +++ b/Source/core/animation/AnimationPlayer.h
|
| @@ -32,6 +32,7 @@
|
| #define AnimationPlayer_h
|
|
|
| #include "core/animation/TimedItem.h"
|
| +#include "core/events/EventTarget.h"
|
| #include "wtf/RefPtr.h"
|
|
|
| namespace WebCore {
|
| @@ -39,8 +40,8 @@ namespace WebCore {
|
| class DocumentTimeline;
|
| class ExceptionState;
|
|
|
| -class AnimationPlayer FINAL : public RefCounted<AnimationPlayer> {
|
| -
|
| +class AnimationPlayer FINAL : public RefCounted<AnimationPlayer>, public EventTargetWithInlineData {
|
| + REFCOUNTED_EVENT_TARGET(AnimationPlayer);
|
| public:
|
| ~AnimationPlayer();
|
| static PassRefPtr<AnimationPlayer> create(DocumentTimeline&, TimedItem*);
|
| @@ -66,6 +67,11 @@ public:
|
| void finish(ExceptionState&);
|
| bool finished() { return limited(currentTime()); }
|
|
|
| + DEFINE_ATTRIBUTE_EVENT_LISTENER(finish);
|
| +
|
| + virtual const AtomicString& interfaceName() const OVERRIDE;
|
| + virtual ExecutionContext* executionContext() const OVERRIDE;
|
| +
|
| double playbackRate() const { return m_playbackRate; }
|
| void setPlaybackRate(double);
|
| const DocumentTimeline* timeline() const { return m_timeline; }
|
|
|