Chromium Code Reviews| 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 #include "core/events/ThreadLocalEventNames.h" | |
|
alancutter (OOO until 2018)
2014/03/31 06:28:13
Unnecessary include.
Eric Willigers
2014/03/31 08:48:47
Done.
| |
| 9 | |
| 10 namespace WebCore { | |
| 11 | |
| 12 AnimationPlayerEventInit::AnimationPlayerEventInit() | |
| 13 : currentTime(0.0) | |
| 14 , timelineTime(0.0) | |
| 15 { | |
| 16 } | |
| 17 | |
| 18 AnimationPlayerEvent::AnimationPlayerEvent() | |
| 19 : m_currentTime(0.0) | |
| 20 , m_timelineTime(0.0) | |
| 21 { | |
| 22 ScriptWrappable::init(this); | |
| 23 } | |
| 24 | |
| 25 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double curr entTime, double timelineTime) | |
| 26 : Event(type, false, false) | |
| 27 , m_currentTime(currentTime) | |
| 28 , m_timelineTime(timelineTime) | |
| 29 { | |
| 30 ScriptWrappable::init(this); | |
| 31 } | |
| 32 | |
| 33 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const Anima tionPlayerEventInit& initializer) | |
| 34 : Event(type, initializer) | |
| 35 , m_currentTime(initializer.currentTime) | |
| 36 , m_timelineTime(initializer.timelineTime) | |
| 37 { | |
| 38 ScriptWrappable::init(this); | |
| 39 } | |
| 40 | |
| 41 AnimationPlayerEvent::~AnimationPlayerEvent() | |
| 42 { | |
| 43 } | |
| 44 | |
| 45 double AnimationPlayerEvent::currentTime() const | |
| 46 { | |
| 47 return m_currentTime; | |
| 48 } | |
| 49 | |
| 50 double AnimationPlayerEvent::timelineTime() const | |
| 51 { | |
| 52 return m_timelineTime; | |
| 53 } | |
| 54 | |
| 55 const AtomicString& AnimationPlayerEvent::interfaceName() const | |
| 56 { | |
| 57 return EventNames::AnimationPlayerEvent; | |
| 58 } | |
| 59 | |
| 60 void AnimationPlayerEvent::trace(Visitor* visitor) | |
| 61 { | |
| 62 Event::trace(visitor); | |
| 63 } | |
| 64 | |
| 65 } // namespace WebCore | |
| OLD | NEW |