| 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 "sky/engine/core/events/AnimationPlayerEvent.h" | |
| 6 | |
| 7 namespace blink { | |
| 8 | |
| 9 AnimationPlayerEventInit::AnimationPlayerEventInit() | |
| 10 : currentTime(0.0) | |
| 11 , timelineTime(0.0) | |
| 12 { | |
| 13 } | |
| 14 | |
| 15 AnimationPlayerEvent::AnimationPlayerEvent() | |
| 16 : m_currentTime(0.0) | |
| 17 , m_timelineTime(0.0) | |
| 18 { | |
| 19 } | |
| 20 | |
| 21 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double curr
entTime, double timelineTime) | |
| 22 : Event(type, false, false) | |
| 23 , m_currentTime(currentTime) | |
| 24 , m_timelineTime(timelineTime) | |
| 25 { | |
| 26 } | |
| 27 | |
| 28 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const Anima
tionPlayerEventInit& initializer) | |
| 29 : Event(type, initializer) | |
| 30 , m_currentTime(initializer.currentTime) | |
| 31 , m_timelineTime(initializer.timelineTime) | |
| 32 { | |
| 33 } | |
| 34 | |
| 35 AnimationPlayerEvent::~AnimationPlayerEvent() | |
| 36 { | |
| 37 } | |
| 38 | |
| 39 double AnimationPlayerEvent::currentTime() const | |
| 40 { | |
| 41 return m_currentTime; | |
| 42 } | |
| 43 | |
| 44 double AnimationPlayerEvent::timelineTime() const | |
| 45 { | |
| 46 return m_timelineTime; | |
| 47 } | |
| 48 | |
| 49 const AtomicString& AnimationPlayerEvent::interfaceName() const | |
| 50 { | |
| 51 return EventNames::AnimationPlayerEvent; | |
| 52 } | |
| 53 | |
| 54 } // namespace blink | |
| OLD | NEW |