Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 4 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | * |
michael@0 | 6 | * The origin of this IDL file is |
michael@0 | 7 | * http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#the-workerglobalscope-common-interface |
michael@0 | 8 | * |
michael@0 | 9 | * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and Opera |
michael@0 | 10 | * Software ASA. |
michael@0 | 11 | * You are granted a license to use, reproduce and create derivative works of |
michael@0 | 12 | * this document. |
michael@0 | 13 | */ |
michael@0 | 14 | |
michael@0 | 15 | interface WorkerGlobalScope : EventTarget { |
michael@0 | 16 | readonly attribute WorkerGlobalScope self; |
michael@0 | 17 | |
michael@0 | 18 | [Replaceable] |
michael@0 | 19 | readonly attribute Console console; |
michael@0 | 20 | |
michael@0 | 21 | readonly attribute WorkerLocation location; |
michael@0 | 22 | |
michael@0 | 23 | void close(); |
michael@0 | 24 | attribute OnErrorEventHandler onerror; |
michael@0 | 25 | |
michael@0 | 26 | attribute EventHandler onoffline; |
michael@0 | 27 | attribute EventHandler ononline; |
michael@0 | 28 | // also has additional members in a partial interface |
michael@0 | 29 | }; |
michael@0 | 30 | |
michael@0 | 31 | partial interface WorkerGlobalScope { |
michael@0 | 32 | [Throws] |
michael@0 | 33 | void importScripts(DOMString... urls); |
michael@0 | 34 | |
michael@0 | 35 | readonly attribute WorkerNavigator navigator; |
michael@0 | 36 | }; |
michael@0 | 37 | |
michael@0 | 38 | WorkerGlobalScope implements WindowTimers; |
michael@0 | 39 | WorkerGlobalScope implements WindowBase64; |
michael@0 | 40 | |
michael@0 | 41 | // Mozilla extensions |
michael@0 | 42 | partial interface WorkerGlobalScope { |
michael@0 | 43 | attribute EventHandler onclose; |
michael@0 | 44 | |
michael@0 | 45 | void dump(optional DOMString str); |
michael@0 | 46 | }; |