Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / webidl / IDBCursor.webidl
blobfe69972311817864367d9e659a61b0dbb45e91c4
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/.
5  *
6  * The origin of this IDL file is
7  * https://w3c.github.io/IndexedDB/#cursor-interface
8  */
10 enum IDBCursorDirection {
11     "next",
12     "nextunique",
13     "prev",
14     "prevunique"
17 [Exposed=(Window,Worker)]
18 interface IDBCursor {
19     readonly    attribute (IDBObjectStore or IDBIndex) source;
21     [BinaryName="getDirection"]
22     readonly    attribute IDBCursorDirection           direction;
24     [Pure, Throws] readonly attribute any key;
25     [Pure, Throws] readonly attribute any primaryKey;
26     [SameObject] readonly attribute IDBRequest request;
28     [Throws]
29     undefined  advance ([EnforceRange] unsigned long count);
31     [Throws]
32     undefined  continue (optional any key);
34     [Throws]
35     undefined  continuePrimaryKey(any key, any primaryKey);
37     [NewObject, Throws] IDBRequest update(any value);
38     [NewObject, Throws] IDBRequest delete();
41 [Exposed=(Window,Worker)]
42 interface IDBCursorWithValue : IDBCursor {
43     [Pure, Throws] readonly attribute any value;