| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class _FileReaderWrappingImplementation extends DOMWrapperBase implements FileRe
ader { | |
| 8 _FileReaderWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__FileReaderWrappingImplementation() native { | |
| 11 return new _FileReaderWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 FileError get error() { return _get_error(this); } | |
| 15 static FileError _get_error(var _this) native; | |
| 16 | |
| 17 EventListener get onabort() { return _get_onabort(this); } | |
| 18 static EventListener _get_onabort(var _this) native; | |
| 19 | |
| 20 void set onabort(EventListener value) { _set_onabort(this, value); } | |
| 21 static void _set_onabort(var _this, EventListener value) native; | |
| 22 | |
| 23 EventListener get onerror() { return _get_onerror(this); } | |
| 24 static EventListener _get_onerror(var _this) native; | |
| 25 | |
| 26 void set onerror(EventListener value) { _set_onerror(this, value); } | |
| 27 static void _set_onerror(var _this, EventListener value) native; | |
| 28 | |
| 29 EventListener get onload() { return _get_onload(this); } | |
| 30 static EventListener _get_onload(var _this) native; | |
| 31 | |
| 32 void set onload(EventListener value) { _set_onload(this, value); } | |
| 33 static void _set_onload(var _this, EventListener value) native; | |
| 34 | |
| 35 EventListener get onloadend() { return _get_onloadend(this); } | |
| 36 static EventListener _get_onloadend(var _this) native; | |
| 37 | |
| 38 void set onloadend(EventListener value) { _set_onloadend(this, value); } | |
| 39 static void _set_onloadend(var _this, EventListener value) native; | |
| 40 | |
| 41 EventListener get onloadstart() { return _get_onloadstart(this); } | |
| 42 static EventListener _get_onloadstart(var _this) native; | |
| 43 | |
| 44 void set onloadstart(EventListener value) { _set_onloadstart(this, value); } | |
| 45 static void _set_onloadstart(var _this, EventListener value) native; | |
| 46 | |
| 47 EventListener get onprogress() { return _get_onprogress(this); } | |
| 48 static EventListener _get_onprogress(var _this) native; | |
| 49 | |
| 50 void set onprogress(EventListener value) { _set_onprogress(this, value); } | |
| 51 static void _set_onprogress(var _this, EventListener value) native; | |
| 52 | |
| 53 int get readyState() { return _get_readyState(this); } | |
| 54 static int _get_readyState(var _this) native; | |
| 55 | |
| 56 Object get result() { return _get_result(this); } | |
| 57 static Object _get_result(var _this) native; | |
| 58 | |
| 59 void abort() { | |
| 60 _abort(this); | |
| 61 return; | |
| 62 } | |
| 63 static void _abort(receiver) native; | |
| 64 | |
| 65 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 66 if (useCapture === null) { | |
| 67 _addEventListener(this, type, listener); | |
| 68 return; | |
| 69 } else { | |
| 70 _addEventListener_2(this, type, listener, useCapture); | |
| 71 return; | |
| 72 } | |
| 73 } | |
| 74 static void _addEventListener(receiver, type, listener) native; | |
| 75 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
| 76 | |
| 77 bool dispatchEvent(Event evt) { | |
| 78 return _dispatchEvent(this, evt); | |
| 79 } | |
| 80 static bool _dispatchEvent(receiver, evt) native; | |
| 81 | |
| 82 void readAsArrayBuffer(Blob blob) { | |
| 83 _readAsArrayBuffer(this, blob); | |
| 84 return; | |
| 85 } | |
| 86 static void _readAsArrayBuffer(receiver, blob) native; | |
| 87 | |
| 88 void readAsBinaryString(Blob blob) { | |
| 89 _readAsBinaryString(this, blob); | |
| 90 return; | |
| 91 } | |
| 92 static void _readAsBinaryString(receiver, blob) native; | |
| 93 | |
| 94 void readAsDataURL(Blob blob) { | |
| 95 _readAsDataURL(this, blob); | |
| 96 return; | |
| 97 } | |
| 98 static void _readAsDataURL(receiver, blob) native; | |
| 99 | |
| 100 void readAsText(Blob blob, [String encoding = null]) { | |
| 101 if (encoding === null) { | |
| 102 _readAsText(this, blob); | |
| 103 return; | |
| 104 } else { | |
| 105 _readAsText_2(this, blob, encoding); | |
| 106 return; | |
| 107 } | |
| 108 } | |
| 109 static void _readAsText(receiver, blob) native; | |
| 110 static void _readAsText_2(receiver, blob, encoding) native; | |
| 111 | |
| 112 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 113 if (useCapture === null) { | |
| 114 _removeEventListener(this, type, listener); | |
| 115 return; | |
| 116 } else { | |
| 117 _removeEventListener_2(this, type, listener, useCapture); | |
| 118 return; | |
| 119 } | |
| 120 } | |
| 121 static void _removeEventListener(receiver, type, listener) native; | |
| 122 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
| 123 | |
| 124 String get typeName() { return "FileReader"; } | |
| 125 } | |
| OLD | NEW |