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

Unified Diff: core/animation/Animation.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « core/README ('k') | core/animation/AnimationEffect.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/animation/Animation.idl
diff --git a/core/animation/Animation.idl b/core/animation/Animation.idl
index 02b98bf8234570c35b31e85820a75219fe3f3fa4..76ef6bb57d49975fdc48c22c94dd6751e4faba7d 100644
--- a/core/animation/Animation.idl
+++ b/core/animation/Animation.idl
@@ -28,14 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// http://dev.w3.org/fxtf/web-animations/#idl-def-Animation
+// https://w3c.github.io/web-animations/#animation
+
+enum AnimationPlayState { "idle", "pending", "running", "paused", "finished" };
[
- // FIXME: should be optional union type http://crbug.com/240176
- Constructor(Element? target, sequence<Dictionary> keyframes),
- Constructor(Element? target, sequence<Dictionary> keyframes, double timingInput),
- Constructor(Element? target, sequence<Dictionary> keyframes, Dictionary timingInput),
- RaisesException=Constructor,
- RuntimeEnabled=WebAnimationsAPI,
-] interface Animation : AnimationNode {
+ ActiveDOMObject,
+ NoInterfaceObject,
+] interface Animation : EventTarget {
+ // TODO(dstockwell): Add timeline property.
+ [RuntimeEnabled=WebAnimationsAPI] attribute AnimationEffectReadOnly? effect;
+ [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();
+ [RuntimeEnabled=WebAnimationsAPI] attribute double startClip;
+ [RuntimeEnabled=WebAnimationsAPI] attribute double endClip;
+
+ [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 | « core/README ('k') | core/animation/AnimationEffect.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698