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

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

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/events/AnimationPlayerEvent.h ('k') | Source/core/events/AnimationPlayerEvent.idl » ('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 #include "config.h"
6 #include "core/events/AnimationPlayerEvent.h"
7
8 namespace WebCore {
9
10 AnimationPlayerEventInit::AnimationPlayerEventInit()
11 : currentTime(0.0)
12 , timelineTime(0.0)
13 {
14 }
15
16 AnimationPlayerEvent::AnimationPlayerEvent()
17 : m_currentTime(0.0)
18 , m_timelineTime(0.0)
19 {
20 ScriptWrappable::init(this);
21 }
22
23 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double curr entTime, double timelineTime)
24 : Event(type, false, false)
25 , m_currentTime(currentTime)
26 , m_timelineTime(timelineTime)
27 {
28 ScriptWrappable::init(this);
29 }
30
31 AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const Anima tionPlayerEventInit& initializer)
32 : Event(type, initializer)
33 , m_currentTime(initializer.currentTime)
34 , m_timelineTime(initializer.timelineTime)
35 {
36 ScriptWrappable::init(this);
37 }
38
39 AnimationPlayerEvent::~AnimationPlayerEvent()
40 {
41 }
42
43 double AnimationPlayerEvent::currentTime() const
44 {
45 return m_currentTime;
46 }
47
48 double AnimationPlayerEvent::timelineTime() const
49 {
50 return m_timelineTime;
51 }
52
53 const AtomicString& AnimationPlayerEvent::interfaceName() const
54 {
55 return EventNames::AnimationPlayerEvent;
56 }
57
58 void AnimationPlayerEvent::trace(Visitor* visitor)
59 {
60 Event::trace(visitor);
61 }
62
63 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/events/AnimationPlayerEvent.h ('k') | Source/core/events/AnimationPlayerEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698