dom/base/nsIDOMDOMRequest.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set ts=2 et sw=2 tw=80: */
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #include "nsIDOMEventTarget.idl"
michael@0 8
michael@0 9 interface nsIDOMWindow;
michael@0 10 interface nsIDOMDOMCursor;
michael@0 11 interface nsICursorContinueCallback;
michael@0 12
michael@0 13 [scriptable, builtinclass, uuid(d4c7372a-661c-4798-9a13-af48128609e9)]
michael@0 14 interface nsIDOMDOMRequest : nsIDOMEventTarget
michael@0 15 {
michael@0 16 readonly attribute DOMString readyState; // "pending" or "done"
michael@0 17
michael@0 18 readonly attribute jsval result;
michael@0 19
michael@0 20 // DOMError
michael@0 21 readonly attribute nsISupports error;
michael@0 22
michael@0 23 [implicit_jscontext] attribute jsval onsuccess;
michael@0 24 [implicit_jscontext] attribute jsval onerror;
michael@0 25 };
michael@0 26
michael@0 27 [scriptable, builtinclass, uuid(df58d5d6-4b02-4e4c-9b29-adbff06c6206)]
michael@0 28 interface nsIDOMRequestService : nsISupports
michael@0 29 {
michael@0 30 nsIDOMDOMRequest createRequest(in nsIDOMWindow window);
michael@0 31 /*
michael@0 32 * @param aCallback
michael@0 33 * Called when `continue()' is called in the cursor, should be used to
michael@0 34 * notify the data provider that content wants the next result.
michael@0 35 */
michael@0 36 nsIDOMDOMCursor createCursor(in nsIDOMWindow window,
michael@0 37 in nsICursorContinueCallback aCallback);
michael@0 38
michael@0 39 void fireSuccess(in nsIDOMDOMRequest request, in jsval result);
michael@0 40 void fireError(in nsIDOMDOMRequest request, in DOMString error);
michael@0 41 void fireDetailedError(in nsIDOMDOMRequest request, in nsISupports error);
michael@0 42 void fireSuccessAsync(in nsIDOMDOMRequest request, in jsval result);
michael@0 43 void fireErrorAsync(in nsIDOMDOMRequest request, in DOMString error);
michael@0 44 void fireDone(in nsIDOMDOMCursor cursor);
michael@0 45 };

mercurial