Back to index

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

#include <nsIWebBrow.h>

Collaboration diagram for CNsIWebBrowser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CNsIWebBrowser (nsIWebBrowser *mWebBrowser, CBrowserImpl *mpBrowserImpl)
virtual ~CNsIWebBrowser ()
void WBAddListener (PRInt16)
void WBRemoveListener (PRInt16)
void WBGetContainerWindow (PRInt16)
void WBSetContainerWindow (PRInt16)
void WBGetURIContentListener (PRInt16)
void WBSetURIContentListener (PRInt16)
void WBGetDOMWindow (PRInt16)
void OnStartTests (UINT nMenuID)
void RunAllTests ()
void WBSSetupProperty (PRInt16)

Public Attributes

nsCOMPtr< nsIWebBrowserqaWebBrowser
CBrowserImplqaBrowserImpl

Private Attributes

nsCOMPtr< nsIWebBrowserChromeqaWebBrowserChrome
nsCOMPtr< nsIURIContentListenerqaURIContentListener

Detailed Description

Definition at line 60 of file nsIWebBrow.h.


Constructor & Destructor Documentation

CNsIWebBrowser::CNsIWebBrowser ( nsIWebBrowser mWebBrowser,
CBrowserImpl mpBrowserImpl 
)

Definition at line 60 of file nsIWebBrow.cpp.

{
       qaWebBrowser = mWebBrowser;
       qaBrowserImpl = mpBrowserImpl;
}

Definition at line 67 of file nsIWebBrow.cpp.

{

}

Member Function Documentation

Definition at line 194 of file nsIWebBrow.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 72 of file nsIWebBrow.cpp.

