OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef AnimationPlayer_h | 31 #ifndef AnimationPlayer_h |
32 #define AnimationPlayer_h | 32 #define AnimationPlayer_h |
33 | 33 |
34 #include "core/animation/AnimationNode.h" | 34 #include "core/animation/AnimationNode.h" |
35 #include "core/dom/ActiveDOMObject.h" | 35 #include "core/dom/ActiveDOMObject.h" |
36 #include "core/events/EventTarget.h" | 36 #include "core/events/EventTarget.h" |
| 37 #include "platform/heap/Handle.h" |
37 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 | 41 |
41 class AnimationTimeline; | 42 class AnimationTimeline; |
42 class ExceptionState; | 43 class ExceptionState; |
43 | 44 |
| 45 class AnimationPlayer; |
| 46 WILL_BE_EAGERLY_TRACED(AnimationPlayer); |
| 47 |
44 class AnimationPlayer final : public RefCountedWillBeGarbageCollectedFinalized<A
nimationPlayer> | 48 class AnimationPlayer final : public RefCountedWillBeGarbageCollectedFinalized<A
nimationPlayer> |
45 , public ActiveDOMObject | 49 , public ActiveDOMObject |
46 , public EventTargetWithInlineData { | 50 , public EventTargetWithInlineData { |
47 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
48 REFCOUNTED_EVENT_TARGET(AnimationPlayer); | 52 REFCOUNTED_EVENT_TARGET(AnimationPlayer); |
49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AnimationPlayer); | 53 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AnimationPlayer); |
50 public: | 54 public: |
51 enum AnimationPlayState { | 55 enum AnimationPlayState { |
52 Idle, | 56 Idle, |
53 Pending, | 57 Pending, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // This mirrors the known compositor state. It is created when a compositor | 245 // This mirrors the known compositor state. It is created when a compositor |
242 // animation is started. Updated once the start time is known and each time | 246 // animation is started. Updated once the start time is known and each time |
243 // modifications are pushed to the compositor. | 247 // modifications are pushed to the compositor. |
244 OwnPtr<CompositorState> m_compositorState; | 248 OwnPtr<CompositorState> m_compositorState; |
245 bool m_compositorPending; | 249 bool m_compositorPending; |
246 bool m_currentTimePending; | 250 bool m_currentTimePending; |
247 }; | 251 }; |
248 | 252 |
249 } // namespace blink | 253 } // namespace blink |
250 | 254 |
251 #endif | 255 #endif // AnimationPlayer_h |
OLD | NEW |