Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
imgILoader Interface Reference

imgILoader interface More...

import "imgILoader.idl";

Inheritance diagram for imgILoader:
Inheritance graph
[legend]
Collaboration diagram for imgILoader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

imgIRequest loadImage (in nsIURI aURI, in nsIURI aInitialDocumentURL, in nsIURI aReferrerURI, in nsILoadGroup aLoadGroup, in imgIDecoderObserver aObserver, in nsISupports aCX, in nsLoadFlags aLoadFlags, in nsISupports cacheKey, in imgIRequest aRequest)
 Start the load and decode of an image.
imgIRequest loadImageWithChannel (in nsIChannel aChannel, in imgIDecoderObserver aObserver, in nsISupports cx, out nsIStreamListener aListener)
 Start the load and decode of an image.
boolean supportImageWithMimeType (in string mimeType)
 Checks if a decoder for the an image with the given mime type is available.

Detailed Description

imgILoader interface

Author:
Stuart Parmenter pavlo.nosp@m.v@ne.nosp@m.tscap.nosp@m.e.co.nosp@m.m
Version:
0.3
See also:
imagelib2

Definition at line 62 of file imgILoader.idl.


Member Function Documentation

imgIRequest imgILoader::loadImage ( in nsIURI  aURI,
in nsIURI  aInitialDocumentURL,
in nsIURI  aReferrerURI,
in nsILoadGroup  aLoadGroup,
in imgIDecoderObserver  aObserver,
in nsISupports  aCX,
in nsLoadFlags  aLoadFlags,
in nsISupports  cacheKey,
in imgIRequest  aRequest 
)

Start the load and decode of an image.

Parameters:
aURIthe URI to load
aInitialDocumentURIthe URI that 'initiated' the load -- used for 3rd party cookie blocking
aReferrerURIthe 'referring' URI
aLoadGroupLoadgroup to put the image load into
aObserverthe observer
aCXsome random data
aLoadFlagsLoad flags for the request
aCacheKeycache key to use for a load if the original image came from a request that had post data
aRequestA newly created, unused imgIRequest object or NULL for one to be created for you.

libpr0n does NOT keep a strong ref to the observer; this prevents reference cycles. This means that callers of loadImage should make sure to Cancel() the resulting request before the observer goes away.

imgIRequest imgILoader::loadImageWithChannel ( in nsIChannel  aChannel,
in imgIDecoderObserver  aObserver,
in nsISupports  cx,
out nsIStreamListener  aListener 
)

Start the load and decode of an image.

Parameters:
urithe URI to load
aObserverthe observer
cxsome random data

libpr0n does NOT keep a strong ref to the observer; this prevents reference cycles. This means that callers of loadImageWithChannel should make sure to Cancel() the resulting request before the observer goes away.

Checks if a decoder for the an image with the given mime type is available.

Parameters:
mimeTypeThe type to find a decoder for
Returns:
true if a decoder is available, false otherwise

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