| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class XMLHttpRequestEventsImplementation extends EventsImplementation | 5 class XMLHttpRequestEventsImplementation extends EventsImplementation |
| 6 implements XMLHttpRequestEvents { | 6 implements XMLHttpRequestEvents { |
| 7 XMLHttpRequestEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | 7 XMLHttpRequestEventsImplementation._wrap(_ptr) : super._wrap(_ptr); |
| 8 | 8 |
| 9 EventListenerList get abort() => _get('abort'); | 9 EventListenerList get abort() => _get('abort'); |
| 10 EventListenerList get error() => _get('error'); | 10 EventListenerList get error() => _get('error'); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 int get readyState() => _ptr.readyState; | 48 int get readyState() => _ptr.readyState; |
| 49 | 49 |
| 50 String get responseText() => _ptr.responseText; | 50 String get responseText() => _ptr.responseText; |
| 51 | 51 |
| 52 String get responseType() => _ptr.responseType; | 52 String get responseType() => _ptr.responseType; |
| 53 | 53 |
| 54 void set responseType(String value) { _ptr.responseType = value; } | 54 void set responseType(String value) { _ptr.responseType = value; } |
| 55 | 55 |
| 56 XMLDocument get responseXML() => LevelDom.wrapDocument(_ptr.responseXML); | 56 Document get responseXML() => LevelDom.wrapDocument(_ptr.responseXML); |
| 57 | 57 |
| 58 int get status() => _ptr.status; | 58 int get status() => _ptr.status; |
| 59 | 59 |
| 60 String get statusText() => _ptr.statusText; | 60 String get statusText() => _ptr.statusText; |
| 61 | 61 |
| 62 XMLHttpRequestUpload get upload() => LevelDom.wrapXMLHttpRequestUpload(_ptr.up
load); | 62 XMLHttpRequestUpload get upload() => LevelDom.wrapXMLHttpRequestUpload(_ptr.up
load); |
| 63 | 63 |
| 64 bool get withCredentials() => _ptr.withCredentials; | 64 bool get withCredentials() => _ptr.withCredentials; |
| 65 | 65 |
| 66 void set withCredentials(bool value) { _ptr.withCredentials = value; } | 66 void set withCredentials(bool value) { _ptr.withCredentials = value; } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 _ptr.setRequestHeader(header, value); | 122 _ptr.setRequestHeader(header, value); |
| 123 } | 123 } |
| 124 | 124 |
| 125 XMLHttpRequestEvents get on() { | 125 XMLHttpRequestEvents get on() { |
| 126 if (_on === null) { | 126 if (_on === null) { |
| 127 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr); | 127 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr); |
| 128 } | 128 } |
| 129 return _on; | 129 return _on; |
| 130 } | 130 } |
| 131 } | 131 } |
| OLD | NEW |