Struct xpcom::interfaces::nsIScriptLoaderObserver [] [src]

#[repr(C)]
pub struct nsIScriptLoaderObserver { /* fields omitted */ }

interface nsIScriptLoaderObserver : nsISupports

Methods

impl nsIScriptLoaderObserver
[src]

[src]

Cast this nsIScriptLoaderObserver to one of its base interfaces.

impl nsIScriptLoaderObserver
[src]

[src]

/**
   * 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.
   *
   * @param aResult A result code representing the result of loading
   *        a script. If this is a failure code, script evaluation
   *        will not occur.
   * @param aElement The element being processed.
   * @param aIsInline Is this an inline classic script (as opposed to an
   *        externally loaded classic script or module script)?
   * @param aURI What is the URI of the script (the document URI if
   *        it is inline).
   * @param aLineNo At what line does the script appear (generally 1
   *        if it is a loaded script).
   */

void scriptAvailable (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInlineClassicScript, in nsIURI aURI, in int32_t aLineNo);

[src]

/**
   * The script has been evaluated.
   *
   * @param aResult A result code representing the success or failure of
   *        the script evaluation.
   * @param aElement The element being processed.
   * @param aIsInline Is this an inline script or externally loaded?
   */

void scriptEvaluated (in nsresult aResult, in nsIScriptElement aElement, in boolean aIsInline);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIScriptLoaderObserver
[src]

IID: nsIID = nsID(2071491076, 30459, 18276, [150, 241, 251, 122, 102, 109, 180, 244])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIScriptLoaderObserver
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIScriptLoaderObserver
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.