diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet_global_scope.idl')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet_global_scope.idl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet_global_scope.idl b/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet_global_scope.idl index 7383d146622..ad2d2f2d382 100644 --- a/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet_global_scope.idl +++ b/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet_global_scope.idl @@ -2,10 +2,14 @@ // 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/#animationworkletglobalscope + [ Exposed=AnimationWorklet, Global=(Worklet,AnimationWorklet), OriginTrialEnabled=AnimationWorklet ] interface AnimationWorkletGlobalScope : WorkletGlobalScope { - [MeasureAs=AnimationWorkletRegisterAnimator, RaisesException] void registerAnimator(DOMString name, Function animatorConstructor); + // TODO(yukishiino): |animatorConstructor| should be of callback function + // type (should be: callback T = any ()). + [MeasureAs=AnimationWorkletRegisterAnimator, RaisesException] void registerAnimator(DOMString name, CallbackFunctionTreatedAsScriptValue animatorConstructor); }; |