blob: 0ed4c1efbcea8fe364ddf9c0c313997129d9dfdf [file] [log] [blame]
// 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);
};