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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 interface FileReader default _FileReaderFactoryProvider { | 7 interface FileReader default _FileReaderFactoryProvider { |
8 | 8 |
9 FileReader(); | 9 FileReader(); |
10 | 10 |
11 static final int DONE = 2; | 11 static final int DONE = 2; |
12 | 12 |
13 static final int EMPTY = 0; | 13 static final int EMPTY = 0; |
14 | 14 |
15 static final int LOADING = 1; | 15 static final int LOADING = 1; |
16 | 16 |
17 FileError get error(); | 17 final FileError error; |
18 | 18 |
19 EventListener get onabort(); | 19 EventListener onabort; |
20 | 20 |
21 void set onabort(EventListener value); | 21 EventListener onerror; |
22 | 22 |
23 EventListener get onerror(); | 23 EventListener onload; |
24 | 24 |
25 void set onerror(EventListener value); | 25 EventListener onloadend; |
26 | 26 |
27 EventListener get onload(); | 27 EventListener onloadstart; |
28 | 28 |
29 void set onload(EventListener value); | 29 EventListener onprogress; |
30 | 30 |
31 EventListener get onloadend(); | 31 final int readyState; |
32 | 32 |
33 void set onloadend(EventListener value); | 33 final Object result; |
34 | |
35 EventListener get onloadstart(); | |
36 | |
37 void set onloadstart(EventListener value); | |
38 | |
39 EventListener get onprogress(); | |
40 | |
41 void set onprogress(EventListener value); | |
42 | |
43 int get readyState(); | |
44 | |
45 Object get result(); | |
46 | 34 |
47 void abort(); | 35 void abort(); |
48 | 36 |
49 void addEventListener(String type, EventListener listener, [bool useCapture]); | 37 void addEventListener(String type, EventListener listener, [bool useCapture]); |
50 | 38 |
51 bool dispatchEvent(Event evt); | 39 bool dispatchEvent(Event evt); |
52 | 40 |
53 void readAsArrayBuffer(Blob blob); | 41 void readAsArrayBuffer(Blob blob); |
54 | 42 |
55 void readAsBinaryString(Blob blob); | 43 void readAsBinaryString(Blob blob); |
56 | 44 |
57 void readAsDataURL(Blob blob); | 45 void readAsDataURL(Blob blob); |
58 | 46 |
59 void readAsText(Blob blob, [String encoding]); | 47 void readAsText(Blob blob, [String encoding]); |
60 | 48 |
61 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 49 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
62 } | 50 } |
OLD | NEW |