Back to index

lightning-sunbird  0.9+nobinonly
Functions
WebBrowserChrome.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsIComponentManager.h"
#include "nsString.h"
#include "nsXPIDLString.h"
#include "nsIURI.h"
#include "nsIWebProgress.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDOMWindow.h"
#include "nsIInterfaceRequestor.h"
#include "nsIRequest.h"
#include "nsCWebBrowser.h"
#include "nsIProfileChangeStatus.h"
#include "resource.h"
#include "winEmbed.h"
#include "WebBrowserChrome.h"

Go to the source code of this file.

Functions

 NS_INTERFACE_MAP_ENTRY (nsIWebProgressListener) NS_INTERFACE_MAP_ENDNS_IMETHODIMP WebBrowserChrome

Function Documentation

Definition at line 120 of file WebBrowserChrome.cpp.

{
    NS_ENSURE_ARG_POINTER(aInstancePtr);

    *aInstancePtr = 0;
    if (aIID.Equals(NS_GET_IID(nsIDOMWindow)))
    {
        if (mWebBrowser)
        {
            return mWebBrowser->GetContentDOMWindow((nsIDOMWindow **) aInstancePtr);
        }
        return NS_ERROR_NOT_INITIALIZED;
    }
    return QueryInterface(aIID, aInstancePtr);
}