| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 /// @domName IDBDatabase |
| 8 interface IDBDatabase extends EventTarget { |
| 9 |
| 10 /** |
| 11 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 12 */ |
| 13 IDBDatabaseEvents get on(); |
| 14 |
| 15 /** @domName IDBDatabase.name */ |
| 16 final String name; |
| 17 |
| 18 /** @domName IDBDatabase.objectStoreNames */ |
| 19 final List<String> objectStoreNames; |
| 20 |
| 21 /** @domName IDBDatabase.version */ |
| 22 final String version; |
| 23 |
| 24 /** @domName IDBDatabase.addEventListener */ |
| 25 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 26 |
| 27 /** @domName IDBDatabase.close */ |
| 28 void close(); |
| 29 |
| 30 /** @domName IDBDatabase.createObjectStore */ |
| 31 IDBObjectStore createObjectStore(String name, [Map options]); |
| 32 |
| 33 /** @domName IDBDatabase.deleteObjectStore */ |
| 34 void deleteObjectStore(String name); |
| 35 |
| 36 /** @domName IDBDatabase.dispatchEvent */ |
| 37 bool $dom_dispatchEvent(Event evt); |
| 38 |
| 39 /** @domName IDBDatabase.removeEventListener */ |
| 40 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 41 |
| 42 /** @domName IDBDatabase.setVersion */ |
| 43 IDBVersionChangeRequest setVersion(String version); |
| 44 |
| 45 /** @domName IDBDatabase.transaction */ |
| 46 IDBTransaction transaction(storeName_OR_storeNames, String mode); |
| 47 } |
| 48 |
| 49 interface IDBDatabaseEvents extends Events { |
| 50 |
| 51 EventListenerList get abort(); |
| 52 |
| 53 EventListenerList get error(); |
| 54 |
| 55 EventListenerList get versionChange(); |
| 56 } |
| OLD | NEW |