Back to index

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

#include <UDownload.h>

Inheritance diagram for CHelperAppLauncherDialog:
Inheritance graph
[legend]
Collaboration diagram for CHelperAppLauncherDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CHelperAppLauncherDialog ()
virtual ~CHelperAppLauncherDialog ()
 CHelperAppLauncherDialog ()
virtual ~CHelperAppLauncherDialog ()
void show (in nsIHelperAppLauncher aLauncher, in nsISupports aContext, in unsigned long aReason)
nsILocalFile promptForSaveToFile (in nsIHelperAppLauncher aLauncher, in nsISupports aWindowContext, in wstring aDefaultFile, in wstring aSuggestedFileExtension)

Public Attributes

NS_DECL_ISUPPORTS
NS_DECL_NSIHELPERAPPLAUNCHERDIALOG
int 
m_HandleContentOp
CString m_FileName
const unsigned long REASON_CANTHANDLE = 0
 This request is passed to the helper app dialog because Gecko can not handle content of this type.
const unsigned long REASON_SERVERREQUEST = 1
 The server requested external handling.
const unsigned long REASON_TYPESNIFFED = 2
 Gecko detected that the type sent by the server (e.g.

Private Member Functions

CWnd * GetParentFromContext (nsISupports *aWindowContext)

Private Attributes

nsCOMPtr< nsIWindowWatchermWWatch

Detailed Description

Definition at line 136 of file UDownload.h.


Constructor & Destructor Documentation

Definition at line 247 of file UDownload.cpp.

{
}

Definition at line 251 of file UDownload.cpp.

{
}

Member Function Documentation

CWnd * CHelperAppLauncherDialog::GetParentFromContext ( nsISupports *  aWindowContext) [private]

Definition at line 175 of file HelperAppDlg.cpp.

{
    nsCOMPtr<nsIDOMWindow> domWnd(do_GetInterface(aWindowContext));
    if(!domWnd) 
        return NULL;

    CWnd *retWnd = NULL;

    nsCOMPtr<nsIWebBrowserChrome> chrome;
    if(mWWatch)
    {
        nsCOMPtr<nsIDOMWindow> fosterParent;
        if (!domWnd) 
        { // it will be a dependent window. try to find a foster parent.
            mWWatch->GetActiveWindow(getter_AddRefs(fosterParent));
            domWnd = fosterParent;
        }
        mWWatch->GetChromeForWindow(domWnd, getter_AddRefs(chrome));
    }

    if (chrome) 
    {
        nsCOMPtr<nsIEmbeddingSiteWindow> site(do_QueryInterface(chrome));
        if (site)
        {
            HWND w;
            site->GetSiteWindow(reinterpret_cast<void **>(&w));
            retWnd = CWnd::FromHandle(w);
        }
    }

    return retWnd;
}

Here is the call graph for this function:

nsILocalFile nsIHelperAppLauncherDialog::promptForSaveToFile ( in nsIHelperAppLauncher  aLauncher,
in nsISupports  aWindowContext,
in wstring  aDefaultFile,
in wstring  aSuggestedFileExtension 
) [inherited]
void nsIHelperAppLauncherDialog::show ( in nsIHelperAppLauncher  aLauncher,
in nsISupports  aContext,
in unsigned long  aReason 
) [inherited]

Member Data Documentation

Definition at line 74 of file HelperAppDlg.h.

Definition at line 73 of file HelperAppDlg.h.

Definition at line 77 of file HelperAppDlg.h.

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

Definition at line 62 of file nsIHelperAppLauncherDialog.idl.

The server requested external handling.

Definition at line 67 of file nsIHelperAppLauncherDialog.idl.

Gecko detected that the type sent by the server (e.g.

text/plain) does not match the actual type.

Definition at line 73 of file nsIHelperAppLauncherDialog.idl.


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