diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp b/chromium/third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp new file mode 100644 index 00000000000..206e2c16b65 --- /dev/null +++ b/chromium/third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp @@ -0,0 +1,63 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "config.h" +#include "core/events/AnimationPlayerEvent.h" + +namespace WebCore { + +AnimationPlayerEventInit::AnimationPlayerEventInit() + : currentTime(0.0) + , timelineTime(0.0) +{ +} + +AnimationPlayerEvent::AnimationPlayerEvent() + : m_currentTime(0.0) + , m_timelineTime(0.0) +{ + ScriptWrappable::init(this); +} + +AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double currentTime, double timelineTime) + : Event(type, false, false) + , m_currentTime(currentTime) + , m_timelineTime(timelineTime) +{ + ScriptWrappable::init(this); +} + +AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const AnimationPlayerEventInit& initializer) + : Event(type, initializer) + , m_currentTime(initializer.currentTime) + , m_timelineTime(initializer.timelineTime) +{ + ScriptWrappable::init(this); +} + +AnimationPlayerEvent::~AnimationPlayerEvent() +{ +} + +double AnimationPlayerEvent::currentTime() const +{ + return m_currentTime; +} + +double AnimationPlayerEvent::timelineTime() const +{ + return m_timelineTime; +} + +const AtomicString& AnimationPlayerEvent::interfaceName() const +{ + return EventNames::AnimationPlayerEvent; +} + +void AnimationPlayerEvent::trace(Visitor* visitor) +{ + Event::trace(visitor); +} + +} // namespace WebCore |