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-IDBRequest michael@0: * https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBRequestReadyState michael@0: */ michael@0: michael@0: enum IDBRequestReadyState { michael@0: "pending", michael@0: "done" michael@0: }; michael@0: michael@0: interface IDBRequest : EventTarget { michael@0: [Throws] michael@0: readonly attribute any result; michael@0: michael@0: [Throws] michael@0: readonly attribute DOMError? error; michael@0: michael@0: readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source; michael@0: readonly attribute IDBTransaction? transaction; michael@0: readonly attribute IDBRequestReadyState readyState; michael@0: michael@0: attribute EventHandler onsuccess; michael@0: michael@0: attribute EventHandler onerror; michael@0: };