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

Side by Side Diff: client/dom/generated/src/frog/FileReader.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 _FileReaderJs extends _DOMTypeJs implements FileReader native "*FileReader " { 2 class _FileReaderJs extends _DOMTypeJs implements FileReader native "*FileReader " {
3 FileReader() native; 3 FileReader() native;
4 4
5 5
6 static final int DONE = 2; 6 static final int DONE = 2;
7 7
8 static final int EMPTY = 0; 8 static final int EMPTY = 0;
9 9
10 static final int LOADING = 1; 10 static final int LOADING = 1;
11 11
12 _FileErrorJs get error() native "return this.error;"; 12 final _FileErrorJs error;
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 onload;
19 19
20 void set onerror(EventListener value) native "this.onerror = value;"; 20 EventListener onloadend;
21 21
22 EventListener get onload() native "return this.onload;"; 22 EventListener onloadstart;
23 23
24 void set onload(EventListener value) native "this.onload = value;"; 24 EventListener onprogress;
25 25
26 EventListener get onloadend() native "return this.onloadend;"; 26 final int readyState;
27 27
28 void set onloadend(EventListener value) native "this.onloadend = value;"; 28 final Object result;
29
30 EventListener get onloadstart() native "return this.onloadstart;";
31
32 void set onloadstart(EventListener value) native "this.onloadstart = value;";
33
34 EventListener get onprogress() native "return this.onprogress;";
35
36 void set onprogress(EventListener value) native "this.onprogress = value;";
37
38 int get readyState() native "return this.readyState;";
39
40 Object get result() native "return this.result;";
41 29
42 void abort() native; 30 void abort() native;
43 31
44 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 32 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
45 33
46 bool dispatchEvent(_EventJs evt) native; 34 bool dispatchEvent(_EventJs evt) native;
47 35
48 void readAsArrayBuffer(_BlobJs blob) native; 36 void readAsArrayBuffer(_BlobJs blob) native;
49 37
50 void readAsBinaryString(_BlobJs blob) native; 38 void readAsBinaryString(_BlobJs blob) native;
51 39
52 void readAsDataURL(_BlobJs blob) native; 40 void readAsDataURL(_BlobJs blob) native;
53 41
54 void readAsText(_BlobJs blob, [String encoding = null]) native; 42 void readAsText(_BlobJs blob, [String encoding = null]) native;
55 43
56 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 44 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
57 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698