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

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

Issue 2344473002: Rename AnimationPlayerEvent as AnimationPlaybackEvent (Closed)
Patch Set: Make timelineTime nullable Created 4 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
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/AnimationPlayerEventInit.h"
9 #include "core/events/Event.h"
10
11 namespace blink {
12
13 class AnimationPlayerEvent final : public Event {
14 DEFINE_WRAPPERTYPEINFO();
15 public:
16 static AnimationPlayerEvent* create(const AtomicString& type, double current Time, double timelineTime)
17 {
18 return new AnimationPlayerEvent(type, currentTime, timelineTime);
19 }
20 static AnimationPlayerEvent* create(const AtomicString& type, const Animatio nPlayerEventInit& initializer)
21 {
22 return new AnimationPlayerEvent(type, initializer);
23 }
24
25 ~AnimationPlayerEvent() override;
26
27 double currentTime(bool& isNull) const;
28 double currentTime() const;
29 double timelineTime() const;
30
31 const AtomicString& interfaceName() const override;
32
33 DECLARE_VIRTUAL_TRACE();
34
35 private:
36 AnimationPlayerEvent(const AtomicString& type, double currentTime, double ti melineTime);
37 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&);
38
39 double m_currentTime;
40 double m_timelineTime;
41 };
42
43 } // namespace blink
44
45 #endif // AnimationPlayerEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698