OLD | NEW |
1 | 1 |
2 class XMLHttpRequestJS implements XMLHttpRequest native "*XMLHttpRequest" { | 2 class XMLHttpRequestJs extends DOMTypeJs implements XMLHttpRequest native "*XMLH
ttpRequest" { |
3 XMLHttpRequest() native; | 3 XMLHttpRequest() native; |
4 | 4 |
5 | 5 |
6 static final int DONE = 4; | 6 static final int DONE = 4; |
7 | 7 |
8 static final int HEADERS_RECEIVED = 2; | 8 static final int HEADERS_RECEIVED = 2; |
9 | 9 |
10 static final int LOADING = 3; | 10 static final int LOADING = 3; |
11 | 11 |
12 static final int OPENED = 1; | 12 static final int OPENED = 1; |
13 | 13 |
14 static final int UNSENT = 0; | 14 static final int UNSENT = 0; |
15 | 15 |
16 bool get asBlob() native "return this.asBlob;"; | 16 bool get asBlob() native "return this.asBlob;"; |
17 | 17 |
18 void set asBlob(bool value) native "this.asBlob = value;"; | 18 void set asBlob(bool value) native "this.asBlob = value;"; |
19 | 19 |
20 int get readyState() native "return this.readyState;"; | 20 int get readyState() native "return this.readyState;"; |
21 | 21 |
22 BlobJS get responseBlob() native "return this.responseBlob;"; | 22 BlobJs get responseBlob() native "return this.responseBlob;"; |
23 | 23 |
24 String get responseText() native "return this.responseText;"; | 24 String get responseText() native "return this.responseText;"; |
25 | 25 |
26 String get responseType() native "return this.responseType;"; | 26 String get responseType() native "return this.responseType;"; |
27 | 27 |
28 void set responseType(String value) native "this.responseType = value;"; | 28 void set responseType(String value) native "this.responseType = value;"; |
29 | 29 |
30 DocumentJS get responseXML() native "return this.responseXML;"; | 30 DocumentJs get responseXML() native "return this.responseXML;"; |
31 | 31 |
32 int get status() native "return this.status;"; | 32 int get status() native "return this.status;"; |
33 | 33 |
34 String get statusText() native "return this.statusText;"; | 34 String get statusText() native "return this.statusText;"; |
35 | 35 |
36 XMLHttpRequestUploadJS get upload() native "return this.upload;"; | 36 XMLHttpRequestUploadJs get upload() native "return this.upload;"; |
37 | 37 |
38 bool get withCredentials() native "return this.withCredentials;"; | 38 bool get withCredentials() native "return this.withCredentials;"; |
39 | 39 |
40 void set withCredentials(bool value) native "this.withCredentials = value;"; | 40 void set withCredentials(bool value) native "this.withCredentials = value;"; |
41 | 41 |
42 void abort() native; | 42 void abort() native; |
43 | 43 |
44 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 44 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
45 | 45 |
46 bool dispatchEvent(EventJS evt) native; | 46 bool dispatchEvent(EventJs evt) native; |
47 | 47 |
48 String getAllResponseHeaders() native; | 48 String getAllResponseHeaders() native; |
49 | 49 |
50 String getResponseHeader(String header) native; | 50 String getResponseHeader(String header) native; |
51 | 51 |
52 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; | 52 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; |
53 | 53 |
54 void overrideMimeType(String override) native; | 54 void overrideMimeType(String override) native; |
55 | 55 |
56 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 56 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
57 | 57 |
58 void send([var data = null]) native; | 58 void send([var data = null]) native; |
59 | 59 |
60 void setRequestHeader(String header, String value) native; | 60 void setRequestHeader(String header, String value) native; |
61 | |
62 var dartObjectLocalStorage; | |
63 | |
64 String get typeName() native; | |
65 } | 61 } |
OLD | NEW |