Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1311)

Unified Diff: Source/core/workers/WorkerGlobalScope.idl

Issue 1185043005: Sync worker interfaces with the HTML spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/workers/WorkerConsole.idl ('k') | Source/core/workers/WorkerLocation.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerGlobalScope.idl
diff --git a/Source/core/workers/WorkerGlobalScope.idl b/Source/core/workers/WorkerGlobalScope.idl
index ec52c3675fc954ef434486ab8098518e71e3c915..7d631e36919b33bfb5bdc3064f986653aed54693 100644
--- a/Source/core/workers/WorkerGlobalScope.idl
+++ b/Source/core/workers/WorkerGlobalScope.idl
@@ -24,21 +24,28 @@
*
*/
+// https://html.spec.whatwg.org/#the-workerglobalscope-common-interface
+
[
Exposed=Worker,
] interface WorkerGlobalScope : EventTarget {
-
- // WorkerGlobalScope
readonly attribute WorkerGlobalScope self;
readonly attribute WorkerLocation location;
+
void close();
+ // TODO(philipj): onerror should be an OnErrorEventHandler.
attribute EventHandler onerror;
- [Replaceable] readonly attribute WorkerConsole console;
+ // attribute EventHandler onlanguagechange;
+ // attribute EventHandler onoffline;
+ // attribute EventHandler ononline;
-
- // WorkerUtils
+ // https://html.spec.whatwg.org/#apis-available-to-workers
[RaisesException] void importScripts(DOMString... urls);
readonly attribute WorkerNavigator navigator;
+
+ // Console API (non-standard but widely implemented in some form)
+ // https://developer.chrome.com/devtools/docs/console-api
+ [Replaceable] readonly attribute WorkerConsole console;
};
WorkerGlobalScope implements WindowBase64;
« no previous file with comments | « Source/core/workers/WorkerConsole.idl ('k') | Source/core/workers/WorkerLocation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698