Index: core/animation/AnimationPlayer.idl |
diff --git a/core/animation/AnimationPlayer.idl b/core/animation/AnimationPlayer.idl |
index bc3823451a216b27b1a54497d1bc5cf1c4d84ddd..45720a484fbace69bd7262ee918636b052dcc31d 100644 |
--- a/core/animation/AnimationPlayer.idl |
+++ b/core/animation/AnimationPlayer.idl |
@@ -28,22 +28,22 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+enum AnimationPlayState { "idle", "pending", "running", "paused", "finished" }; |
+ |
[ |
- RuntimeEnabled=WebAnimationsElementAnimate, |
NoInterfaceObject, |
WillBeGarbageCollected, |
ActiveDOMObject, |
] interface AnimationPlayer : EventTarget { |
- [RuntimeEnabled=WebAnimationsAPI] attribute AnimationNode? source; |
- [RuntimeEnabled=WebAnimationsAPI] attribute double startTime; |
- [RuntimeEnabled=WebAnimationsAPI] attribute double currentTime; |
- [RuntimeEnabled=WebAnimationsAPI] attribute double playbackRate; |
- [RuntimeEnabled=WebAnimationsAPI] readonly attribute boolean paused; |
- [RuntimeEnabled=WebAnimationsAPI] readonly attribute boolean finished; |
- [RuntimeEnabled=WebAnimationsAPI, RaisesException] void finish(); |
- [RuntimeEnabled=WebAnimationsAPI] void play(); |
- [RuntimeEnabled=WebAnimationsAPI] void pause(); |
- [RuntimeEnabled=WebAnimationsAPI] void reverse(); |
+ [RuntimeEnabled=WebAnimationsAPI] attribute AnimationNode? source; |
+ [RuntimeEnabled=WebAnimationsPlaybackControl] attribute double? startTime; |
+ [RuntimeEnabled=WebAnimationsPlaybackControl] attribute double? currentTime; |
+ [RuntimeEnabled=WebAnimationsPlaybackControl] attribute double playbackRate; |
+ [RuntimeEnabled=WebAnimationsPlaybackControl, MeasureAs=AnimationPlayerGetPlayState] readonly attribute AnimationPlayState playState; |
+ [RuntimeEnabled=WebAnimationsPlaybackControl, MeasureAs=AnimationPlayerFinish, RaisesException] void finish(); |
+ [RuntimeEnabled=WebAnimationsPlaybackControl, MeasureAs=AnimationPlayerPlay] void play(); |
+ [RuntimeEnabled=WebAnimationsPlaybackControl, MeasureAs=AnimationPlayerPause] void pause(); |
+ [RuntimeEnabled=WebAnimationsPlaybackControl, MeasureAs=AnimationPlayerReverse] void reverse(); |
void cancel(); |
[MeasureAs=AnimationPlayerFinishEvent] attribute EventHandler onfinish; |