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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 enum AnimationPlayState { | 68 enum AnimationPlayState { |
69 kUnset, | 69 kUnset, |
70 kIdle, | 70 kIdle, |
71 kPending, | 71 kPending, |
72 kRunning, | 72 kRunning, |
73 kPaused, | 73 kPaused, |
74 kFinished | 74 kFinished |
75 }; | 75 }; |
76 | 76 |
77 static Animation* Create(AnimationEffectReadOnly*, AnimationTimeline*); | 77 static Animation* Create(AnimationEffectReadOnly*, AnimationTimeline*); |
| 78 |
| 79 // Web Animations API IDL constructors. |
| 80 static Animation* Create(ExecutionContext*, |
| 81 AnimationEffectReadOnly*, |
| 82 ExceptionState&); |
| 83 static Animation* Create(ExecutionContext*, |
| 84 AnimationEffectReadOnly*, |
| 85 AnimationTimeline*, |
| 86 ExceptionState&); |
| 87 |
78 ~Animation(); | 88 ~Animation(); |
79 void Dispose(); | 89 void Dispose(); |
80 | 90 |
81 // Returns whether the animation is finished. | 91 // Returns whether the animation is finished. |
82 bool Update(TimingUpdateReason); | 92 bool Update(TimingUpdateReason); |
83 | 93 |
84 // timeToEffectChange returns: | 94 // timeToEffectChange returns: |
85 // infinity - if this animation is no longer in effect | 95 // infinity - if this animation is no longer in effect |
86 // 0 - if this animation requires an update on the next frame | 96 // 0 - if this animation requires an update on the next frame |
87 // n - if this animation requires an update after 'n' units of time | 97 // n - if this animation requires an update after 'n' units of time |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 363 |
354 bool current_time_pending_; | 364 bool current_time_pending_; |
355 bool state_is_being_updated_; | 365 bool state_is_being_updated_; |
356 | 366 |
357 bool effect_suppressed_; | 367 bool effect_suppressed_; |
358 }; | 368 }; |
359 | 369 |
360 } // namespace blink | 370 } // namespace blink |
361 | 371 |
362 #endif // Animation_h | 372 #endif // Animation_h |
OLD | NEW |