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

Side by Side Diff: sky/engine/core/events/AnimationPlayerEvent.h

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 SKY_ENGINE_CORE_EVENTS_ANIMATIONPLAYEREVENT_H_
6 #define SKY_ENGINE_CORE_EVENTS_ANIMATIONPLAYEREVENT_H_
7
8 #include "sky/engine/core/events/Event.h"
9
10 namespace blink {
11
12 struct AnimationPlayerEventInit : public EventInit {
13 AnimationPlayerEventInit();
14
15 double currentTime;
16 double timelineTime;
17 };
18
19 class AnimationPlayerEvent final : public Event {
20 DEFINE_WRAPPERTYPEINFO();
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 private:
43 AnimationPlayerEvent();
44 AnimationPlayerEvent(const AtomicString& type, double currentTime, double ti melineTime);
45 AnimationPlayerEvent(const AtomicString&, const AnimationPlayerEventInit&);
46
47 double m_currentTime;
48 double m_timelineTime;
49 };
50
51 } // namespace blink
52
53 #endif // SKY_ENGINE_CORE_EVENTS_ANIMATIONPLAYEREVENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/events/AnimationEvent.idl ('k') | sky/engine/core/events/AnimationPlayerEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698