gecko/dom/base/nsIDOMDOMRequest.idl
David Major 6eff25ea3c Bug 1051858: Update UUIDs that should have been revved in bug 741295. r=smaug
--HG--
extra : rebase_source : ec9740e1a9794ae8d974f36a503e97fb2e4fc95e
2014-08-14 10:38:29 +12:00

46 lines
1.7 KiB
Plaintext

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* 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/. */
#include "nsIDOMEventTarget.idl"
interface nsIDOMWindow;
interface nsIDOMDOMCursor;
interface nsICursorContinueCallback;
[builtinclass, uuid(e39da69e-2232-4e49-9856-b8a4a6210336)]
interface nsIDOMDOMRequest : nsIDOMEventTarget
{
readonly attribute DOMString readyState; // "pending" or "done"
readonly attribute jsval result;
// DOMError
readonly attribute nsISupports error;
[implicit_jscontext] attribute jsval onsuccess;
[implicit_jscontext] attribute jsval onerror;
};
[scriptable, builtinclass, uuid(df58d5d6-4b02-4e4c-9b29-adbff06c6206)]
interface nsIDOMRequestService : nsISupports
{
nsIDOMDOMRequest createRequest(in nsIDOMWindow window);
/*
* @param aCallback
* Called when `continue()' is called in the cursor, should be used to
* notify the data provider that content wants the next result.
*/
nsIDOMDOMCursor createCursor(in nsIDOMWindow window,
in nsICursorContinueCallback aCallback);
void fireSuccess(in nsIDOMDOMRequest request, in jsval result);
void fireError(in nsIDOMDOMRequest request, in DOMString error);
void fireDetailedError(in nsIDOMDOMRequest request, in nsISupports error);
void fireSuccessAsync(in nsIDOMDOMRequest request, in jsval result);
void fireErrorAsync(in nsIDOMDOMRequest request, in DOMString error);
void fireDone(in nsIDOMDOMCursor cursor);
};