| OLD | NEW |
| 1 | 1 |
| 2 class FileReader native "*FileReader" { | 2 class FileReader native "*FileReader" { |
| 3 FileReader() native; | 3 FileReader() native; |
| 4 | 4 |
| 5 | 5 |
| 6 static final int DONE = 2; | 6 static final int DONE = 2; |
| 7 | 7 |
| 8 static final int EMPTY = 0; | 8 static final int EMPTY = 0; |
| 9 | 9 |
| 10 static final int LOADING = 1; | 10 static final int LOADING = 1; |
| 11 | 11 |
| 12 FileError error; | 12 FileError get error() native "return this.error;"; |
| 13 | 13 |
| 14 EventListener onabort; | 14 EventListener get onabort() native "return this.onabort;"; |
| 15 | 15 |
| 16 EventListener onerror; | 16 void set onabort(EventListener value) native "this.onabort = value;"; |
| 17 | 17 |
| 18 EventListener onload; | 18 EventListener get onerror() native "return this.onerror;"; |
| 19 | 19 |
| 20 EventListener onloadend; | 20 void set onerror(EventListener value) native "this.onerror = value;"; |
| 21 | 21 |
| 22 EventListener onloadstart; | 22 EventListener get onload() native "return this.onload;"; |
| 23 | 23 |
| 24 EventListener onprogress; | 24 void set onload(EventListener value) native "this.onload = value;"; |
| 25 | 25 |
| 26 int readyState; | 26 EventListener get onloadend() native "return this.onloadend;"; |
| 27 | 27 |
| 28 Object result; | 28 void set onloadend(EventListener value) native "this.onloadend = value;"; |
| 29 |
| 30 EventListener get onloadstart() native "return this.onloadstart;"; |
| 31 |
| 32 void set onloadstart(EventListener value) native "this.onloadstart = value;"; |
| 33 |
| 34 EventListener get onprogress() native "return this.onprogress;"; |
| 35 |
| 36 void set onprogress(EventListener value) native "this.onprogress = value;"; |
| 37 |
| 38 int get readyState() native "return this.readyState;"; |
| 39 |
| 40 Object get result() native "return this.result;"; |
| 29 | 41 |
| 30 void abort() native; | 42 void abort() native; |
| 31 | 43 |
| 32 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 44 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 33 | 45 |
| 34 bool dispatchEvent(Event evt) native; | 46 bool dispatchEvent(Event evt) native; |
| 35 | 47 |
| 36 void readAsArrayBuffer(Blob blob) native; | 48 void readAsArrayBuffer(Blob blob) native; |
| 37 | 49 |
| 38 void readAsBinaryString(Blob blob) native; | 50 void readAsBinaryString(Blob blob) native; |
| 39 | 51 |
| 40 void readAsDataURL(Blob blob) native; | 52 void readAsDataURL(Blob blob) native; |
| 41 | 53 |
| 42 void readAsText(Blob blob, [String encoding = null]) native; | 54 void readAsText(Blob blob, [String encoding = null]) native; |
| 43 | 55 |
| 44 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 56 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 45 | 57 |
| 46 var dartObjectLocalStorage; | 58 var dartObjectLocalStorage; |
| 47 | 59 |
| 48 String get typeName() native; | 60 String get typeName() native; |
| 49 } | 61 } |
| OLD | NEW |