Struct xpcom::interfaces::nsIContentPermissionRequester
[−]
[src]
#[repr(C)]pub struct nsIContentPermissionRequester { /* fields omitted */ }
interface nsIContentPermissionRequester : nsISupports
/**
* Interface provides the way to get the visibility and
* the notification.
*/
Methods
impl nsIContentPermissionRequester
[src]
pub fn coerce<T: nsIContentPermissionRequesterCoerce>(&self) -> &T
[src]
Cast this nsIContentPermissionRequester
to one of its base interfaces.
impl nsIContentPermissionRequester
[src]
pub unsafe fn GetVisibility(
&self,
callback: *const nsIContentPermissionRequestCallback
) -> nsresult
[src]
&self,
callback: *const nsIContentPermissionRequestCallback
) -> nsresult
/**
* The function to get the visibility.
*/
void getVisibility (in nsIContentPermissionRequestCallback callback);
pub unsafe fn GetOnVisibilityChange(
&self,
aOnVisibilityChange: *mut *const nsIContentPermissionRequestCallback
) -> nsresult
[src]
&self,
aOnVisibilityChange: *mut *const nsIContentPermissionRequestCallback
) -> nsresult
/**
* The callback to get the notification of visibility change.
*/
attribute nsIContentPermissionRequestCallback onVisibilityChange;
pub unsafe fn SetOnVisibilityChange(
&self,
aOnVisibilityChange: *const nsIContentPermissionRequestCallback
) -> nsresult
[src]
&self,
aOnVisibilityChange: *const nsIContentPermissionRequestCallback
) -> nsresult
/**
* The callback to get the notification of visibility change.
*/
attribute nsIContentPermissionRequestCallback onVisibilityChange;
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIContentPermissionRequester
[src]
const IID: nsIID
IID: nsIID = nsID(4166480164, 27231, 18543, [174, 4, 197, 188, 174, 145, 30, 181])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIContentPermissionRequester
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIContentPermissionRequester
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.