dom/workers/test/extensions/traditional/nsIWorkerTest.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/workers/test/extensions/traditional/nsIWorkerTest.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=40: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +[scriptable, uuid(10f8ebdf-1373-4640-9c34-53dee99f526f)]
    1.13 +interface nsIWorkerTestCallback : nsISupports
    1.14 +{
    1.15 +  void onmessage(in DOMString data);
    1.16 +  void onerror(in DOMString data);
    1.17 +};
    1.18 +
    1.19 +[scriptable, uuid(887a0614-a0f0-4c0e-80e0-cf31e6d4e286)]
    1.20 +interface nsIWorkerTest : nsISupports
    1.21 +{
    1.22 +  void postMessage(in DOMString data);
    1.23 +  void terminate();
    1.24 +
    1.25 +  attribute nsIWorkerTestCallback callback;
    1.26 +};

mercurial