OLD | NEW |
1 | 1 |
2 class IDBTransaction native "*IDBTransaction" { | 2 class IDBTransaction native "*IDBTransaction" { |
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 IDBDatabase db; | 10 IDBDatabase get db() native "return this.db;"; |
11 | 11 |
12 int mode; | 12 int get mode() native "return this.mode;"; |
13 | 13 |
14 EventListener onabort; | 14 EventListener get onabort() native "return this.onabort;"; |
15 | 15 |
16 EventListener oncomplete; | 16 void set onabort(EventListener value) native "this.onabort = value;"; |
17 | 17 |
18 EventListener onerror; | 18 EventListener get oncomplete() native "return this.oncomplete;"; |
| 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;"; |
19 | 25 |
20 void abort() native; | 26 void abort() native; |
21 | 27 |
22 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 28 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
23 | 29 |
24 bool dispatchEvent(Event evt) native; | 30 bool dispatchEvent(Event evt) native; |
25 | 31 |
26 IDBObjectStore objectStore(String name) native; | 32 IDBObjectStore objectStore(String name) native; |
27 | 33 |
28 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 34 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
29 | 35 |
30 var dartObjectLocalStorage; | 36 var dartObjectLocalStorage; |
31 | 37 |
32 String get typeName() native; | 38 String get typeName() native; |
33 } | 39 } |
OLD | NEW |