Interface nsIImageLoadingContentType

Hierarchy

Properties

currentURI: nsIURI

Gets the URI of the current request, if available. Otherwise, returns the last URI that this content tried to load, or null if there haven't been any such attempts.

syncDecodingHint: boolean

Gets the sync-decoding hint set by the decoding attribute.

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

  • Used to register an image decoder observer. Typically, this will be a proxy for a frame that wants to paint the image. Notifications from ongoing image loads will be passed to all registered observers. Notifications for all request types, current and pending, will be passed through.

    Parameters

    • aObserver: imgINotificationObserver

      the observer to register

    Returns void

  • Used to notify the image loading content node that a frame has been created.

    Parameters

    • aFrame: nsIFrame

    Returns void

  • Used to notify the image loading content node that a frame has been destroyed.

    Parameters

    • aFrame: nsIFrame

    Returns void

  • Accessor to get the image requests

    Returns

    the imgIRequest object (may be null, even when no error is thrown)

    Throws

    NS_ERROR_UNEXPECTED if the request type requested is not known

    Parameters

    • aRequestType: number

      a value saying which request is wanted

    Returns imgIRequest

  • Used to find out what type of request one is dealing with (eg which request got passed through to the imgINotificationObserver interface of an observer)

    Returns

    an enum value saying what type this request is

    Throws

    NS_ERROR_UNEXPECTED if aRequest is not known

    Parameters

    • aRequest: imgIRequest

      the request whose type we want to know

    Returns number

  • loadImageWithChannel allows data from an existing channel to be used as the image data for this content node.

    Returns

    a stream listener to pump the image data into

    See

    imgILoader::loadImageWithChannel

    Throws

    NS_ERROR_NULL_POINTER if aChannel is null

    Parameters

    • aChannel: nsIChannel

      the channel that will deliver the data

    Returns nsIStreamListener

  • Parameters

    • aProxy: imgIRequest
    • aType: number
    • aRect: nsIntRect

    Returns void

  • Called by layout to announce when the frame associated with this content has changed its visibility state.

    Parameters

    • aNewVisibility: Visibility

      The new visibility state.

    • aNonvisibleAction: MaybeOnNonvisible

      A requested action if the frame has become nonvisible. If Nothing(), no action is requested. If DISCARD_IMAGES is specified, the frame is requested to ask any images it's associated with to discard their surfaces if possible.

    Returns void

  • Used to unregister an image decoder observer.

    Parameters

    • aObserver: imgINotificationObserver

      the observer to unregister

    Returns void

  • setLoadingEnabled is used to enable and disable loading in situations where loading images is unwanted. Note that enabling loading will not automatically trigger an image load.

    Parameters

    • aEnabled: boolean

    Returns void

Generated using TypeDoc