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

Side by Side Diff: client/dom/generated/src/frog/IDBTransaction.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 _IDBTransactionJs extends _DOMTypeJs implements IDBTransaction native "*ID BTransaction" { 2 class _IDBTransactionJs extends _DOMTypeJs implements IDBTransaction native "*ID BTransaction" {
3 3
4 static final int READ_ONLY = 0; 4 static final int READ_ONLY = 0;
5 5
6 static final int READ_WRITE = 1; 6 static final int READ_WRITE = 1;
7 7
8 static final int VERSION_CHANGE = 2; 8 static final int VERSION_CHANGE = 2;
9 9
10 _IDBDatabaseJs get db() native "return this.db;"; 10 final _IDBDatabaseJs db;
11 11
12 int get mode() native "return this.mode;"; 12 final int mode;
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 oncomplete;
17 17
18 EventListener get oncomplete() native "return this.oncomplete;"; 18 EventListener onerror;
19
20 void set oncomplete(EventListener value) native "this.oncomplete = value;";
21
22 EventListener get onerror() native "return this.onerror;";
23
24 void set onerror(EventListener value) native "this.onerror = value;";
25 19
26 void abort() native; 20 void abort() native;
27 21
28 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 22 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
29 23
30 bool dispatchEvent(_EventJs evt) native; 24 bool dispatchEvent(_EventJs evt) native;
31 25
32 _IDBObjectStoreJs objectStore(String name) native; 26 _IDBObjectStoreJs objectStore(String name) native;
33 27
34 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 28 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
35 } 29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698