| Index: modules/indexeddb/IDBObjectStore.idl
|
| diff --git a/modules/indexeddb/IDBObjectStore.idl b/modules/indexeddb/IDBObjectStore.idl
|
| index 14bd1daf49cd17faa3e07ec659470d0250578e4c..a22fc74ad63970e7c21d9859decbc0a27cdeb33a 100644
|
| --- a/modules/indexeddb/IDBObjectStore.idl
|
| +++ b/modules/indexeddb/IDBObjectStore.idl
|
| @@ -25,10 +25,18 @@
|
|
|
| // https://dvcs.w3.org/hg/IndexedDB/raw-file/default/Overview.html#idl-def-IDBObjectStore
|
|
|
| +// FIXME: de-duplicate this when crbug.com/390758 is fixed.
|
| +enum IDBCursorDirection {
|
| + "next",
|
| + "nextunique",
|
| + "prev",
|
| + "prevunique"
|
| +};
|
| +
|
| [
|
| GarbageCollected,
|
| ] interface IDBObjectStore {
|
| - [TreatReturnedNullStringAs=Null] readonly attribute DOMString name;
|
| + readonly attribute DOMString? name;
|
| [CallWith=ScriptState] readonly attribute any keyPath;
|
| readonly attribute DOMStringList indexNames;
|
| readonly attribute IDBTransaction transaction;
|
| @@ -39,8 +47,8 @@
|
| [CallWith=ScriptState, ImplementedAs=deleteFunction, RaisesException] IDBRequest delete(any key);
|
| [CallWith=ScriptState, RaisesException] IDBRequest get(any key);
|
| [CallWith=ScriptState, RaisesException] IDBRequest clear();
|
| - [CallWith=ScriptState, RaisesException] IDBRequest openCursor([Default=Undefined] optional any range, optional DOMString direction = null);
|
| - [CallWith=ScriptState, RaisesException, RuntimeEnabled=IndexedDBExperimental] IDBRequest openKeyCursor([Default=Undefined] optional any range, optional DOMString direction = null);
|
| + [CallWith=ScriptState, RaisesException] IDBRequest openCursor([Default=Undefined] optional any range, optional DOMString direction = "next");
|
| + [CallWith=ScriptState, RaisesException, RuntimeEnabled=IndexedDBExperimental] IDBRequest openKeyCursor([Default=Undefined] optional any range, optional IDBCursorDirection direction = "next");
|
| // FIXME: should be union type http://crbug.com/240176
|
| [CallWith=ScriptState, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options);
|
| [CallWith=ScriptState, RaisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options);
|
|
|