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]

[src]

Cast this nsIContentDispatchChooser to one of its base interfaces.

impl nsIContentDispatchChooser
[src]

REASON_CANNOT_HANDLE: i64 = 0
/**
  * This request is passed to the helper app dialog because Gecko can not
  * handle content of this type.
  */

[src]

/**
  * 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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIContentDispatchChooser
[src]

IID: nsIID = nsID(1164747698, 702, 20375, [137, 162, 8, 192, 141, 58, 216, 143])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIContentDispatchChooser
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.