| // Copyright 2018 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://drafts.css-houdini.org/css-layout-api/#layoutworkletglobalscope |
| |
| [ |
| Exposed=LayoutWorklet, |
| Global=(Worklet,LayoutWorklet), |
| RuntimeEnabled=CSSLayoutAPI |
| ] interface LayoutWorkletGlobalScope : WorkletGlobalScope { |
| // TODO(yukishiino): |layoutCtor| should be of callback function type |
| // (should be: callback T = any ()). |
| [RaisesException] void registerLayout(DOMString name, CallbackFunctionTreatedAsScriptValue layoutCtor); |
| }; |