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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/WorkletAnimation.idl

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: add spec link Created 3 years, 4 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
Index: third_party/WebKit/Source/modules/compositorworker/WorkletAnimation.idl
diff --git a/third_party/WebKit/Source/modules/compositorworker/WorkletAnimation.idl b/third_party/WebKit/Source/modules/compositorworker/WorkletAnimation.idl
new file mode 100644
index 0000000000000000000000000000000000000000..9d0f7fc5ff8ff0a19284c5575f49f93e791f1989
--- /dev/null
+++ b/third_party/WebKit/Source/modules/compositorworker/WorkletAnimation.idl
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// https://wicg.github.io/animation-worklet/#worklet-animation-desc
+
+enum AnimationPlayState { "idle", "pending", "running" };
Eric Willigers 2017/09/01 02:25:23 AnimationPlayState is already defined in core/anim
smcgruer 2017/09/06 19:16:55 Good point. I was trying to create a restricted en
+
+[
+ Constructor(DOMString animatorName,
+ sequence<KeyframeEffectReadOnly> effects,
+ sequence<(DocumentTimeline or ScrollTimeline)> timelines,
+ SerializedScriptValue options),
+ RaisesException=Constructor,
+ RuntimeEnabled=CompositorWorker
+] interface WorkletAnimation {
+ readonly attribute AnimationPlayState playState;
+ void play();
+ void cancel();
+};

Powered by Google App Engine
This is Rietveld 408576698