| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "public/platform/WebCompositorAnimationPlayerClient.h" | 44 #include "public/platform/WebCompositorAnimationPlayerClient.h" |
| 45 #include "wtf/RefPtr.h" | 45 #include "wtf/RefPtr.h" |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class AnimationTimeline; | 49 class AnimationTimeline; |
| 50 class Element; | 50 class Element; |
| 51 class ExceptionState; | 51 class ExceptionState; |
| 52 class WebCompositorAnimationPlayer; | 52 class WebCompositorAnimationPlayer; |
| 53 | 53 |
| 54 class CORE_EXPORT Animation final | 54 class CORE_EXPORT Animation final : public EventTargetWithInlineData, public Ref
CountedWillBeNoBase<Animation>, public ActiveDOMObject, public WebCompositorAnim
ationDelegate, public WebCompositorAnimationPlayerClient { |
| 55 : public EventTargetWithInlineData | |
| 56 , public RefCountedWillBeNoBase<Animation> | |
| 57 , public ActiveDOMObject | |
| 58 , public WebCompositorAnimationDelegate | |
| 59 , public WebCompositorAnimationPlayerClient { | |
| 60 DEFINE_WRAPPERTYPEINFO(); | 55 DEFINE_WRAPPERTYPEINFO(); |
| 61 REFCOUNTED_EVENT_TARGET(Animation); | 56 REFCOUNTED_EVENT_TARGET(Animation); |
| 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Animation); | 57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Animation); |
| 63 public: | 58 public: |
| 64 enum AnimationPlayState { | 59 enum AnimationPlayState { |
| 65 Idle, | 60 Idle, |
| 66 Pending, | 61 Pending, |
| 67 Running, | 62 Running, |
| 68 Paused, | 63 Paused, |
| 69 Finished | 64 Finished |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 double m_playbackRate; | 201 double m_playbackRate; |
| 207 double m_startTime; | 202 double m_startTime; |
| 208 double m_holdTime; | 203 double m_holdTime; |
| 209 | 204 |
| 210 unsigned m_sequenceNumber; | 205 unsigned m_sequenceNumber; |
| 211 | 206 |
| 212 typedef ScriptPromiseProperty<RawPtrWillBeMember<Animation>, RawPtrWillBeMem
ber<Animation>, Member<DOMException>> AnimationPromise; | 207 typedef ScriptPromiseProperty<RawPtrWillBeMember<Animation>, RawPtrWillBeMem
ber<Animation>, Member<DOMException>> AnimationPromise; |
| 213 PersistentWillBeMember<AnimationPromise> m_finishedPromise; | 208 PersistentWillBeMember<AnimationPromise> m_finishedPromise; |
| 214 PersistentWillBeMember<AnimationPromise> m_readyPromise; | 209 PersistentWillBeMember<AnimationPromise> m_readyPromise; |
| 215 | 210 |
| 216 RefPtrWillBeMember<AnimationEffect> m_content; | 211 PersistentWillBeMember<AnimationEffect> m_content; |
| 217 RawPtrWillBeMember<AnimationTimeline> m_timeline; | 212 PersistentWillBeMember<AnimationTimeline> m_timeline; |
| 218 // Reflects all pausing, including via pauseForTesting(). | 213 // Reflects all pausing, including via pauseForTesting(). |
| 219 bool m_paused; | 214 bool m_paused; |
| 220 bool m_held; | 215 bool m_held; |
| 221 bool m_isPausedForTesting; | 216 bool m_isPausedForTesting; |
| 222 | 217 |
| 223 // This indicates timing information relevant to the animation's effect | 218 // This indicates timing information relevant to the animation's effect |
| 224 // has changed by means other than the ordinary progression of time | 219 // has changed by means other than the ordinary progression of time |
| 225 bool m_outdated; | 220 bool m_outdated; |
| 226 | 221 |
| 227 bool m_finished; | 222 bool m_finished; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 274 |
| 280 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; | 275 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; |
| 281 | 276 |
| 282 bool m_currentTimePending; | 277 bool m_currentTimePending; |
| 283 bool m_stateIsBeingUpdated; | 278 bool m_stateIsBeingUpdated; |
| 284 }; | 279 }; |
| 285 | 280 |
| 286 } // namespace blink | 281 } // namespace blink |
| 287 | 282 |
| 288 #endif // Animation_h | 283 #endif // Animation_h |
| OLD | NEW |