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 XMLHttpRequestUploadEventsImplementation extends EventsImplementation | 5 class XMLHttpRequestUploadEventsImplementation extends EventsImplementation |
6 implements XMLHttpRequestUploadEvents { | 6 implements XMLHttpRequestUploadEvents { |
7 XMLHttpRequestUploadEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | 7 XMLHttpRequestUploadEventsImplementation._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'); |
11 EventListenerList get load() => _get('load'); | 11 EventListenerList get load => _get('load'); |
12 EventListenerList get loadStart() => _get('loadstart'); | 12 EventListenerList get loadStart => _get('loadstart'); |
13 EventListenerList get progress() => _get('progress'); | 13 EventListenerList get progress => _get('progress'); |
14 } | 14 } |
15 | 15 |
16 class XMLHttpRequestUploadWrappingImplementation extends EventTargetWrappingImpl
ementation implements XMLHttpRequestUpload { | 16 class XMLHttpRequestUploadWrappingImplementation extends EventTargetWrappingImpl
ementation implements XMLHttpRequestUpload { |
17 XMLHttpRequestUploadWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 17 XMLHttpRequestUploadWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
18 | 18 |
19 XMLHttpRequestUploadEvents get on() { | 19 XMLHttpRequestUploadEvents get on { |
20 if (_on === null) { | 20 if (_on === null) { |
21 _on = new XMLHttpRequestUploadEventsImplementation._wrap(_ptr); | 21 _on = new XMLHttpRequestUploadEventsImplementation._wrap(_ptr); |
22 } | 22 } |
23 return _on; | 23 return _on; |
24 } | 24 } |
25 } | 25 } |
OLD | NEW |