Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIMacDockSupport.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIMacDockSupport",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* attribute nsIStandaloneNativeMenu dockMenu; */
Method {
name: "GetDockMenu",
params: &[Param { name: "aDockMenu", ty: "*mut*const nsIStandaloneNativeMenu" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetDockMenu",
params: &[Param { name: "aDockMenu", ty: "*const nsIStandaloneNativeMenu" }],
ret: "::nserror::nsresult",
},
/* void activateApplication (in boolean aIgnoreOtherApplications); */
Method {
name: "ActivateApplication",
params: &[Param { name: "aIgnoreOtherApplications", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* attribute AString badgeText; */
Method {
name: "GetBadgeText",
params: &[Param { name: "aBadgeText", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetBadgeText",
params: &[Param { name: "aBadgeText", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void setBadgeImage (in imgIContainer aBadgeImage, [optional] in nsISVGPaintContext aPaintContext); */
Method {
name: "SetBadgeImage",
params: &[Param { name: "aBadgeImage", ty: "*const imgIContainer" }, Param { name: "aPaintContext", ty: "*const nsISVGPaintContext" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean isAppInDock; */
Method {
name: "GetIsAppInDock",
params: &[Param { name: "aIsAppInDock", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* boolean ensureAppIsPinnedToDock ([optional] in AString aAppPath, [optional] in AString aAppToReplacePath); */
Method {
name: "EnsureAppIsPinnedToDock",
params: &[Param { name: "aAppPath", ty: "*const ::nsstring::nsAString" }, Param { name: "aAppToReplacePath", ty: "*const ::nsstring::nsAString" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}