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