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