2014-10-27 20:00:05 +03:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2014-10-29 23:11:33 +03:00
|
|
|
interface nsIDOMWindow;
|
|
|
|
|
2015-04-01 21:32:20 +03:00
|
|
|
[scriptable, uuid(530db841-1b2c-485a-beeb-f2b1acb9714e)]
|
2014-10-29 23:11:33 +03:00
|
|
|
interface nsIWorkerDebuggerListener : nsISupports
|
|
|
|
{
|
|
|
|
void onClose();
|
2015-03-20 14:15:59 +03:00
|
|
|
|
2015-03-26 22:09:45 +03:00
|
|
|
void onError(in DOMString filename, in unsigned long lineno,
|
|
|
|
in DOMString message);
|
|
|
|
|
2015-04-01 21:32:20 +03:00
|
|
|
void onFreeze();
|
|
|
|
|
2015-03-20 14:15:59 +03:00
|
|
|
void onMessage(in DOMString message);
|
2015-04-01 21:32:20 +03:00
|
|
|
|
|
|
|
void onThaw();
|
2014-10-29 23:11:33 +03:00
|
|
|
};
|
|
|
|
|
2015-06-08 10:08:20 +03:00
|
|
|
[scriptable, builtinclass, uuid(bdcaf96f-916a-4b24-bb53-165c1785668b)]
|
2014-10-27 20:00:05 +03:00
|
|
|
interface nsIWorkerDebugger : nsISupports
|
|
|
|
{
|
2014-10-29 23:11:33 +03:00
|
|
|
const unsigned long TYPE_DEDICATED = 0;
|
|
|
|
const unsigned long TYPE_SHARED = 1;
|
|
|
|
const unsigned long TYPE_SERVICE = 2;
|
|
|
|
|
2014-10-27 20:00:05 +03:00
|
|
|
readonly attribute bool isClosed;
|
|
|
|
|
2014-10-29 23:11:33 +03:00
|
|
|
readonly attribute bool isChrome;
|
|
|
|
|
2015-04-01 21:32:20 +03:00
|
|
|
readonly attribute bool isFrozen;
|
|
|
|
|
2015-06-08 10:08:20 +03:00
|
|
|
readonly attribute bool isInitialized;
|
|
|
|
|
2014-10-29 23:11:33 +03:00
|
|
|
readonly attribute nsIWorkerDebugger parent;
|
|
|
|
|
|
|
|
readonly attribute unsigned long type;
|
|
|
|
|
2014-10-27 20:00:05 +03:00
|
|
|
readonly attribute DOMString url;
|
2014-10-29 23:11:33 +03:00
|
|
|
|
|
|
|
readonly attribute nsIDOMWindow window;
|
|
|
|
|
2015-03-17 13:15:19 +03:00
|
|
|
[implicit_jscontext]
|
|
|
|
void initialize(in DOMString url);
|
|
|
|
|
2015-03-20 14:15:59 +03:00
|
|
|
[implicit_jscontext, binaryname(PostMessageMoz)]
|
|
|
|
void postMessage(in DOMString message);
|
|
|
|
|
2014-10-29 23:11:33 +03:00
|
|
|
void addListener(in nsIWorkerDebuggerListener listener);
|
|
|
|
|
|
|
|
void removeListener(in nsIWorkerDebuggerListener listener);
|
2014-10-27 20:00:05 +03:00
|
|
|
};
|