Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/interfaces/push/nsIPushService.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIPushSubscription",
base: Some("nsISupports"),
sync: false,
methods: Err("special type jsval unsupported"),
},
Interface {
name: "nsIPushSubscriptionCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onPushSubscription (in nsresult status, in nsIPushSubscription subscription); */
Method {
name: "OnPushSubscription",
params: &[Param { name: "status", ty: "nserror::nsresult" }, Param { name: "subscription", ty: "*const nsIPushSubscription" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIUnsubscribeResultCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onUnsubscribe (in nsresult status, in boolean success); */
Method {
name: "OnUnsubscribe",
params: &[Param { name: "status", ty: "nserror::nsresult" }, Param { name: "success", ty: "bool" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIPushClearResultCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onClear (in nsresult status); */
Method {
name: "OnClear",
params: &[Param { name: "status", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIPushService",
base: Some("nsISupports"),
sync: false,
methods: Err("special type jsval unsupported"),
},
Interface {
name: "nsIPushQuotaManager",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void notificationForOriginShown (in string origin); */
Method {
name: "NotificationForOriginShown",
params: &[Param { name: "origin", ty: "*const libc::c_char" }],
ret: "::nserror::nsresult",
},
/* void notificationForOriginClosed (in string origin); */
Method {
name: "NotificationForOriginClosed",
params: &[Param { name: "origin", ty: "*const libc::c_char" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}