OLD | NEW |
(Empty) | |
| 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 WebCore { |
| 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 ScriptWrappable::init(this); |
| 21 } |
| 22 |
| 23 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double curr
entTime, double timelineTime) |
| 24 : Event(type, false, false) |
| 25 , m_currentTime(currentTime) |
| 26 , m_timelineTime(timelineTime) |
| 27 { |
| 28 ScriptWrappable::init(this); |
| 29 } |
| 30 |
| 31 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const Anima
tionPlayerEventInit& initializer) |
| 32 : Event(type, initializer) |
| 33 , m_currentTime(initializer.currentTime) |
| 34 , m_timelineTime(initializer.timelineTime) |
| 35 { |
| 36 ScriptWrappable::init(this); |
| 37 } |
| 38 |
| 39 AnimationPlayerEvent::~AnimationPlayerEvent() |
| 40 { |
| 41 } |
| 42 |
| 43 double AnimationPlayerEvent::currentTime() const |
| 44 { |
| 45 return m_currentTime; |
| 46 } |
| 47 |
| 48 double AnimationPlayerEvent::timelineTime() const |
| 49 { |
| 50 return m_timelineTime; |
| 51 } |
| 52 |
| 53 const AtomicString& AnimationPlayerEvent::interfaceName() const |
| 54 { |
| 55 return EventNames::AnimationPlayerEvent; |
| 56 } |
| 57 |
| 58 void AnimationPlayerEvent::trace(Visitor* visitor) |
| 59 { |
| 60 Event::trace(visitor); |
| 61 } |
| 62 |
| 63 } // namespace WebCore |
OLD | NEW |