OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // http://www.w3.org/TR/web-animations/#the-animationtimeline-interface | 5 // http://www.w3.org/TR/web-animations/#the-animationtimeline-interface |
6 | 6 |
7 // TODO(dstockwell): This interface has several changes in the latest spec: | 7 // TODO(dstockwell): This interface has several changes in the latest spec: |
8 // https://w3c.github.io/web-animations/#the-animationtimeline-interface | 8 // https://w3c.github.io/web-animations/#the-animationtimeline-interface |
9 | 9 |
10 [ | 10 [ |
11 RuntimeEnabled=WebAnimationsAPI, | 11 RuntimeEnabled=WebAnimationsAPI, |
12 WillBeGarbageCollected, | 12 WillBeGarbageCollected, |
13 ] interface AnimationTimeline { | 13 ] interface AnimationTimeline { |
14 attribute double? currentTime; | 14 attribute double? currentTime; |
15 attribute double playbackRate; | 15 attribute double playbackRate; |
16 AnimationPlayer play(AnimationNode source); | 16 Animation play(AnimationEffectReadOnly source); |
17 sequence<AnimationPlayer> getAnimationPlayers(); | 17 sequence<Animation> getAnimations(); |
18 }; | 18 }; |
OLD | NEW |