Struct xpcom::interfaces::nsIContentDispatchChooser
[−]
[src]
#[repr(C)]pub struct nsIContentDispatchChooser { /* fields omitted */ }
interface nsIContentDispatchChooser : nsISupports
/**
* This is used to ask a user what they would like to do with a given piece of
* content.
*/
Methods
impl nsIContentDispatchChooser
[src]
pub fn coerce<T: nsIContentDispatchChooserCoerce>(&self) -> &T
[src]
Cast this nsIContentDispatchChooser
to one of its base interfaces.
impl nsIContentDispatchChooser
[src]
pub const REASON_CANNOT_HANDLE: i64
REASON_CANNOT_HANDLE: i64 = 0
/**
* This request is passed to the helper app dialog because Gecko can not
* handle content of this type.
*/
pub unsafe fn Ask(
&self,
aHandler: *const nsIHandlerInfo,
aWindowContext: *const nsIInterfaceRequestor,
aURI: *const nsIURI,
aReason: uint32_t
) -> nsresult
[src]
&self,
aHandler: *const nsIHandlerInfo,
aWindowContext: *const nsIInterfaceRequestor,
aURI: *const nsIURI,
aReason: uint32_t
) -> nsresult
/**
* Asks the user what to do with the content.
*
* @param aHander
* The interface describing the details of how this content should or
* can be handled.
* @param aWindowContext
* The parent window context to show this chooser. This can be null,
* and some implementations may not care about it. Generally, you'll
* want to pass an nsIDOMWindow in so the chooser can be properly
* parented when opened.
* @param aURI
* The URI of the resource that we are asking about.
* @param aReason
* The reason why we are asking (see above).
*/
void ask (in nsIHandlerInfo aHandler, in nsIInterfaceRequestor aWindowContext, in nsIURI aURI, in unsigned long aReason);
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 nsIContentDispatchChooser
[src]
const IID: nsIID
IID: nsIID = nsID(1164747698, 702, 20375, [137, 162, 8, 192, 141, 58, 216, 143])
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 nsIContentDispatchChooser
[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 nsIContentDispatchChooser
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.