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