Back to index

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

#include <GeckoWindow.h>

Collaboration diagram for GeckoWindow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GeckoWindow ()
virtual ~GeckoWindow ()
void SetGeckoContainer (GeckoContainer *aGeckoContainer)
GeckoContainerGetGeckoContainer () const

Protected Member Functions

void OnSize (wxSizeEvent &event)
void OnSetFocus (wxFocusEvent &event)
void OnKillFocus (wxFocusEvent &event)

Protected Attributes

GeckoContainermGeckoContainer

Private Member Functions

 DECLARE_DYNAMIC_CLASS (GeckoWindow)

Detailed Description

Definition at line 36 of file GeckoWindow.h.


Constructor & Destructor Documentation

Definition at line 38 of file GeckoWindow.cpp.

Definition at line 43 of file GeckoWindow.cpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 52 of file GeckoWindow.h.

{ return mGeckoContainer; }

Here is the caller graph for this function:

void GeckoWindow::OnKillFocus ( wxFocusEvent &  event) [protected]

Definition at line 87 of file GeckoWindow.cpp.

{
}
void GeckoWindow::OnSetFocus ( wxFocusEvent &  event) [protected]

Definition at line 83 of file GeckoWindow.cpp.

{
}
void GeckoWindow::OnSize ( wxSizeEvent &  event) [protected]

Definition at line 64 of file GeckoWindow.cpp.

{
    if (!mGeckoContainer)
    {
        return;
    }
    // Make sure the browser is visible and sized 
    nsCOMPtr<nsIWebBrowser> webBrowser;
    mGeckoContainer->GetWebBrowser(getter_AddRefs(webBrowser));
    nsCOMPtr<nsIBaseWindow> webBrowserAsWin = do_QueryInterface(webBrowser);
    if (webBrowserAsWin)
    {
        wxSize size = GetClientSize();
        webBrowserAsWin->SetPositionAndSize(
            0, 0, size.GetWidth(), size.GetHeight(), PR_TRUE);
        webBrowserAsWin->SetVisibility(PR_TRUE);
    }
}

Here is the call graph for this function:

Definition at line 48 of file GeckoWindow.cpp.

{
    if (aGeckoContainer != mGeckoContainer)
    {
        NS_IF_RELEASE(mGeckoContainer);
        mGeckoContainer = aGeckoContainer;
        NS_IF_ADDREF(mGeckoContainer);
    }
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 46 of file GeckoWindow.h.


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