Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsScriptLoaderObserverProxy Class Reference
Inheritance diagram for nsScriptLoaderObserverProxy:
Inheritance graph
[legend]
Collaboration diagram for nsScriptLoaderObserverProxy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsScriptLoaderObserverProxy (nsIScriptLoaderObserver *aInner)
virtual ~nsScriptLoaderObserverProxy ()
void scriptAvailable (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline, in boolean aWasPending, in nsIURI aURI, in PRInt32 aLineNo, in AString aScript)
 The script is available for evaluation.
void scriptEvaluated (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline, in boolean aWasPending)
 The script has been evaluated.

Public Attributes

NS_DECL_ISUPPORTS
NS_DECL_NSISCRIPTLOADEROBSERVER
nsWeakPtr 
mInner

Detailed Description

Definition at line 87 of file nsContentSink.cpp.


Constructor & Destructor Documentation

Definition at line 90 of file nsContentSink.cpp.

    : mInner(do_GetWeakReference(aInner))
  {
  }

Definition at line 94 of file nsContentSink.cpp.

  {
  }

Member Function Documentation

void nsIScriptLoaderObserver::scriptAvailable ( in nsresult  aResult,
in nsIScriptElement  aElement,
in boolean  aIsInline,
in boolean  aWasPending,
in nsIURI  aURI,
in PRInt32  aLineNo,
in AString  aScript 
) [inherited]

The script is available for evaluation.

For inline scripts, this method will be called synchronously. For externally loaded scripts, this method will be called when the load completes.

Parameters:
aResultA result code representing the result of loading a script. If this is a failure code, script evaluation will not occur.
aElementThe element being processed.
aIsInlineIs this an inline script or externally loaded?
aWasPendingDid script processing have to be delayed, either for loading of an external script or because processing of an earlier scheduled script was delayed?
aURIWhat is the URI of the script (the document URI if it is inline).
aLineNoAt what line does the script appear (generally 1 if it is a loaded script).
aScriptString representation of the string to be evaluated.
void nsIScriptLoaderObserver::scriptEvaluated ( in nsresult  aResult,
in nsIScriptElement  aElement,
in boolean  aIsInline,
in boolean  aWasPending 
) [inherited]

The script has been evaluated.

Parameters:
aResultA result code representing the success or failure of the script evaluation.
aElementThe element being processed.
aIsInlineIs this an inline script or externally loaded?
aWasPendingDid script processing have to be delayed, either for loading of an external script or because processing of an earlier scheduled script was delayed?

Member Data Documentation

Definition at line 101 of file nsContentSink.cpp.


The documentation for this class was generated from the following file: