Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: third_party/WebKit/Source/core/events/AnimationPlayerEvent.h

Issue 2216593002: Drop document.createEvent support for things still behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@createEvent
Patch Set: fix LayoutTests Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef AnimationPlayerEvent_h 5 #ifndef AnimationPlayerEvent_h
6 #define AnimationPlayerEvent_h 6 #define AnimationPlayerEvent_h
7 7
8 #include "core/events/AnimationPlayerEventInit.h" 8 #include "core/events/AnimationPlayerEventInit.h"
9 #include "core/events/Event.h" 9 #include "core/events/Event.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class AnimationPlayerEvent final : public Event { 13 class AnimationPlayerEvent final : public Event {
14 DEFINE_WRAPPERTYPEINFO(); 14 DEFINE_WRAPPERTYPEINFO();
15 public: 15 public:
16 static AnimationPlayerEvent* create()
17 {
18 return new AnimationPlayerEvent;
19 }
20 static AnimationPlayerEvent* create(const AtomicString& type, double current Time, double timelineTime) 16 static AnimationPlayerEvent* create(const AtomicString& type, double current Time, double timelineTime)
21 { 17 {
22 return new AnimationPlayerEvent(type, currentTime, timelineTime); 18 return new AnimationPlayerEvent(type, currentTime, timelineTime);
23 } 19 }
24 static AnimationPlayerEvent* create(const AtomicString& type, const Animatio nPlayerEventInit& initializer) 20 static AnimationPlayerEvent* create(const AtomicString& type, const Animatio nPlayerEventInit& initializer)
25 { 21 {
26 return new AnimationPlayerEvent(type, initializer); 22 return new AnimationPlayerEvent(type, initializer);
27 } 23 }
28 24
29 ~AnimationPlayerEvent() override; 25 ~AnimationPlayerEvent() override;
30 26
31 double currentTime(bool& isNull) const; 27 double currentTime(bool& isNull) const;
32 double currentTime() const; 28 double currentTime() const;
33 double timelineTime() const; 29 double timelineTime() const;
34 30
35 const AtomicString& interfaceName() const override; 31 const AtomicString& interfaceName() const override;
36 32
37 DECLARE_VIRTUAL_TRACE(); 33 DECLARE_VIRTUAL_TRACE();
38 34
39 private: 35 private:
40 AnimationPlayerEvent();
41 AnimationPlayerEvent(const AtomicString& type, double currentTime, double ti melineTime); 36 AnimationPlayerEvent(const AtomicString& type, double currentTime, double ti melineTime);
42 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&); 37 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&);
43 38
44 double m_currentTime; 39 double m_currentTime;
45 double m_timelineTime; 40 double m_timelineTime;
46 }; 41 };
47 42
48 } // namespace blink 43 } // namespace blink
49 44
50 #endif // AnimationPlayerEvent_h 45 #endif // AnimationPlayerEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698