| 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 FileWriter { | 7 interface FileWriter { |
| 8 | 8 |
| 9 static final int DONE = 2; | 9 static final int DONE = 2; |
| 10 | 10 |
| 11 static final int INIT = 0; | 11 static final int INIT = 0; |
| 12 | 12 |
| 13 static final int WRITING = 1; | 13 static final int WRITING = 1; |
| 14 | 14 |
| 15 FileError get error(); | 15 final FileError error; |
| 16 | 16 |
| 17 int get length(); | 17 final int length; |
| 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 onprogress; |
| 24 | 24 |
| 25 void set onerror(EventListener value); | 25 EventListener onwrite; |
| 26 | 26 |
| 27 EventListener get onprogress(); | 27 EventListener onwriteend; |
| 28 | 28 |
| 29 void set onprogress(EventListener value); | 29 EventListener onwritestart; |
| 30 | 30 |
| 31 EventListener get onwrite(); | 31 final int position; |
| 32 | 32 |
| 33 void set onwrite(EventListener value); | 33 final int readyState; |
| 34 | |
| 35 EventListener get onwriteend(); | |
| 36 | |
| 37 void set onwriteend(EventListener value); | |
| 38 | |
| 39 EventListener get onwritestart(); | |
| 40 | |
| 41 void set onwritestart(EventListener value); | |
| 42 | |
| 43 int get position(); | |
| 44 | |
| 45 int get readyState(); | |
| 46 | 34 |
| 47 void abort(); | 35 void abort(); |
| 48 | 36 |
| 49 void seek(int position); | 37 void seek(int position); |
| 50 | 38 |
| 51 void truncate(int size); | 39 void truncate(int size); |
| 52 | 40 |
| 53 void write(Blob data); | 41 void write(Blob data); |
| 54 } | 42 } |
| OLD | NEW |