michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=40: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: [scriptable, uuid(10f8ebdf-1373-4640-9c34-53dee99f526f)] michael@0: interface nsIWorkerTestCallback : nsISupports michael@0: { michael@0: void onmessage(in DOMString data); michael@0: void onerror(in DOMString data); michael@0: }; michael@0: michael@0: [scriptable, uuid(887a0614-a0f0-4c0e-80e0-cf31e6d4e286)] michael@0: interface nsIWorkerTest : nsISupports michael@0: { michael@0: void postMessage(in DOMString data); michael@0: void terminate(); michael@0: michael@0: attribute nsIWorkerTestCallback callback; michael@0: };