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

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

Issue 210363007: Declare onFinish event handler for AnimationPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: AnimationPlayerEvent guarded by WebAnimationsAPI flag Created 6 years, 8 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
(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
6 #ifndef AnimationPlayerEvent_h
7 #define AnimationPlayerEvent_h
8
9 #include "core/events/Event.h"
10
11 namespace WebCore {
12
13 struct AnimationPlayerEventInit : public EventInit {
14 AnimationPlayerEventInit();
15
16 double currentTime;
17 double timelineTime;
18 };
19
20 class AnimationPlayerEvent FINAL : public Event {
21 public:
22 static PassRefPtr<AnimationPlayerEvent> create()
23 {
24 return adoptRef(new AnimationPlayerEvent);
25 }
26 static PassRefPtr<AnimationPlayerEvent> create(const AtomicString& type, dou ble currentTime, double timelineTime)
27 {
28 return adoptRef(new AnimationPlayerEvent(type, currentTime, timelineTime ));
29 }
30 static PassRefPtr<AnimationPlayerEvent> create(const AtomicString& type, con st AnimationPlayerEventInit& initializer)
31 {
32 return adoptRef(new AnimationPlayerEvent(type, initializer));
33 }
34
35 virtual ~AnimationPlayerEvent();
36
37 double currentTime() const;
38 double timelineTime() const;
39
40 virtual const AtomicString& interfaceName() const OVERRIDE;
41
42 virtual void trace(Visitor*) OVERRIDE;
43
44 private:
45 AnimationPlayerEvent();
46 AnimationPlayerEvent(const AtomicString& type, double currentTime, double ti melineTime);
47 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&);
48
49 double m_currentTime;
50 double m_timelineTime;
51 };
52
53 } // namespace WebCore
54
55 #endif // AnimationPlayerEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698