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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/editing/DOMSelection.h ('k') | Source/core/events/ApplicationCacheErrorEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/Event.h" 8 #include "core/events/Event.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 struct AnimationPlayerEventInit : public EventInit { 12 struct AnimationPlayerEventInit : public EventInit {
13 AnimationPlayerEventInit(); 13 AnimationPlayerEventInit();
14 14
15 double currentTime; 15 double currentTime;
16 double timelineTime; 16 double timelineTime;
17 }; 17 };
18 18
19 class AnimationPlayerEvent FINAL : public Event { 19 class AnimationPlayerEvent FINAL : public Event {
20 DEFINE_WRAPPERTYPEINFO();
20 public: 21 public:
21 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create() 22 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create()
22 { 23 {
23 return adoptRefWillBeNoop(new AnimationPlayerEvent); 24 return adoptRefWillBeNoop(new AnimationPlayerEvent);
24 } 25 }
25 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create(const AtomicStrin g& type, double currentTime, double timelineTime) 26 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create(const AtomicStrin g& type, double currentTime, double timelineTime)
26 { 27 {
27 return adoptRefWillBeNoop(new AnimationPlayerEvent(type, currentTime, ti melineTime)); 28 return adoptRefWillBeNoop(new AnimationPlayerEvent(type, currentTime, ti melineTime));
28 } 29 }
29 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create(const AtomicStrin g& type, const AnimationPlayerEventInit& initializer) 30 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create(const AtomicStrin g& type, const AnimationPlayerEventInit& initializer)
(...skipping 15 matching lines...) Expand all
45 AnimationPlayerEvent(const AtomicString& type, double currentTime, double ti melineTime); 46 AnimationPlayerEvent(const AtomicString& type, double currentTime, double ti melineTime);
46 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&); 47 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&);
47 48
48 double m_currentTime; 49 double m_currentTime;
49 double m_timelineTime; 50 double m_timelineTime;
50 }; 51 };
51 52
52 } // namespace blink 53 } // namespace blink
53 54
54 #endif // AnimationPlayerEvent_h 55 #endif // AnimationPlayerEvent_h
OLDNEW
« no previous file with comments | « Source/core/editing/DOMSelection.h ('k') | Source/core/events/ApplicationCacheErrorEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698