Chromium Code Reviews| 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 // https://wicg.github.io/animation-worklet/#worklet-animation-desc | |
| 6 | |
| 7 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
| |
| 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 |