Readonly
heightThe height of the preview image. This value is allowed to change at any time. See requestPreview for more information.
Readonly
thumbnailThe aspect ratio of the thumbnail - this does not need to match the ratio of the preview. This value is allowed to change at any time. See requestThumbnail for more information.
Readonly
widthThe width of the preview image. This value is allowed to change at any time. See requestPreview for more information.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Invoked by nsITaskbarPreview when it needs to render the preview.
Async callback the controller should invoke once the thumbnail is rendered. aCallback receives as its only parameter a canvas containing the preview image.
Note: it is guaranteed that width/height == thumbnailAspectRatio (modulo rounding errors)
Also note that the context is not attached to a canvas element.
Async callback the controller should invoke once the thumbnail is rendered. aCallback receives as its only parameter a canvas containing the thumbnail image. Canvas dimensions should match the requested width or height otherwise setting the thumbnail will fail.
The width of the requested thumbnail
The height of the requested thumbnail
Generated using TypeDoc
nsITaskbarPreviewController
nsITaskbarPreviewController provides the behavior for the taskbar previews. Its methods and properties are used by nsITaskbarPreview. Clients are intended to provide their own implementation of this interface. Depending on the interface the controller is attached to, only certain methods/attributes are required to be implemented.