| Index: modules/indexeddb/IDBIndex.idl
|
| diff --git a/modules/indexeddb/IDBIndex.idl b/modules/indexeddb/IDBIndex.idl
|
| index 5087716a127bcb84e13a192970bd733e3257ef0e..c6d68265bd3abe8affa2514982d3129d2bac2e66 100644
|
| --- a/modules/indexeddb/IDBIndex.idl
|
| +++ b/modules/indexeddb/IDBIndex.idl
|
| @@ -23,6 +23,16 @@
|
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| +// http://www.w3.org/TR/IndexedDB/#idl-def-IDBIndex
|
| +
|
| +// FIXME: de-duplicate this when crbug.com/390758 is fixed.
|
| +enum IDBCursorDirection {
|
| + "next",
|
| + "nextunique",
|
| + "prev",
|
| + "prevunique"
|
| +};
|
| +
|
| [
|
| GarbageCollected
|
| ] interface IDBIndex {
|
| @@ -32,8 +42,8 @@
|
| readonly attribute boolean unique;
|
| readonly attribute boolean multiEntry;
|
|
|
| - [CallWith=ScriptState, RaisesException] IDBRequest openCursor([Default=Undefined] optional any range, optional DOMString direction = null);
|
| - [CallWith=ScriptState, RaisesException] IDBRequest openKeyCursor([Default=Undefined] optional any range, optional DOMString direction = null);
|
| + [CallWith=ScriptState, RaisesException] IDBRequest openCursor([Default=Undefined] optional any range, optional IDBCursorDirection direction = "next");
|
| + [CallWith=ScriptState, RaisesException] IDBRequest openKeyCursor([Default=Undefined] optional any range, optional IDBCursorDirection direction = "next");
|
|
|
| [CallWith=ScriptState, RaisesException] IDBRequest get(any key);
|
| [CallWith=ScriptState, RaisesException] IDBRequest getKey(any key);
|
|
|