blob: d2396e63ac1056d7572fbc9461c7ef630655a7cd [file] [log] [blame]
// Copyright 2015 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.
[
DependentLifetime,
Constructor(DOMString scriptUrl),
ConstructorCallWith=ExecutionContext,
RaisesException=Constructor,
RuntimeEnabled=CompositorWorker,
] interface CompositorWorker : EventTarget {
attribute EventHandler onmessage;
[PostMessage, RaisesException] void postMessage(SerializedScriptValue message, optional sequence<Transferable> transfer);
void terminate();
};
CompositorWorker implements AbstractWorker;