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. 4 5 #include "config.h" 6 #include "core/events/AnimationPlayerEvent.h" 7 8 namespace blink { 9 10 AnimationPlayerEventInit::AnimationPlayerEventInit() 11 : currentTime(0.0) 12 , timelineTime(0.0) 13 { 14 } 15 16 AnimationPlayerEvent::AnimationPlayerEvent() 17 : m_currentTime(0.0) 18 , m_timelineTime(0.0) 19 { 20 } 21 22 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double currentTime, double timelineTime) 23 : Event(type, false, false) 24 , m_currentTime(currentTime) 25 , m_timelineTime(timelineTime) 26 { 27 } 28 29 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const AnimationPlayerEventInit& initializer) 30 : Event(type, initializer) 31 , m_currentTime(initializer.currentTime) 32 , m_timelineTime(initializer.timelineTime) 33 { 34 } 35 36 AnimationPlayerEvent::~AnimationPlayerEvent() 37 { 38 } 39 40 double AnimationPlayerEvent::currentTime() const 41 { 42 return m_currentTime; 43 } 44 45 double AnimationPlayerEvent::timelineTime() const 46 { 47 return m_timelineTime; 48 } 49 50 const AtomicString& AnimationPlayerEvent::interfaceName() const 51 { 52 return EventNames::AnimationPlayerEvent; 53 } 54 55 void AnimationPlayerEvent::trace(Visitor* visitor) 56 { 57 Event::trace(visitor); 58 } 59 60 } // namespace blink 61