Index: modules/indexeddb/IDBDatabase.idl |
diff --git a/modules/indexeddb/IDBDatabase.idl b/modules/indexeddb/IDBDatabase.idl |
index 36ab560e13039b7397aca8df5b207fde7bf5b6c5..1df577ef13ae996feac023657142fd86b00f237d 100644 |
--- a/modules/indexeddb/IDBDatabase.idl |
+++ b/modules/indexeddb/IDBDatabase.idl |
@@ -24,29 +24,23 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-// https://dvcs.w3.org/hg/IndexedDB/raw-file/default/Overview.html#idl-def-IDBDatabase |
- |
-// FIXME: de-duplicate this when crbug.com/390758 is fixed. |
-enum IDBTransactionMode { |
- "readonly", |
- "readwrite", |
- "versionchange" |
-}; |
+// https://w3c.github.io/IndexedDB/#idl-def-IDBDatabase |
[ |
+ Exposed=(Window,Worker), |
ActiveDOMObject, |
GarbageCollected, |
] interface IDBDatabase : EventTarget { |
readonly attribute DOMString name; |
- [CallWith=ScriptState] readonly attribute any version; |
- readonly attribute DOMStringList objectStoreNames; |
- [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional Dictionary options); |
+ // TODO(jsbell): DOMString version is non-standard, to support databases created with old API. |
+ readonly attribute (unsigned long long or DOMString) version; |
+ [Measure] readonly attribute DOMStringList objectStoreNames; |
+ |
+ [RaisesException] IDBObjectStore createObjectStore(DOMString name, optional IDBObjectStoreParameters options); |
[RaisesException] void deleteObjectStore(DOMString name); |
- // FIXME: should be union type http://crbug.com/240176 |
- [CallWith=ScriptState, RaisesException] IDBTransaction transaction(DOMString storeName, optional IDBTransactionMode mode = "readonly"); |
- [CallWith=ScriptState, RaisesException] IDBTransaction transaction(sequence<DOMString> storeNames, optional IDBTransactionMode mode = "readonly"); |
- [CallWith=ScriptState, RaisesException] IDBTransaction transaction(DOMStringList storeNames, optional IDBTransactionMode mode = "readonly"); |
+ [CallWith=ScriptState, RaisesException] IDBTransaction transaction((DOMString or sequence<DOMString> or DOMStringList) storeNames, optional IDBTransactionMode mode = "readonly"); |
void close(); |
+ |
attribute EventHandler onabort; |
attribute EventHandler onclose; |
attribute EventHandler onerror; |