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 final String name; | 4 final String name; |
5 | 5 |
6 final List<String> objectStoreNames; | 6 final List<String> objectStoreNames; |
7 | 7 |
8 EventListener onabort; | 8 EventListener onabort; |
9 | 9 |
10 EventListener onerror; | 10 EventListener onerror; |
11 | 11 |
12 EventListener onversionchange; | 12 EventListener onversionchange; |
13 | 13 |
14 final String version; | 14 final String version; |
15 | 15 |
16 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 16 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
17 | 17 |
18 void close() native; | 18 void close() native; |
19 | 19 |
20 _IDBObjectStoreJs createObjectStore(String name) native; | 20 _IDBObjectStoreJs createObjectStore(String name) native; |
21 | 21 |
22 void deleteObjectStore(String name) native; | 22 void deleteObjectStore(String name) native; |
23 | 23 |
24 bool dispatchEvent(_EventJs evt) native; | 24 bool dispatchEvent(_EventJs evt) native; |
25 | 25 |
26 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 26 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
27 | 27 |
28 _IDBVersionChangeRequestJs setVersion(String version) native; | 28 _IDBVersionChangeRequestJs setVersion(String version) native; |
29 | 29 |
30 _IDBTransactionJs transaction(var storeName_OR_storeNames, int mode) native; | 30 _IDBTransactionJs transaction(var storeName_OR_storeNames, [int mode = null])
native; |
31 } | 31 } |
OLD | NEW |