| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 interface WorkerGlobalScope { | |
| 8 | |
| 9 final WorkerLocation location; | |
| 10 | |
| 11 final WorkerNavigator navigator; | |
| 12 | |
| 13 EventListener onerror; | |
| 14 | |
| 15 final WorkerContext self; | |
| 16 | |
| 17 final IDBFactory webkitIndexedDB; | |
| 18 | |
| 19 final NotificationCenter webkitNotifications; | |
| 20 | |
| 21 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 22 | |
| 23 void clearInterval(int handle); | |
| 24 | |
| 25 void clearTimeout(int handle); | |
| 26 | |
| 27 void close(); | |
| 28 | |
| 29 bool dispatchEvent(Event evt); | |
| 30 | |
| 31 void importScripts(); | |
| 32 | |
| 33 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); | |
| 34 | |
| 35 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]); | |
| 36 | |
| 37 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 38 | |
| 39 int setInterval(TimeoutHandler handler, int timeout); | |
| 40 | |
| 41 int setTimeout(TimeoutHandler handler, int timeout); | |
| 42 | |
| 43 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]); | |
| 44 | |
| 45 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size); | |
| 46 | |
| 47 EntrySync webkitResolveLocalFileSystemSyncURL(String url); | |
| 48 | |
| 49 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]); | |
| 50 } | |
| 51 | |
| 52 interface WorkerContext extends WorkerGlobalScope { | |
| 53 | |
| 54 static final int PERSISTENT = 1; | |
| 55 | |
| 56 static final int TEMPORARY = 0; | |
| 57 } | |
| OLD | NEW |