2015-03-04 02:51:53 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
[Global=(WorkerDebugger), Exposed=WorkerDebugger]
|
|
|
|
interface WorkerDebuggerGlobalScope : EventTarget {
|
|
|
|
readonly attribute object global;
|
2015-03-20 14:15:59 +03:00
|
|
|
|
2015-03-27 09:17:16 +03:00
|
|
|
void enterEventLoop();
|
|
|
|
|
|
|
|
void leaveEventLoop();
|
|
|
|
|
2015-03-20 14:15:59 +03:00
|
|
|
void postMessage(DOMString message);
|
|
|
|
|
|
|
|
attribute EventHandler onmessage;
|
2015-03-26 22:09:45 +03:00
|
|
|
|
2015-03-30 14:54:38 +03:00
|
|
|
[Throws]
|
|
|
|
void setImmediate(Function handler);
|
|
|
|
|
2015-03-26 22:09:45 +03:00
|
|
|
void reportError(DOMString message);
|
2015-03-04 02:51:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
// So you can debug while you debug
|
|
|
|
partial interface WorkerDebuggerGlobalScope {
|
|
|
|
void dump(optional DOMString string);
|
|
|
|
};
|