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

Side by Side Diff: client/dom/generated/src/frog/IDBRequest.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 _IDBRequestJs extends _DOMTypeJs implements IDBRequest native "*IDBRequest " { 2 class _IDBRequestJs extends _DOMTypeJs implements IDBRequest native "*IDBRequest " {
3 3
4 static final int DONE = 2; 4 static final int DONE = 2;
5 5
6 static final int LOADING = 1; 6 static final int LOADING = 1;
7 7
8 int get errorCode() native "return this.errorCode;"; 8 final int errorCode;
9 9
10 EventListener get onerror() native "return this.onerror;"; 10 EventListener onerror;
11 11
12 void set onerror(EventListener value) native "this.onerror = value;"; 12 EventListener onsuccess;
13 13
14 EventListener get onsuccess() native "return this.onsuccess;"; 14 final int readyState;
15 15
16 void set onsuccess(EventListener value) native "this.onsuccess = value;"; 16 final _IDBAnyJs result;
17 17
18 int get readyState() native "return this.readyState;"; 18 final _IDBAnyJs source;
19 19
20 _IDBAnyJs get result() native "return this.result;"; 20 final _IDBTransactionJs transaction;
21 21
22 _IDBAnyJs get source() native "return this.source;"; 22 final String webkitErrorMessage;
23
24 _IDBTransactionJs get transaction() native "return this.transaction;";
25
26 String get webkitErrorMessage() native "return this.webkitErrorMessage;";
27 23
28 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 24 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
29 25
30 bool dispatchEvent(_EventJs evt) native; 26 bool dispatchEvent(_EventJs evt) native;
31 27
32 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 28 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
33 } 29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698