Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIClipboard.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIAsyncSetClipboardData",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void setData (in nsITransferable aTransferable, [optional] in nsIClipboardOwner aOwner); */
Method {
name: "SetData",
params: &[Param { name: "aTransferable", ty: "*const nsITransferable" }, Param { name: "aOwner", ty: "*const nsIClipboardOwner" }],
ret: "::nserror::nsresult",
},
/* void abort (in nsresult aReason); */
Method {
name: "Abort",
params: &[Param { name: "aReason", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIAsyncClipboardRequestCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onComplete (in nsresult aResult); */
Method {
name: "OnComplete",
params: &[Param { name: "aResult", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIClipboardDataSnapshot",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute boolean valid; */
Method {
name: "GetValid",
params: &[Param { name: "aValid", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<ACString> flavorList; */
Method {
name: "GetFlavorList",
params: &[Param { name: "aFlavorList", ty: "*mut thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
/* void getData (in nsITransferable aTransferable, in nsIAsyncClipboardRequestCallback aCallback); */
Method {
name: "GetData",
params: &[Param { name: "aTransferable", ty: "*const nsITransferable" }, Param { name: "aCallback", ty: "*const nsIAsyncClipboardRequestCallback" }],
ret: "::nserror::nsresult",
},
/* void getDataSync (in nsITransferable aTransferable); */
Method {
name: "GetDataSync",
params: &[Param { name: "aTransferable", ty: "*const nsITransferable" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIClipboardGetDataSnapshotCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onSuccess (in nsIClipboardDataSnapshot aClipboardDataSnapshot); */
Method {
name: "OnSuccess",
params: &[Param { name: "aClipboardDataSnapshot", ty: "*const nsIClipboardDataSnapshot" }],
ret: "::nserror::nsresult",
},
/* void onError (in nsresult aResult); */
Method {
name: "OnError",
params: &[Param { name: "aResult", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIClipboard",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void setData (in nsITransferable aTransferable, in nsIClipboardOwner anOwner, in nsIClipboard_ClipboardType aWhichClipboard, [optional] in WindowContext aSettingWindowContext); */
Method {
name: "SetData",
params: &[Param { name: "aTransferable", ty: "*const nsITransferable" }, Param { name: "anOwner", ty: "*const nsIClipboardOwner" }, Param { name: "aWhichClipboard", ty: " u32" }, Param { name: "aSettingWindowContext", ty: "*const libc::c_void" }],
ret: "::nserror::nsresult",
},
/* nsIAsyncSetClipboardData asyncSetData (in nsIClipboard_ClipboardType aWhichClipboard, [optional] in WindowContext aSettingWindowContext, [optional] in nsIAsyncClipboardRequestCallback aCallback); */
Method {
name: "AsyncSetData",
params: &[Param { name: "aWhichClipboard", ty: " u32" }, Param { name: "aSettingWindowContext", ty: "*const libc::c_void" }, Param { name: "aCallback", ty: "*const nsIAsyncClipboardRequestCallback" }, Param { name: "_retval", ty: "*mut *const nsIAsyncSetClipboardData" }],
ret: "::nserror::nsresult",
},
/* void getData (in nsITransferable aTransferable, in nsIClipboard_ClipboardType aWhichClipboard, [optional] in WindowContext aRequestingWindowContext); */
Method {
name: "GetData",
params: &[Param { name: "aTransferable", ty: "*const nsITransferable" }, Param { name: "aWhichClipboard", ty: " u32" }, Param { name: "aRequestingWindowContext", ty: "*const libc::c_void" }],
ret: "::nserror::nsresult",
},
/* void getDataSnapshot (in Array<ACString> aFlavorList, in nsIClipboard_ClipboardType aWhichClipboard, in WindowContext aRequestingWindowContext, in nsIPrincipal aRequestingPrincipal, in nsIClipboardGetDataSnapshotCallback aCallback); */
Method {
name: "GetDataSnapshot",
params: &[Param { name: "aFlavorList", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }, Param { name: "aWhichClipboard", ty: " u32" }, Param { name: "aRequestingWindowContext", ty: "*const libc::c_void" }, Param { name: "aRequestingPrincipal", ty: "*const nsIPrincipal" }, Param { name: "aCallback", ty: "*const nsIClipboardGetDataSnapshotCallback" }],
ret: "::nserror::nsresult",
},
/* nsIClipboardDataSnapshot getDataSnapshotSync (in Array<ACString> aFlavorList, in nsIClipboard_ClipboardType aWhichClipboard, [optional] in WindowContext aRequestingWindowContext); */
Method {
name: "GetDataSnapshotSync",
params: &[Param { name: "aFlavorList", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }, Param { name: "aWhichClipboard", ty: " u32" }, Param { name: "aRequestingWindowContext", ty: "*const libc::c_void" }, Param { name: "_retval", ty: "*mut *const nsIClipboardDataSnapshot" }],
ret: "::nserror::nsresult",
},
/* void emptyClipboard (in nsIClipboard_ClipboardType aWhichClipboard); */
Method {
name: "EmptyClipboard",
params: &[Param { name: "aWhichClipboard", ty: " u32" }],
ret: "::nserror::nsresult",
},
/* boolean hasDataMatchingFlavors (in Array<ACString> aFlavorList, in nsIClipboard_ClipboardType aWhichClipboard); */
Method {
name: "HasDataMatchingFlavors",
params: &[Param { name: "aFlavorList", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }, Param { name: "aWhichClipboard", ty: " u32" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* [infallible] boolean isClipboardTypeSupported (in nsIClipboard_ClipboardType aWhichClipboard); */
Method {
name: "IsClipboardTypeSupported",
params: &[Param { name: "aWhichClipboard", ty: " u32" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}