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