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