Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: Source/core/animation/Animation.idl

Issue 1113173003: Web Animations: Update naming to reflect spec changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No, really. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/Animation.cpp ('k') | Source/core/animation/AnimationEffect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Animation.idl
diff --git a/Source/core/animation/Animation.idl b/Source/core/animation/Animation.idl
index 2da00b3bac00cb93fe8f2ab90e9bb0660c6eb868..cb339a2b03d9e2dc72fa0c1ac3f78f92e2544f67 100644
--- a/Source/core/animation/Animation.idl
+++ b/Source/core/animation/Animation.idl
@@ -28,18 +28,28 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// http://www.w3.org/TR/web-animations/#the-animation-interface
+// https://w3c.github.io/web-animations/#animation
-// TODO(dstockwell): This interface has been renamed to KeyframeEffect in the
-// latest spec:
-// https://w3c.github.io/web-animations/#the-keyframeeffect-interfaces
+enum AnimationPlayState { "idle", "pending", "running", "paused", "finished" };
[
- // FIXME: the third argument should be "optional (unrestricted double or AnimationTimingProperties) timing".
- Constructor(Element? target, sequence<Dictionary> keyframes, optional unrestricted double timing),
- Constructor(Element? target, sequence<Dictionary> keyframes, AnimationTimingProperties timing),
- RaisesException=Constructor,
- RuntimeEnabled=WebAnimationsAPI,
- TypeChecking=Interface,
-] interface Animation : AnimationNode {
+ ActiveDOMObject,
+ NoInterfaceObject,
+] interface Animation : EventTarget {
+ // TODO(dstockwell): Add timeline property.
+ // TODO(dstockwell): Rename source to effect.
+ [RuntimeEnabled=WebAnimationsAPI] attribute AnimationEffectReadOnly? source;
+ [Measure] attribute double? startTime;
+ [Measure] attribute double? currentTime;
+ [Measure] attribute double playbackRate;
+ [Measure] readonly attribute AnimationPlayState playState;
+ [Measure, RaisesException] void finish();
+ [Measure] void play();
+ [Measure] void pause();
+ [Measure] void reverse();
+
+ [Measure] void cancel();
+ [Measure] attribute EventHandler onfinish;
+ [RuntimeEnabled=WebAnimationsAPI, CallWith=ScriptState] readonly attribute Promise<Animation> finished;
+ [RuntimeEnabled=WebAnimationsAPI, CallWith=ScriptState] readonly attribute Promise<Animation> ready;
};
« no previous file with comments | « Source/core/animation/Animation.cpp ('k') | Source/core/animation/AnimationEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698