1 // Copyright 2014 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.
5 #ifndef AnimationPlayerEvent_h
6 #define AnimationPlayerEvent_h
8 #include "core/events/Event.h"
12 struct AnimationPlayerEventInit : public EventInit {
13 AnimationPlayerEventInit();
19 class AnimationPlayerEvent FINAL : public Event {
21 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create()
23 return adoptRefWillBeNoop(new AnimationPlayerEvent);
25 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create(const AtomicString& type, double currentTime, double timelineTime)
27 return adoptRefWillBeNoop(new AnimationPlayerEvent(type, currentTime, timelineTime));
29 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create(const AtomicString& type, const AnimationPlayerEventInit& initializer)
31 return adoptRefWillBeNoop(new AnimationPlayerEvent(type, initializer));
34 virtual ~AnimationPlayerEvent();
36 double currentTime() const;
37 double timelineTime() const;
39 virtual const AtomicString& interfaceName() const OVERRIDE;
41 virtual void trace(Visitor*) OVERRIDE;
44 AnimationPlayerEvent();
45 AnimationPlayerEvent(const AtomicString& type, double currentTime, double timelineTime);
46 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&);
49 double m_timelineTime;
54 #endif // AnimationPlayerEvent_h