OLD | NEW |
(Empty) | |
| 1 |
| 2 class _WorkerContextImpl implements WorkerContext native "*WorkerContext" { |
| 3 |
| 4 static final int PERSISTENT = 1; |
| 5 |
| 6 static final int TEMPORARY = 0; |
| 7 |
| 8 final _WorkerLocationImpl location; |
| 9 |
| 10 final _WorkerNavigatorImpl navigator; |
| 11 |
| 12 EventListener onerror; |
| 13 |
| 14 final _WorkerContextImpl self; |
| 15 |
| 16 final _IDBFactoryImpl webkitIndexedDB; |
| 17 |
| 18 final _NotificationCenterImpl webkitNotifications; |
| 19 |
| 20 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 21 |
| 22 void clearInterval(int handle) native; |
| 23 |
| 24 void clearTimeout(int handle) native; |
| 25 |
| 26 void close() native; |
| 27 |
| 28 bool dispatchEvent(_EventImpl evt) native; |
| 29 |
| 30 void importScripts() native; |
| 31 |
| 32 _DatabaseImpl openDatabase(String name, String version, String displayName, in
t estimatedSize, [DatabaseCallback creationCallback = null]) native; |
| 33 |
| 34 _DatabaseSyncImpl openDatabaseSync(String name, String version, String display
Name, int estimatedSize, [DatabaseCallback creationCallback = null]) native; |
| 35 |
| 36 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 37 |
| 38 int setInterval(TimeoutHandler handler, int timeout) native; |
| 39 |
| 40 int setTimeout(TimeoutHandler handler, int timeout) native; |
| 41 |
| 42 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) native; |
| 43 |
| 44 _DOMFileSystemSyncImpl webkitRequestFileSystemSync(int type, int size) native; |
| 45 |
| 46 _EntrySyncImpl webkitResolveLocalFileSystemSyncURL(String url) native; |
| 47 |
| 48 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; |
| 49 } |
OLD | NEW |