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 26 matching lines...) Expand all Loading... |
37 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class AnimationTimeline; | 41 class AnimationTimeline; |
42 class ExceptionState; | 42 class ExceptionState; |
43 | 43 |
44 class AnimationPlayer FINAL : public RefCountedWillBeGarbageCollectedFinalized<A
nimationPlayer> | 44 class AnimationPlayer FINAL : public RefCountedWillBeGarbageCollectedFinalized<A
nimationPlayer> |
45 , public ActiveDOMObject | 45 , public ActiveDOMObject |
46 , public EventTargetWithInlineData { | 46 , public EventTargetWithInlineData { |
| 47 DEFINE_WRAPPERTYPEINFO(); |
47 REFCOUNTED_EVENT_TARGET(AnimationPlayer); | 48 REFCOUNTED_EVENT_TARGET(AnimationPlayer); |
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AnimationPlayer); | 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AnimationPlayer); |
49 public: | 50 public: |
50 | |
51 ~AnimationPlayer(); | 51 ~AnimationPlayer(); |
52 static PassRefPtrWillBeRawPtr<AnimationPlayer> create(ExecutionContext*, Ani
mationTimeline&, AnimationNode*); | 52 static PassRefPtrWillBeRawPtr<AnimationPlayer> create(ExecutionContext*, Ani
mationTimeline&, AnimationNode*); |
53 | 53 |
54 // Returns whether the player is finished. | 54 // Returns whether the player is finished. |
55 bool update(TimingUpdateReason); | 55 bool update(TimingUpdateReason); |
56 | 56 |
57 // timeToEffectChange returns: | 57 // timeToEffectChange returns: |
58 // infinity - if this player is no longer in effect | 58 // infinity - if this player is no longer in effect |
59 // 0 - if this player requires an update on the next frame | 59 // 0 - if this player requires an update on the next frame |
60 // n - if this player requires an update after 'n' units of time | 60 // n - if this player requires an update after 'n' units of time |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // has changed by means other than the ordinary progression of time | 161 // has changed by means other than the ordinary progression of time |
162 bool m_outdated; | 162 bool m_outdated; |
163 | 163 |
164 bool m_finished; | 164 bool m_finished; |
165 // Holds a 'finished' event queued for asynchronous dispatch via the | 165 // Holds a 'finished' event queued for asynchronous dispatch via the |
166 // ScriptedAnimationController. This object remains active until the | 166 // ScriptedAnimationController. This object remains active until the |
167 // event is actually dispatched. | 167 // event is actually dispatched. |
168 RefPtrWillBeMember<Event> m_pendingFinishedEvent; | 168 RefPtrWillBeMember<Event> m_pendingFinishedEvent; |
169 }; | 169 }; |
170 | 170 |
171 } // namespace | 171 } // namespace blink |
172 | 172 |
173 #endif | 173 #endif |
OLD | NEW |