Public Member Functions | Public Attributes

nsIContentDispatchChooser Interface Reference

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

import "nsIContentDispatchChooser.idl";

List of all members.

Public Member Functions

void ask (in nsIHandlerInfo aHandler, in nsIInterfaceRequestor aWindowContext, in nsIURI aURI, in unsigned long aReason)
 Asks the user what to do with the content.

Public Attributes

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

Detailed Description

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


Member Function Documentation

void nsIContentDispatchChooser::ask ( in nsIHandlerInfo  aHandler,
in nsIInterfaceRequestor  aWindowContext,
in nsIURI  aURI,
in unsigned long  aReason 
)

Asks the user what to do with the content.

Parameters:
aHander The interface describing the details of how this content should or can be handled.
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.
aURI The URI of the resource that we are asking about.
aReason The reason why we are asking (see above).

Member Data Documentation

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


The documentation for this interface was generated from the following file: