| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // TODO(smcgruer): Spec link. |
| 6 |
| 7 enum AnimationPlayState { "idle", "pending", "running" }; |
| 8 |
| 9 [ |
| 10 Constructor(DOMString animatorName, |
| 11 sequence<KeyframeEffectReadOnly> effects, |
| 12 sequence<(DocumentTimeline or ScrollTimeline)> timelines, |
| 13 SerializedScriptValue options), |
| 14 RaisesException=Constructor, |
| 15 RuntimeEnabled=CompositorWorker |
| 16 ] interface WorkletAnimation { |
| 17 readonly attribute AnimationPlayState playState; |
| 18 void play(); |
| 19 void cancel(); |
| 20 }; |
| OLD | NEW |