Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITaskbarPreviewController.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsITaskbarPreviewCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void done (in nsISupports aCanvas, in boolean aDrawBorder); */
Method {
name: "Done",
params: &[Param { name: "aCanvas", ty: "*const nsISupports" }, Param { name: "aDrawBorder", ty: "bool" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsITaskbarPreviewController",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute unsigned long width; */
Method {
name: "GetWidth",
params: &[Param { name: "aWidth", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long height; */
Method {
name: "GetHeight",
params: &[Param { name: "aHeight", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute float thumbnailAspectRatio; */
Method {
name: "GetThumbnailAspectRatio",
params: &[Param { name: "aThumbnailAspectRatio", ty: "*mut libc::c_float" }],
ret: "::nserror::nsresult",
},
/* void requestPreview (in nsITaskbarPreviewCallback aCallback); */
Method {
name: "RequestPreview",
params: &[Param { name: "aCallback", ty: "*const nsITaskbarPreviewCallback" }],
ret: "::nserror::nsresult",
},
/* void requestThumbnail (in nsITaskbarPreviewCallback aCallback, in unsigned long width, in unsigned long height); */
Method {
name: "RequestThumbnail",
params: &[Param { name: "aCallback", ty: "*const nsITaskbarPreviewCallback" }, Param { name: "width", ty: "u32" }, Param { name: "height", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* void onClose (); */
Method {
name: "OnClose",
params: &[],
ret: "::nserror::nsresult",
},
/* boolean onActivate (); */
Method {
name: "OnActivate",
params: &[Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* void onClick (in nsITaskbarPreviewButton button); */
Method {
name: "OnClick",
params: &[Param { name: "button", ty: "*const nsITaskbarPreviewButton" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}