1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBCursorDirection
10 enum IDBCursorDirection {
17 [Exposed=(Window,Worker)]
19 readonly attribute (IDBObjectStore or IDBIndex) source;
21 [BinaryName="getDirection"]
22 readonly attribute IDBCursorDirection direction;
25 readonly attribute any key;
28 readonly attribute any primaryKey;
30 readonly attribute IDBRequest request;
33 IDBRequest update (any value);
36 void advance ([EnforceRange] unsigned long count);
39 void continue (optional any key);
42 void continuePrimaryKey(any key, any primaryKey);
48 [Exposed=(Window,Worker)]
49 interface IDBCursorWithValue : IDBCursor {
51 readonly attribute any value;