Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions
nsMessengerContentHandler Class Reference

#include <nsMessengerContentHandler.h>

Inheritance diagram for nsMessengerContentHandler:
Inheritance graph
Collaboration diagram for nsMessengerContentHandler:
Collaboration graph

List of all members.

Public Member Functions

 nsMessengerContentHandler ()
virtual ~nsMessengerContentHandler ()
void handleContent (in string aContentType, in nsIInterfaceRequestor aWindowContext, in nsIRequest aRequest)
 Tells the content handler to take over handling the content.

Private Member Functions

nsresult OpenWindow (nsIURI *aURI)

Detailed Description

Definition at line 43 of file nsMessengerContentHandler.h.

Constructor & Destructor Documentation

Definition at line 51 of file nsMessengerContentHandler.cpp.


Definition at line 58 of file nsMessengerContentHandler.cpp.


Member Function Documentation

void nsIContentHandler::handleContent ( in string  aContentType,
in nsIInterfaceRequestor  aWindowContext,
in nsIRequest  aRequest 
) [inherited]

Tells the content handler to take over handling the content.

If this function succeeds, the URI Loader will leave this request alone, ignoring progress notifications. Failure of this method will cause the request to be cancelled, unless the error code is NS_ERROR_WONT_HANDLE_CONTENT (see below).

aWindowContextWindow context, used to get things like the current nsIDOMWindow for this request. May be null.
aContentTypeThe content type of aRequest
aRequestA request whose content type is already known.
NS_ERROR_WONT_HANDLE_CONTENTIndicates that this handler does not want to handle this content. A different way for handling this content should be tried.

Definition at line 98 of file nsMessengerContentHandler.cpp.

  nsCOMPtr<nsIWindowWatcher> wwatch = do_GetService(";1");
  if (!wwatch)
    return NS_ERROR_FAILURE;

  nsCOMPtr<nsIDOMWindow> newWindow;
  return wwatch->OpenWindow(0, "chrome://messenger/content/messageWindow.xul",
                 "_blank", "all,chrome,dialog=no,status,toolbar", aURI,

Here is the call graph for this function:

The documentation for this class was generated from the following files: