diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/workers/WorkerGlobalScope.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/workers/WorkerGlobalScope.idl')
-rw-r--r-- | Source/WebCore/workers/WorkerGlobalScope.idl | 63 |
1 files changed, 33 insertions, 30 deletions
diff --git a/Source/WebCore/workers/WorkerGlobalScope.idl b/Source/WebCore/workers/WorkerGlobalScope.idl index 1dc9054d2..16a5e0a0b 100644 --- a/Source/WebCore/workers/WorkerGlobalScope.idl +++ b/Source/WebCore/workers/WorkerGlobalScope.idl @@ -10,10 +10,10 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY + * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR @@ -21,43 +21,46 @@ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * */ [ - GlobalContext=WorkerGlobalScope, + CustomProxyToJSObject, + Exposed=Worker, JSCustomMarkFunction, - JSCustomGetOwnPropertySlotAndDescriptor, - EventTarget, JSLegacyParent=JSWorkerGlobalScopeBase, - JSNoStaticTables, -] interface WorkerGlobalScope { - - // WorkerGlobalScope -#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT - [Replaceable] readonly attribute WorkerGlobalScope self; -#endif - [Replaceable] readonly attribute WorkerLocation location; +] interface WorkerGlobalScope : EventTarget { + + readonly attribute WorkerGlobalScope self; + readonly attribute WorkerLocation location; void close(); - attribute EventListener onerror; - attribute EventListener onoffline; - attribute EventListener ononline; + + attribute EventHandler onerror; + attribute EventHandler onoffline; + attribute EventHandler ononline; // WorkerUtils - [Custom] void importScripts(/*[Variadic] DOMString urls */); - [Replaceable] readonly attribute WorkerNavigator navigator; - - // EventTarget interface - void addEventListener(DOMString type, - EventListener listener, - optional boolean useCapture); - void removeEventListener(DOMString type, - EventListener listener, - optional boolean useCapture); - [RaisesException] boolean dispatchEvent(Event evt); + + [MayThrowException] void importScripts(USVString... urls); + readonly attribute WorkerNavigator navigator; // Additional constructors - [Conditional=BLOB] attribute DOMURLConstructor webkitURL; // FIXME: deprecate this. + + attribute DOMURLConstructor webkitURL; // FIXME: deprecate this. + + // FIXME: Automatically generate these once we can drop the IndexedDBWorkers runtime flag. + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBCursorConstructor IDBCursor; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBCursorWithValueConstructor IDBCursorWithValue; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBDatabaseConstructor IDBDatabase; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBFactoryConstructor IDBFactory; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBIndexConstructor IDBIndex; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBKeyRangeConstructor IDBKeyRange; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBObjectStoreConstructor IDBObjectStore; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBOpenDBRequestConstructor IDBOpenDBRequest; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBRequestConstructor IDBRequest; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBTransactionConstructor IDBTransaction; + [Conditional=INDEXED_DATABASE_IN_WORKERS, EnabledAtRuntime=IndexedDBWorkers] attribute IDBVersionChangeEventConstructor IDBVersionChangeEvent; }; -WorkerGlobalScope implements WindowTimers; +WorkerGlobalScope implements GlobalCrypto; +WorkerGlobalScope implements GlobalPerformance; +WorkerGlobalScope implements WindowOrWorkerGlobalScope; |