2010-06-23 12:46:08 -07: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 04:12:37 -07: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 12:46:08 -07:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2012-06-25 12:15:17 -07:00
|
|
|
interface nsIDOMDOMError;
|
2010-06-23 12:46:08 -07:00
|
|
|
interface nsIDOMEventListener;
|
2011-01-06 22:21:36 -08:00
|
|
|
interface nsIIDBTransaction;
|
2010-06-23 12:46:08 -07:00
|
|
|
|
|
|
|
/**
|
2012-06-25 12:15:17 -07:00
|
|
|
* IDBRequest interface. See
|
2010-06-23 12:46:08 -07:00
|
|
|
* http://dev.w3.org/2006/webapi/WebSimpleDB/#idl-def-IDBRequest for more
|
|
|
|
* information.
|
|
|
|
*/
|
2012-08-30 20:45:16 -07:00
|
|
|
[scriptable, builtinclass, uuid(006f39d6-342e-4935-a438-365611fd9491)]
|
2010-06-23 12:46:08 -07:00
|
|
|
interface nsIIDBRequest : nsISupports
|
|
|
|
{
|
2012-04-11 14:55:21 -07:00
|
|
|
readonly attribute jsval result;
|
|
|
|
|
|
|
|
readonly attribute nsIDOMDOMError error;
|
2010-06-23 12:46:08 -07:00
|
|
|
|
2010-12-09 18:14:09 -08:00
|
|
|
readonly attribute nsISupports source;
|
|
|
|
|
2011-01-06 22:21:36 -08:00
|
|
|
readonly attribute nsIIDBTransaction transaction;
|
|
|
|
|
2012-04-11 14:55:21 -07:00
|
|
|
// "pending" or "done"
|
|
|
|
readonly attribute DOMString readyState;
|
2011-01-06 22:21:36 -08:00
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onsuccess;
|
|
|
|
[implicit_jscontext] attribute jsval onerror;
|
2010-06-23 12:46:08 -07:00
|
|
|
};
|