OLD | NEW |
1 | 1 |
2 class XMLHttpRequestJs extends DOMTypeJs implements XMLHttpRequest native "*XMLH
ttpRequest" { | 2 class _XMLHttpRequestJs extends _DOMTypeJs implements XMLHttpRequest native "*XM
LHttpRequest" { |
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 Object get response() native "return this.response;"; | 22 Object get response() native "return this.response;"; |
23 | 23 |
24 BlobJs get responseBlob() native "return this.responseBlob;"; | 24 _BlobJs get responseBlob() native "return this.responseBlob;"; |
25 | 25 |
26 String get responseText() native "return this.responseText;"; | 26 String get responseText() native "return this.responseText;"; |
27 | 27 |
28 String get responseType() native "return this.responseType;"; | 28 String get responseType() native "return this.responseType;"; |
29 | 29 |
30 void set responseType(String value) native "this.responseType = value;"; | 30 void set responseType(String value) native "this.responseType = value;"; |
31 | 31 |
32 DocumentJs get responseXML() native "return this.responseXML;"; | 32 _DocumentJs get responseXML() native "return this.responseXML;"; |
33 | 33 |
34 int get status() native "return this.status;"; | 34 int get status() native "return this.status;"; |
35 | 35 |
36 String get statusText() native "return this.statusText;"; | 36 String get statusText() native "return this.statusText;"; |
37 | 37 |
38 XMLHttpRequestUploadJs get upload() native "return this.upload;"; | 38 _XMLHttpRequestUploadJs get upload() native "return this.upload;"; |
39 | 39 |
40 bool get withCredentials() native "return this.withCredentials;"; | 40 bool get withCredentials() native "return this.withCredentials;"; |
41 | 41 |
42 void set withCredentials(bool value) native "this.withCredentials = value;"; | 42 void set withCredentials(bool value) native "this.withCredentials = value;"; |
43 | 43 |
44 void abort() native; | 44 void abort() native; |
45 | 45 |
46 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 46 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
47 | 47 |
48 bool dispatchEvent(EventJs evt) native; | 48 bool dispatchEvent(_EventJs evt) native; |
49 | 49 |
50 String getAllResponseHeaders() native; | 50 String getAllResponseHeaders() native; |
51 | 51 |
52 String getResponseHeader(String header) native; | 52 String getResponseHeader(String header) native; |
53 | 53 |
54 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; | 54 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; |
55 | 55 |
56 void overrideMimeType(String override) native; | 56 void overrideMimeType(String override) native; |
57 | 57 |
58 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 58 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
59 | 59 |
60 void send([var data = null]) native; | 60 void send([var data = null]) native; |
61 | 61 |
62 void setRequestHeader(String header, String value) native; | 62 void setRequestHeader(String header, String value) native; |
63 } | 63 } |
OLD | NEW |