| OLD | NEW |
| 1 | 1 |
| 2 class FileReader native "*FileReader" { | 2 class FileReaderJS implements 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 get error() native "return this.error;"; | 12 FileErrorJS get error() native "return this.error;"; |
| 13 | 13 |
| 14 EventListener get onabort() native "return this.onabort;"; | 14 EventListener get onabort() native "return this.onabort;"; |
| 15 | 15 |
| 16 void set onabort(EventListener value) native "this.onabort = value;"; | 16 void set onabort(EventListener value) native "this.onabort = value;"; |
| 17 | 17 |
| 18 EventListener get onerror() native "return this.onerror;"; | 18 EventListener get onerror() native "return this.onerror;"; |
| 19 | 19 |
| 20 void set onerror(EventListener value) native "this.onerror = value;"; | 20 void set onerror(EventListener value) native "this.onerror = value;"; |
| 21 | 21 |
| 22 EventListener get onload() native "return this.onload;"; | 22 EventListener get onload() native "return this.onload;"; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 36 void set onprogress(EventListener value) native "this.onprogress = value;"; | 36 void set onprogress(EventListener value) native "this.onprogress = value;"; |
| 37 | 37 |
| 38 int get readyState() native "return this.readyState;"; | 38 int get readyState() native "return this.readyState;"; |
| 39 | 39 |
| 40 Object get result() native "return this.result;"; | 40 Object get result() native "return this.result;"; |
| 41 | 41 |
| 42 void abort() native; | 42 void abort() native; |
| 43 | 43 |
| 44 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 44 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 45 | 45 |
| 46 bool dispatchEvent(Event evt) native; | 46 bool dispatchEvent(EventJS evt) native; |
| 47 | 47 |
| 48 void readAsArrayBuffer(Blob blob) native; | 48 void readAsArrayBuffer(BlobJS blob) native; |
| 49 | 49 |
| 50 void readAsBinaryString(Blob blob) native; | 50 void readAsBinaryString(BlobJS blob) native; |
| 51 | 51 |
| 52 void readAsDataURL(Blob blob) native; | 52 void readAsDataURL(BlobJS blob) native; |
| 53 | 53 |
| 54 void readAsText(Blob blob, [String encoding = null]) native; | 54 void readAsText(BlobJS blob, [String encoding = null]) native; |
| 55 | 55 |
| 56 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 56 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 57 | 57 |
| 58 var dartObjectLocalStorage; | 58 var dartObjectLocalStorage; |
| 59 | 59 |
| 60 String get typeName() native; | 60 String get typeName() native; |
| 61 } | 61 } |
| OLD | NEW |