OLD | NEW |
1 | 1 |
2 class _IDBDatabaseJs extends _DOMTypeJs implements IDBDatabase native "*IDBDatab
ase" { | 2 class _IDBDatabaseJs extends _DOMTypeJs implements IDBDatabase native "*IDBDatab
ase" { |
3 | 3 |
4 String get name() native "return this.name;"; | 4 final String name; |
5 | 5 |
6 EventListener get onabort() native "return this.onabort;"; | 6 EventListener onabort; |
7 | 7 |
8 void set onabort(EventListener value) native "this.onabort = value;"; | 8 EventListener onerror; |
9 | 9 |
10 EventListener get onerror() native "return this.onerror;"; | 10 EventListener onversionchange; |
11 | 11 |
12 void set onerror(EventListener value) native "this.onerror = value;"; | 12 final String version; |
13 | |
14 EventListener get onversionchange() native "return this.onversionchange;"; | |
15 | |
16 void set onversionchange(EventListener value) native "this.onversionchange = v
alue;"; | |
17 | |
18 String get version() native "return this.version;"; | |
19 | 13 |
20 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 14 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
21 | 15 |
22 void close() native; | 16 void close() native; |
23 | 17 |
24 _IDBObjectStoreJs createObjectStore(String name) native; | 18 _IDBObjectStoreJs createObjectStore(String name) native; |
25 | 19 |
26 void deleteObjectStore(String name) native; | 20 void deleteObjectStore(String name) native; |
27 | 21 |
28 bool dispatchEvent(_EventJs evt) native; | 22 bool dispatchEvent(_EventJs evt) native; |
29 | 23 |
30 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 24 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
31 | 25 |
32 _IDBVersionChangeRequestJs setVersion(String version) native; | 26 _IDBVersionChangeRequestJs setVersion(String version) native; |
33 | 27 |
34 _IDBTransactionJs transaction(String storeName, int mode) native; | 28 _IDBTransactionJs transaction(String storeName, int mode) native; |
35 } | 29 } |
OLD | NEW |