1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3
* The contents of this file are subject to the Mozilla Public
4
* License Version 1.1 (the "License"); you may not use this file
5
* except in compliance with the License. You may obtain a copy of
6
* the License at http://www.mozilla.org/MPL/
8
* Software distributed under the License is distributed on an "AS
9
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
* implied. See the License for the specific language governing
11
* rights and limitations under the License.
13
* The Original Code is Mozilla.
15
* The Initial Developer of the Original Code is Netscape
16
* Communications. Portions created by Netscape Communications are
17
* Copyright (C) 2001 by Netscape Communications. All
21
* Vidur Apparao <vidur@netscape.com> (original author)
24
#include "nsISupports.idl"
26
interface nsIDOMHTMLScriptElement;
29
[scriptable, uuid(501209d3-7edf-437d-9948-3c6d1c08ef7f)]
30
interface nsIScriptLoaderObserver : nsISupports {
33
* The script is available for evaluation. For inline scripts, this
34
* method will be called synchronously. For externally loaded scripts,
35
* this method will be called when the load completes.
37
* @param aResult A result code representing the result of loading
38
* a script. If this is a failure code, script evaluation
40
* @param aElement The element being processed.
41
* @param aIsInline Is this an inline script or externally loaded?
42
* @param aWasPending Did script processing have to be delayed,
43
* either for loading of an external script or
44
* because processing of an earlier scheduled
46
* @param aURI What is the URI of the script (the document URI if
48
* @param aLineNo At what line does the script appear (generally 1
49
* if it is a loaded script).
50
* @param aScript String representation of the string to be evaluated.
52
void scriptAvailable(in nsresult aResult,
53
in nsIDOMHTMLScriptElement aElement,
55
in boolean aWasPending,
61
* The script has been evaluated.
63
* @param aResult A result code representing the success or failure of
64
* the script evaluation.
65
* @param aElement The element being processed.
66
* @param aIsInline Is this an inline script or externally loaded?
67
* @param aWasPending Did script processing have to be delayed,
68
* either for loading of an external script or
69
* because processing of an earlier scheduled
72
void scriptEvaluated(in nsresult aResult,
73
in nsIDOMHTMLScriptElement aElement,
75
in boolean aWasPending);