Chromium Code Reviews| 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..3ebac23ae63d01e470b84a082068d04fa5f24221 |
| --- /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. |
| + |
| +// TODO(smcgruer): Spec link. |
|
majidvp
2017/08/31 14:15:27
I think this is the right link:
https://wicg.gith
smcgruer
2017/08/31 19:59:57
Done.
|
| + |
| +enum AnimationPlayState { "idle", "pending", "running" }; |
| + |
| +[ |
| + Constructor(DOMString animatorName, |
| + sequence<KeyframeEffectReadOnly> effects, |
| + sequence<(DocumentTimeline or ScrollTimeline)> timelines, |
|
majidvp
2017/08/31 14:24:05
FYI, the latest changes in spec has moved away fro
smcgruer
2017/08/31 19:59:57
Acknowledged.
|
| + SerializedScriptValue options), |
| + RaisesException=Constructor, |
| + RuntimeEnabled=CompositorWorker |
| +] interface WorkletAnimation { |
| + readonly attribute AnimationPlayState playState; |
| + void play(); |
| + void cancel(); |
| +}; |