Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: client/dom/generated/src/frog/FileWriter.dart

Issue 9312003: Use fields in hidden native DOM classes instead of getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix native Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698