WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIContentDispatchChooser

IID:456ca3b2-02be-4f97-89a2-08c08d3ad88f
Inherits From:nsISupports

This is used to ask a user what they would like to do with a given piece of content.

This interface is implemented by the following components:


Constants

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

Methods

void ask ( nsIHandlerInfo handler , nsIInterfaceRequestor windowContext , nsIURI URI , PRUint32 reason )

void ask ( nsIHandlerInfo handler , nsIInterfaceRequestor windowContext , nsIURI URI , PRUint32 reason )

Asks the user what to do with the content.

Arguments:
handler
windowContext: 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.
URI: The URI of the resource that we are asking about.
reason: The reason why we are asking (see above).

Reference documentation is generated from Mozilla's source.