Interface nsIScriptLoaderObserverType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • 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

    • aResult: number

      A result code representing the result of loading a script. If this is a failure code, script evaluation will not occur.

    • aElement: nsIScriptElement

      The element being processed.

    • aIsInlineClassicScript: boolean
    • aURI: nsIURI

      What is the URI of the script (the document URI if it is inline).

    • aLineNo: uint32_t

      At what line does the script appear (generally 1 if it is a loaded script).

    Returns void

  • The script has been evaluated.

    Parameters

    • aResult: number

      A result code representing the success or failure of the script evaluation.

    • aElement: nsIScriptElement

      The element being processed.

    • aIsInline: boolean

      Is this an inline script or externally loaded?

    Returns void

Generated using TypeDoc