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..27c6cb9d7944f92e7eb98e957c8d23c5b8b9a540 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/compositorworker/WorkletAnimation.idl |
| @@ -0,0 +1,18 @@ |
| +// 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 |
| + |
| +[ |
| + Constructor(DOMString animatorName, |
| + sequence<KeyframeEffectReadOnly> effects, |
| + sequence<(DocumentTimeline or ScrollTimeline)> timelines, |
|
flackr
2017/09/07 15:59:13
These construction parameters have become obsolete
smcgruer
2017/09/11 18:19:00
I was previously specifically told not to update t
|
| + SerializedScriptValue options), |
| + RaisesException=Constructor, |
| + RuntimeEnabled=CompositorWorker |
| +] interface WorkletAnimation { |
| + readonly attribute AnimationPlayState playState; |
| + void play(); |
| + void cancel(); |
| +}; |