{
       // AddWebBrowserListener
       nsWeakPtr weakling(
        do_GetWeakReference(NS_STATIC_CAST(nsIContextMenuListener*, qaBrowserImpl)));
    rv = qaWebBrowser->AddWebBrowserListener(weakling, NS_GET_IID(nsIContextMenuListener));
       RvTestResult(rv, "AddWebBrowserListener(). nsIContextMenuListener test", displayMode);
       RvTestResultDlg(rv, "AddWebBrowserListener(). nsIContextMenuListener test", true);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 93 of file nsIWebBrow.cpp.

{
       // GetContainerWindow
       nsCOMPtr<nsIWebBrowserChrome> qaWebBrowserChrome;
       rv = qaWebBrowser->GetContainerWindow(getter_AddRefs(qaWebBrowserChrome));
       RvTestResult(rv, "nsIWebBrowser::GetContainerWindow() test", displayMode);
       RvTestResultDlg(rv, "nsIWebBrowser::GetContainerWindow() test");
       if (!qaWebBrowserChrome)
              QAOutput("Didn't get web browser chrome object.", displayMode);
       else {
              rv = qaWebBrowserChrome->ShowAsModal();
              RvTestResult(rv, "nsIWebBrowserChrome::ShowAsModal() test", displayMode);
              RvTestResultDlg(rv, "nsIWebBrowserChrome::ShowAsModal() test");
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 144 of file nsIWebBrow.cpp.

{
       // GetContentDOMWindow
       nsCOMPtr<nsIDOMWindow> qaDOMWindow;
       rv = qaWebBrowser->GetContentDOMWindow(getter_AddRefs(qaDOMWindow));
       RvTestResult(rv, "nsIWebBrowser::GetContentDOMWindow() test", displayMode);
       RvTestResultDlg(rv, "nsIWebBrowser::GetContentDOMWindow() test");
       if (!qaDOMWindow)
              QAOutput("Didn't get dom window object.", displayMode);
       else {
              rv = qaDOMWindow->ScrollTo(50,50);
              RvTestResult(rv, "nsIDOMWindow::ScrollTo() test", displayMode);
              RvTestResultDlg(rv, "nsIDOMWindow::ScrollTo() test");
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 118 of file nsIWebBrow.cpp.

{
       // GetParentURIContentListener

       rv = qaWebBrowser->GetParentURIContentListener(getter_AddRefs(qaURIContentListener));
       RvTestResult(rv, "nsIWebBrowser::GetParentURIContentListener() test", displayMode);
       RvTestResultDlg(rv, "nsIWebBrowser::GetParentURIContentListener() test");
       if (!qaURIContentListener)
              QAOutput("Didn't get uri content listener object.", displayMode);
       else {
              nsCOMPtr<nsISupports> qaSupports;
              rv = qaURIContentListener->GetLoadCookie(getter_AddRefs(qaSupports));
              RvTestResult(rv, "nsIURIContentListener::GetLoadCookie() test", displayMode);
              RvTestResultDlg(rv, "nsIURIContentListener::GetLoadCookie() test");
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 82 of file nsIWebBrow.cpp.

{
       // RemoveWebBrowserListener
       nsWeakPtr weakling(
        do_GetWeakReference(NS_STATIC_CAST(nsIContextMenuListener*, qaBrowserImpl)));

       rv = qaWebBrowser->RemoveWebBrowserListener(weakling, NS_GET_IID(nsIContextMenuListener));
       RvTestResult(rv, "RemoveWebBrowserListener(). nsIContextMenuListener test", displayMode);
       RvTestResultDlg(rv, "RemoveWebBrowserListener(). nsIContextMenuListener test");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 109 of file nsIWebBrow.cpp.

{
       // SetContainerWindow

       rv = qaWebBrowser->SetContainerWindow(NS_STATIC_CAST(nsIWebBrowserChrome*, qaBrowserImpl));
       RvTestResult(rv, "nsIWebBrowser::SetContainerWindow() test", displayMode);
       RvTestResultDlg(rv, "nsIWebBrowser::SetContainerWindow() test");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 135 of file nsIWebBrow.cpp.

{
       // SetParentURIContentListener

       rv = qaWebBrowser->SetParentURIContentListener(NS_STATIC_CAST(nsIURIContentListener*, qaBrowserImpl));
       RvTestResult(rv, "nsIWebBrowser::SetParentURIContentListener() test", displayMode);
       RvTestResultDlg(rv, "nsIWebBrowser::SetParentURIContentListener() test");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 206 of file nsIWebBrow.cpp.

{
       // nsIWebBrowserSetup methods

       nsCOMPtr <nsIWebBrowserSetup> qaWBSetup(do_QueryInterface(qaWebBrowser, &rv));
       RvTestResult(rv, "nsIWebBrowserSetup object test", displayMode);
       RvTestResultDlg(rv, "nsIWebBrowserSetup object test");

       if (!qaWBSetup) {
              QAOutput("Didn't get WebBrowser Setup object.", displayMode);
              return;
       }

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_PLUGINS, PR_TRUE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_PLUGINS, PR_TRUE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_PLUGINS, PR_TRUE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_PLUGINS, PR_FALSE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_PLUGINS, PR_FALSE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_PLUGINS, PR_FALSE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_JAVASCRIPT, PR_TRUE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_JAVASCRIPT, PR_TRUE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_JAVASCRIPT, PR_TRUE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_JAVASCRIPT, PR_FALSE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_JAVASCRIPT, PR_FALSE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_JAVASCRIPT, PR_FALSE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_META_REDIRECTS, PR_TRUE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_META_REDIRECTS, PR_TRUE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_META_REDIRECTS, PR_TRUE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_META_REDIRECTS, PR_FALSE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_META_REDIRECTS, PR_FALSE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_META_REDIRECTS, PR_FALSE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_SUBFRAMES, PR_TRUE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_SUBFRAMES, PR_TRUE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_SUBFRAMES, PR_TRUE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_SUBFRAMES, PR_FALSE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_SUBFRAMES, PR_FALSE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_SUBFRAMES, PR_FALSE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES, PR_TRUE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_IMAGES, PR_TRUE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_IMAGES, PR_TRUE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_IMAGES, PR_FALSE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_IMAGES, PR_FALSE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_ALLOW_IMAGES, PR_FALSE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_FOCUS_DOC_BEFORE_CONTENT, PR_TRUE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_FOCUS_DOC_BEFORE_CONTENT, PR_TRUE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_FOCUS_DOC_BEFORE_CONTENT, PR_TRUE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_FOCUS_DOC_BEFORE_CONTENT, PR_FALSE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_FOCUS_DOC_BEFORE_CONTENT, PR_FALSE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_FOCUS_DOC_BEFORE_CONTENT, PR_FALSE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_USE_GLOBAL_HISTORY, PR_TRUE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_USE_GLOBAL_HISTORY, PR_TRUE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_USE_GLOBAL_HISTORY, PR_TRUE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_USE_GLOBAL_HISTORY, PR_FALSE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_USE_GLOBAL_HISTORY, PR_FALSE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_USE_GLOBAL_HISTORY, PR_FALSE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_IS_CHROME_WRAPPER, PR_TRUE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_IS_CHROME_WRAPPER, PR_TRUE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_IS_CHROME_WRAPPER, PR_TRUE)");

       rv = qaWBSetup->SetProperty(nsIWebBrowserSetup::SETUP_IS_CHROME_WRAPPER, PR_FALSE);
       RvTestResult(rv, "nsIWebBrowserSetup:SetProperty(SETUP_IS_CHROME_WRAPPER, PR_FALSE)", 1);
       RvTestResultDlg(rv, "nsIWebBrowserSetup:SetProperty(SETUP_IS_CHROME_WRAPPER, PR_FALSE)");
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 70 of file nsIWebBrow.h.

Definition at line 97 of file nsIWebBrow.h.

Definition at line 69 of file nsIWebBrow.h.

Definition at line 96 of file nsIWebBrow.h.


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