| OLD | NEW |
| 1 | 1 |
| 2 class WorkerContext native "*WorkerContext" { | 2 class WorkerContext native "*WorkerContext" { |
| 3 | 3 |
| 4 static final int PERSISTENT = 1; | 4 static final int PERSISTENT = 1; |
| 5 | 5 |
| 6 static final int TEMPORARY = 0; | 6 static final int TEMPORARY = 0; |
| 7 | 7 |
| 8 WorkerLocation location; | 8 WorkerLocation location; |
| 9 | 9 |
| 10 WorkerNavigator navigator; | 10 WorkerNavigator navigator; |
| 11 | 11 |
| 12 WorkerContext self; | 12 WorkerContext self; |
| 13 | 13 |
| 14 NotificationCenter webkitNotifications; | 14 NotificationCenter webkitNotifications; |
| 15 | 15 |
| 16 DOMURL webkitURL; | 16 DOMURL webkitURL; |
| 17 | 17 |
| 18 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 18 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 19 | 19 |
| 20 void clearInterval(int handle) native; | 20 void clearInterval(int handle) native; |
| 21 | 21 |
| 22 void clearTimeout(int handle) native; | 22 void clearTimeout(int handle) native; |
| 23 | 23 |
| 24 void close() native; | 24 void close() native; |
| 25 | 25 |
| 26 bool dispatchEvent(Event evt) native; | 26 bool dispatchEvent(Event evt) native; |
| 27 | 27 |
| 28 void importScripts() native; | 28 void importScripts() native; |
| 29 | 29 |
| 30 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback = null]) native; |
| 31 |
| 32 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback = null]) native; |
| 33 |
| 30 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 34 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 31 | 35 |
| 32 int setInterval(TimeoutHandler handler, int timeout) native; | 36 int setInterval(TimeoutHandler handler, int timeout) native; |
| 33 | 37 |
| 34 int setTimeout(TimeoutHandler handler, int timeout) native; | 38 int setTimeout(TimeoutHandler handler, int timeout) native; |
| 35 | 39 |
| 36 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) native; | 40 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) native; |
| 37 | 41 |
| 38 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; | 42 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; |
| 39 | 43 |
| 40 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native; | 44 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native; |
| 41 | 45 |
| 42 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; | 46 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; |
| 43 | 47 |
| 44 var dartObjectLocalStorage; | 48 var dartObjectLocalStorage; |
| 45 | 49 |
| 46 String get typeName() native; | 50 String get typeName() native; |
| 47 } | 51 } |
| OLD | NEW |