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.
6 #include "core/events/AnimationPlayerEvent.h"
10 AnimationPlayerEventInit::AnimationPlayerEventInit()
16 AnimationPlayerEvent::AnimationPlayerEvent()
20 ScriptWrappable::init(this);
23 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double currentTime, double timelineTime)
24 : Event(type, false, false)
25 , m_currentTime(currentTime)
26 , m_timelineTime(timelineTime)
28 ScriptWrappable::init(this);
31 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const AnimationPlayerEventInit& initializer)
32 : Event(type, initializer)
33 , m_currentTime(initializer.currentTime)
34 , m_timelineTime(initializer.timelineTime)
36 ScriptWrappable::init(this);
39 AnimationPlayerEvent::~AnimationPlayerEvent()
43 double AnimationPlayerEvent::currentTime() const
48 double AnimationPlayerEvent::timelineTime() const
50 return m_timelineTime;
53 const AtomicString& AnimationPlayerEvent::interfaceName() const
55 return EventNames::AnimationPlayerEvent;
58 void AnimationPlayerEvent::trace(Visitor* visitor)
60 Event::trace(visitor);
63 } // namespace WebCore