| 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 FileError get error(); |
| 16 | 16 |
| 17 int get length(); | 17 int get length(); |
| 18 | 18 |
| 19 EventListener get onabort(); | |
| 20 | |
| 21 void set onabort(EventListener value); | |
| 22 | |
| 23 EventListener get onerror(); | |
| 24 | |
| 25 void set onerror(EventListener value); | |
| 26 | |
| 27 EventListener get onprogress(); | |
| 28 | |
| 29 void set onprogress(EventListener value); | |
| 30 | |
| 31 EventListener get onwrite(); | |
| 32 | |
| 33 void set onwrite(EventListener value); | |
| 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(); | 19 int get position(); |
| 44 | 20 |
| 45 int get readyState(); | 21 int get readyState(); |
| 46 | 22 |
| 47 void abort(); | 23 void abort(); |
| 48 | 24 |
| 49 void seek(int position); | 25 void seek(int position); |
| 50 | 26 |
| 51 void truncate(int size); | 27 void truncate(int size); |
| 52 | 28 |
| 53 void write(Blob data); | 29 void write(Blob data); |
| 54 } | 30 } |
| OLD | NEW |