michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origin of this IDL file is michael@0: * https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBCursorDirection michael@0: */ michael@0: michael@0: enum IDBCursorDirection { michael@0: "next", michael@0: "nextunique", michael@0: "prev", michael@0: "prevunique" michael@0: }; michael@0: michael@0: interface IDBCursor { michael@0: readonly attribute (IDBObjectStore or IDBIndex) source; michael@0: michael@0: readonly attribute IDBCursorDirection direction; michael@0: michael@0: [Throws] michael@0: readonly attribute any key; michael@0: michael@0: [Throws] michael@0: readonly attribute any primaryKey; michael@0: michael@0: [Throws] michael@0: IDBRequest update (any value); michael@0: michael@0: [Throws] michael@0: void advance ([EnforceRange] unsigned long count); michael@0: michael@0: [Throws] michael@0: void continue (optional any key); michael@0: michael@0: [Throws] michael@0: IDBRequest delete (); michael@0: }; michael@0: michael@0: interface IDBCursorWithValue : IDBCursor { michael@0: [Throws] michael@0: readonly attribute any value; michael@0: };