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 #ifndef AnimationPlaybackEvent_h |
| 6 #define AnimationPlaybackEvent_h |
| 7 |
| 8 #include "core/events/AnimationPlaybackEventInit.h" |
| 9 #include "core/events/Event.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class AnimationPlaybackEvent final : public Event { |
| 14 DEFINE_WRAPPERTYPEINFO(); |
| 15 public: |
| 16 static AnimationPlaybackEvent* create(const AtomicString& type, double curre
ntTime, double timelineTime) |
| 17 { |
| 18 return new AnimationPlaybackEvent(type, currentTime, timelineTime); |
| 19 } |
| 20 static AnimationPlaybackEvent* create(const AtomicString& type, const Animat
ionPlaybackEventInit& initializer) |
| 21 { |
| 22 return new AnimationPlaybackEvent(type, initializer); |
| 23 } |
| 24 |
| 25 ~AnimationPlaybackEvent() override; |
| 26 |
| 27 double currentTime(bool& isNull) const; |
| 28 double currentTime() const; |
| 29 double timelineTime(bool& isNull) const; |
| 30 double timelineTime() const; |
| 31 |
| 32 const AtomicString& interfaceName() const override; |
| 33 |
| 34 DECLARE_VIRTUAL_TRACE(); |
| 35 |
| 36 private: |
| 37 AnimationPlaybackEvent(const AtomicString& type, double currentTime, double
timelineTime); |
| 38 AnimationPlaybackEvent(const AtomicString&, const AnimationPlaybackEventInit
&); |
| 39 |
| 40 double m_currentTime; |
| 41 double m_timelineTime; |
| 42 }; |
| 43 |
| 44 } // namespace blink |
| 45 |
| 46 #endif // AnimationPlaybackEvent_h |
OLD | NEW |