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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 void destroyCompositorPlayer(); | 214 void destroyCompositorPlayer(); |
215 void attachCompositorTimeline(); | 215 void attachCompositorTimeline(); |
216 void detachCompositorTimeline(); | 216 void detachCompositorTimeline(); |
217 void attachCompositedLayers(); | 217 void attachCompositedLayers(); |
218 void detachCompositedLayers(); | 218 void detachCompositedLayers(); |
219 // CompositorAnimationDelegate implementation. | 219 // CompositorAnimationDelegate implementation. |
220 void notifyAnimationStarted(double monotonicTime, int group) override; | 220 void notifyAnimationStarted(double monotonicTime, int group) override; |
221 void notifyAnimationFinished(double monotonicTime, int group) override {} | 221 void notifyAnimationFinished(double monotonicTime, int group) override {} |
222 void notifyAnimationAborted(double monotonicTime, int group) override {} | 222 void notifyAnimationAborted(double monotonicTime, int group) override {} |
223 | 223 |
| 224 using AnimationPromise = ScriptPromiseProperty<Member<Animation>, |
| 225 Member<Animation>, |
| 226 Member<DOMException>>; |
| 227 void resolvePromiseAsync(AnimationPromise*); |
| 228 |
224 String m_id; | 229 String m_id; |
225 | 230 |
226 AnimationPlayState m_playState; | 231 AnimationPlayState m_playState; |
227 double m_playbackRate; | 232 double m_playbackRate; |
228 double m_startTime; | 233 double m_startTime; |
229 double m_holdTime; | 234 double m_holdTime; |
230 | 235 |
231 unsigned m_sequenceNumber; | 236 unsigned m_sequenceNumber; |
232 | 237 |
233 typedef ScriptPromiseProperty<Member<Animation>, | |
234 Member<Animation>, | |
235 Member<DOMException>> | |
236 AnimationPromise; | |
237 Member<AnimationPromise> m_finishedPromise; | 238 Member<AnimationPromise> m_finishedPromise; |
238 Member<AnimationPromise> m_readyPromise; | 239 Member<AnimationPromise> m_readyPromise; |
239 | 240 |
240 Member<AnimationEffectReadOnly> m_content; | 241 Member<AnimationEffectReadOnly> m_content; |
241 Member<AnimationTimeline> m_timeline; | 242 Member<AnimationTimeline> m_timeline; |
242 | 243 |
243 // Reflects all pausing, including via pauseForTesting(). | 244 // Reflects all pausing, including via pauseForTesting(). |
244 bool m_paused; | 245 bool m_paused; |
245 bool m_held; | 246 bool m_held; |
246 bool m_isPausedForTesting; | 247 bool m_isPausedForTesting; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 338 |
338 bool m_currentTimePending; | 339 bool m_currentTimePending; |
339 bool m_stateIsBeingUpdated; | 340 bool m_stateIsBeingUpdated; |
340 | 341 |
341 bool m_effectSuppressed; | 342 bool m_effectSuppressed; |
342 }; | 343 }; |
343 | 344 |
344 } // namespace blink | 345 } // namespace blink |
345 | 346 |
346 #endif // Animation_h | 347 #endif // Animation_h |
OLD | NEW |