1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include
"nsISupports.idl"
8 interface nsIScriptElement
;
11 [scriptable
, uuid(7b787204
-76fb
-4764-96f1
-fb7a666db4f4
)]
12 interface nsIScriptLoaderObserver
: nsISupports
{
15 * The script is available for evaluation. For inline scripts, this
16 * method will be called synchronously. For externally loaded scripts,
17 * this method will be called when the load completes.
19 * @param aResult A result code representing the result of loading
20 * a script. If this is a failure code, script evaluation
22 * @param aElement The element being processed.
23 * @param aIsInline Is this an inline classic script (as opposed to an
24 * externally loaded classic script or module script)?
25 * @param aURI What is the URI of the script (the document URI if
27 * @param aLineNo At what line does the script appear (generally 1
28 * if it is a loaded script).
30 void scriptAvailable
(in nsresult aResult
,
31 in nsIScriptElement aElement
,
32 in boolean aIsInlineClassicScript
,
37 * The script has been evaluated.
39 * @param aResult A result code representing the success or failure of
40 * the script evaluation.
41 * @param aElement The element being processed.
42 * @param aIsInline Is this an inline script or externally loaded?
45 void scriptEvaluated
(in nsresult aResult
,
46 in nsIScriptElement aElement
,
47 in boolean aIsInline
);