OLD | NEW |
1 | 1 |
2 class WorkerContext native "*WorkerContext" { | 2 class WorkerContextJS implements 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 get location() native "return this.location;"; | 8 WorkerLocationJS get location() native "return this.location;"; |
9 | 9 |
10 void set location(WorkerLocation value) native "this.location = value;"; | 10 void set location(WorkerLocationJS value) native "this.location = value;"; |
11 | 11 |
12 WorkerNavigator get navigator() native "return this.navigator;"; | 12 WorkerNavigatorJS get navigator() native "return this.navigator;"; |
13 | 13 |
14 void set navigator(WorkerNavigator value) native "this.navigator = value;"; | 14 void set navigator(WorkerNavigatorJS value) native "this.navigator = value;"; |
15 | 15 |
16 EventListener get onerror() native "return this.onerror;"; | 16 EventListener get onerror() native "return this.onerror;"; |
17 | 17 |
18 void set onerror(EventListener value) native "this.onerror = value;"; | 18 void set onerror(EventListener value) native "this.onerror = value;"; |
19 | 19 |
20 WorkerContext get self() native "return this.self;"; | 20 WorkerContextJS get self() native "return this.self;"; |
21 | 21 |
22 void set self(WorkerContext value) native "this.self = value;"; | 22 void set self(WorkerContextJS value) native "this.self = value;"; |
23 | 23 |
24 IDBFactory get webkitIndexedDB() native "return this.webkitIndexedDB;"; | 24 IDBFactoryJS get webkitIndexedDB() native "return this.webkitIndexedDB;"; |
25 | 25 |
26 NotificationCenter get webkitNotifications() native "return this.webkitNotific
ations;"; | 26 NotificationCenterJS get webkitNotifications() native "return this.webkitNotif
ications;"; |
27 | 27 |
28 DOMURL get webkitURL() native "return this.webkitURL;"; | 28 DOMURLJS get webkitURL() native "return this.webkitURL;"; |
29 | 29 |
30 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 30 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
31 | 31 |
32 void clearInterval(int handle) native; | 32 void clearInterval(int handle) native; |
33 | 33 |
34 void clearTimeout(int handle) native; | 34 void clearTimeout(int handle) native; |
35 | 35 |
36 void close() native; | 36 void close() native; |
37 | 37 |
38 bool dispatchEvent(Event evt) native; | 38 bool dispatchEvent(EventJS evt) native; |
39 | 39 |
40 void importScripts() native; | 40 void importScripts() native; |
41 | 41 |
42 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback = null]) native; | 42 DatabaseJS openDatabase(String name, String version, String displayName, int e
stimatedSize, [DatabaseCallback creationCallback = null]) native; |
43 | 43 |
44 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback = null]) native; | 44 DatabaseSyncJS openDatabaseSync(String name, String version, String displayNam
e, int estimatedSize, [DatabaseCallback creationCallback = null]) native; |
45 | 45 |
46 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 46 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
47 | 47 |
48 int setInterval(TimeoutHandler handler, int timeout) native; | 48 int setInterval(TimeoutHandler handler, int timeout) native; |
49 | 49 |
50 int setTimeout(TimeoutHandler handler, int timeout) native; | 50 int setTimeout(TimeoutHandler handler, int timeout) native; |
51 | 51 |
52 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) native; | 52 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) native; |
53 | 53 |
54 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; | 54 DOMFileSystemSyncJS webkitRequestFileSystemSync(int type, int size) native; |
55 | 55 |
56 EntrySync webkitResolveLocalFileSystemSyncURL(String url) native; | 56 EntrySyncJS webkitResolveLocalFileSystemSyncURL(String url) native; |
57 | 57 |
58 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; | 58 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; |
59 | 59 |
60 var dartObjectLocalStorage; | 60 var dartObjectLocalStorage; |
61 | 61 |
62 String get typeName() native; | 62 String get typeName() native; |
63 } | 63 } |
OLD | NEW |