2010-06-23 23:46:08 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-06-23 23:46:08 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIDOMEventListener;
|
|
|
|
|
|
|
|
/**
|
2012-06-25 23:15:17 +04:00
|
|
|
* IDBRequest interface. See
|
2010-06-23 23:46:08 +04:00
|
|
|
* http://dev.w3.org/2006/webapi/WebSimpleDB/#idl-def-IDBRequest for more
|
|
|
|
* information.
|
|
|
|
*/
|
2013-05-18 21:52:06 +04:00
|
|
|
[scriptable, builtinclass, uuid(4d1e9ee3-4bd0-4c99-9e6a-19cb536ab6d4)]
|
2010-06-23 23:46:08 +04:00
|
|
|
interface nsIIDBRequest : nsISupports
|
|
|
|
{
|
2012-04-12 01:55:21 +04:00
|
|
|
readonly attribute jsval result;
|
|
|
|
|
2013-05-18 21:52:06 +04:00
|
|
|
// This is a DOMError
|
|
|
|
readonly attribute nsISupports error;
|
2010-06-23 23:46:08 +04:00
|
|
|
|
2010-12-10 05:14:09 +03:00
|
|
|
readonly attribute nsISupports source;
|
|
|
|
|
2013-07-29 21:12:21 +04:00
|
|
|
// This is a nsIIDBTransaction
|
|
|
|
readonly attribute nsISupports transaction;
|
2011-01-07 09:21:36 +03:00
|
|
|
|
2012-04-12 01:55:21 +04:00
|
|
|
// "pending" or "done"
|
|
|
|
readonly attribute DOMString readyState;
|
2011-01-07 09:21:36 +03:00
|
|
|
|
2012-08-31 07:45:16 +04:00
|
|
|
[implicit_jscontext] attribute jsval onsuccess;
|
|
|
|
[implicit_jscontext] attribute jsval onerror;
|
2010-06-23 23:46:08 +04:00
|
|
|
};
|