1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include
"nsISupports.idl"
9 interface nsIDOMEventListener
;
10 interface nsIIDBTransaction
;
13 * IDBRequest interface. See
14 * http://dev.w3.org/2006/webapi/WebSimpleDB/#idl-def-IDBRequest for more
17 [scriptable
, builtinclass
, uuid(4d1e9ee3
-4bd0
-4c99
-9e6a
-19cb536ab6d4
)]
18 interface nsIIDBRequest
: nsISupports
20 readonly attribute jsval result
;
23 readonly attribute nsISupports error
;
25 readonly attribute nsISupports
source;
27 readonly attribute nsIIDBTransaction transaction
;
29 // "pending" or "done"
30 readonly attribute DOMString readyState
;
32 [implicit_jscontext
] attribute jsval onsuccess
;
33 [implicit_jscontext
] attribute jsval onerror
;