OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 interface IDBDatabase { | 7 interface IDBDatabase { |
8 | 8 |
9 String get name(); | 9 final String name; |
10 | 10 |
11 EventListener get onabort(); | 11 EventListener onabort; |
12 | 12 |
13 void set onabort(EventListener value); | 13 EventListener onerror; |
14 | 14 |
15 EventListener get onerror(); | 15 EventListener onversionchange; |
16 | 16 |
17 void set onerror(EventListener value); | 17 final String version; |
18 | |
19 EventListener get onversionchange(); | |
20 | |
21 void set onversionchange(EventListener value); | |
22 | |
23 String get version(); | |
24 | 18 |
25 void addEventListener(String type, EventListener listener, [bool useCapture]); | 19 void addEventListener(String type, EventListener listener, [bool useCapture]); |
26 | 20 |
27 void close(); | 21 void close(); |
28 | 22 |
29 IDBObjectStore createObjectStore(String name); | 23 IDBObjectStore createObjectStore(String name); |
30 | 24 |
31 void deleteObjectStore(String name); | 25 void deleteObjectStore(String name); |
32 | 26 |
33 bool dispatchEvent(Event evt); | 27 bool dispatchEvent(Event evt); |
34 | 28 |
35 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 29 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
36 | 30 |
37 IDBVersionChangeRequest setVersion(String version); | 31 IDBVersionChangeRequest setVersion(String version); |
38 | 32 |
39 IDBTransaction transaction(String storeName, int mode); | 33 IDBTransaction transaction(String storeName, int mode); |
40 } | 34 } |
OLD | NEW |