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

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: Stop using ContextLifecycleObserver 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/events/AnimationPlayerEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef AnimationPlayerEvent_h
6 #define AnimationPlayerEvent_h
7
8 #include "core/events/Event.h"
9
10 namespace WebCore {
11
12 struct AnimationPlayerEventInit : public EventInit {
13 AnimationPlayerEventInit();
14
15 double currentTime;
16 double timelineTime;
17 };
18
19 class AnimationPlayerEvent FINAL : public Event {
20 public:
21 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create()
22 {
23 return adoptRefWillBeRefCountedGarbageCollected(new AnimationPlayerEvent );
24 }
25 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create(const AtomicStrin g& type, double currentTime, double timelineTime)
26 {
27 return adoptRefWillBeRefCountedGarbageCollected(new AnimationPlayerEvent (type, currentTime, timelineTime));
28 }
29 static PassRefPtrWillBeRawPtr<AnimationPlayerEvent> create(const AtomicStrin g& type, const AnimationPlayerEventInit& initializer)
30 {
31 return adoptRefWillBeRefCountedGarbageCollected(new AnimationPlayerEvent (type, initializer));
32 }
33
34 virtual ~AnimationPlayerEvent();
35
36 double currentTime() const;
37 double timelineTime() const;
38
39 virtual const AtomicString& interfaceName() const OVERRIDE;
40
41 virtual void trace(Visitor*) OVERRIDE;
42
43 private:
44 AnimationPlayerEvent();
45 AnimationPlayerEvent(const AtomicString& type, double currentTime, double ti melineTime);
46 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&);
47
48 double m_currentTime;
49 double m_timelineTime;
50 };
51
52 } // namespace WebCore
53
54 #endif // AnimationPlayerEvent_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/events/AnimationPlayerEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698