| OLD | NEW |
| (Empty) |
| 1 | |
| 2 class _WorkerContextJs extends _DOMTypeJs implements WorkerContext native "*Work
erContext" { | |
| 3 | |
| 4 static final int PERSISTENT = 1; | |
| 5 | |
| 6 static final int TEMPORARY = 0; | |
| 7 | |
| 8 final _WorkerLocationJs location; | |
| 9 | |
| 10 final _WorkerNavigatorJs navigator; | |
| 11 | |
| 12 EventListener onerror; | |
| 13 | |
| 14 final _WorkerContextJs self; | |
| 15 | |
| 16 final _IDBFactoryJs webkitIndexedDB; | |
| 17 | |
| 18 final _NotificationCenterJs 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(_EventJs evt) native; | |
| 29 | |
| 30 void importScripts() native; | |
| 31 | |
| 32 _DatabaseJs openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback = null]) native; | |
| 33 | |
| 34 _DatabaseSyncJs openDatabaseSync(String name, String version, String displayNa
me, 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 _DOMFileSystemSyncJs webkitRequestFileSystemSync(int type, int size) native; | |
| 45 | |
| 46 _EntrySyncJs webkitResolveLocalFileSystemSyncURL(String url) native; | |
| 47 | |
| 48 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; | |
| 49 } | |
| OLD | NEW |