OLD | NEW |
1 | 1 |
2 class _FileWriterJs extends _DOMTypeJs implements FileWriter native "*FileWriter
" { | 2 class _FileWriterJs extends _DOMTypeJs implements FileWriter native "*FileWriter
" { |
3 | 3 |
4 static final int DONE = 2; | 4 static final int DONE = 2; |
5 | 5 |
6 static final int INIT = 0; | 6 static final int INIT = 0; |
7 | 7 |
8 static final int WRITING = 1; | 8 static final int WRITING = 1; |
9 | 9 |
10 _FileErrorJs get error() native "return this.error;"; | 10 final _FileErrorJs error; |
11 | 11 |
12 int get length() native "return this.length;"; | 12 final int length; |
13 | 13 |
14 EventListener get onabort() native "return this.onabort;"; | 14 EventListener onabort; |
15 | 15 |
16 void set onabort(EventListener value) native "this.onabort = value;"; | 16 EventListener onerror; |
17 | 17 |
18 EventListener get onerror() native "return this.onerror;"; | 18 EventListener onprogress; |
19 | 19 |
20 void set onerror(EventListener value) native "this.onerror = value;"; | 20 EventListener onwrite; |
21 | 21 |
22 EventListener get onprogress() native "return this.onprogress;"; | 22 EventListener onwriteend; |
23 | 23 |
24 void set onprogress(EventListener value) native "this.onprogress = value;"; | 24 EventListener onwritestart; |
25 | 25 |
26 EventListener get onwrite() native "return this.onwrite;"; | 26 final int position; |
27 | 27 |
28 void set onwrite(EventListener value) native "this.onwrite = value;"; | 28 final int readyState; |
29 | |
30 EventListener get onwriteend() native "return this.onwriteend;"; | |
31 | |
32 void set onwriteend(EventListener value) native "this.onwriteend = value;"; | |
33 | |
34 EventListener get onwritestart() native "return this.onwritestart;"; | |
35 | |
36 void set onwritestart(EventListener value) native "this.onwritestart = value;"
; | |
37 | |
38 int get position() native "return this.position;"; | |
39 | |
40 int get readyState() native "return this.readyState;"; | |
41 | 29 |
42 void abort() native; | 30 void abort() native; |
43 | 31 |
44 void seek(int position) native; | 32 void seek(int position) native; |
45 | 33 |
46 void truncate(int size) native; | 34 void truncate(int size) native; |
47 | 35 |
48 void write(_BlobJs data) native; | 36 void write(_BlobJs data) native; |
49 } | 37 } |
OLD | NEW |