Back to index

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

#include <nsQABrowserUIGlue.h>

Inheritance diagram for nsQABrowserUIGlue:
Inheritance graph
Collaboration diagram for nsQABrowserUIGlue:
Collaboration graph

List of all members.

Public Member Functions

 nsQABrowserUIGlue ()
void destroy (in nsIWebBrowserChrome aChrome)
void destroyed (in nsIWebBrowserChrome aChrome)
void setFocus (in nsIWebBrowserChrome aChrome)
void updateStatusBarText (in nsIWebBrowserChrome aChrome, in wstring aStatusText)
void updateCurrentURI (in nsIWebBrowserChrome aChrome)
void updateBusyState (in nsIWebBrowserChrome aChrome, in boolean aBusy)
void updateProgress (in nsIWebBrowserChrome aChrome, in long aCurrent, in long aMax)
void showContextMenu (in nsIWebBrowserChrome aChrome, in long aContextFlags, in nsIDOMEvent aEvent, in nsIDOMNode aNode)
void showTooltip (in nsIWebBrowserChrome aChrome, in long aXCoords, in long aYCoords, in wstring aTipText)
void hideTooltip (in nsIWebBrowserChrome aChrome)
void showWindow (in nsIWebBrowserChrome aChrome, in boolean aShow)
void sizeTo (in nsIWebBrowserChrome aChrome, in long aWidth, in long aHeight)
string getResourceStringById (in long aID)
nsIWebBrowserChrome createNewBrowserWindow (in long aChromeFlags, in nsIWebBrowserChrome aParent)
void loadURL (in string aURL)
void loadHomePage ()

Public Attributes

attribute boolean visibility
attribute wstring title
attribute boolean allowNewBrowserWindows

Protected Member Functions

virtual ~nsQABrowserUIGlue ()
nativeWindow CreateNativeWindow (nsIWebBrowserChrome *aChrome)

Private Attributes

PRBool mAllowNewWindows
nsCOMPtr< nsIQABrowserViewmBrowserView

Detailed Description

Definition at line 58 of file nsQABrowserUIGlue.h.

Constructor & Destructor Documentation

Definition at line 1054 of file mozEmbed.cpp.

nsQABrowserUIGlue::~nsQABrowserUIGlue ( ) [protected, virtual]

Definition at line 1058 of file mozEmbed.cpp.



Member Function Documentation

Definition at line 1456 of file mozEmbed.cpp.

  // Load the browser dialog from resource
  HWND hwndDialog;
  PRUint32 chromeFlags;

  if ((chromeFlags & nsIWebBrowserChrome::CHROME_ALL) == nsIWebBrowserChrome::CHROME_ALL)
    hwndDialog = CreateDialog(ghInstanceResources,
    hwndDialog = CreateDialog(ghInstanceResources,
  if (!hwndDialog)
    return (void *) nsnull;

  // Stick a menu onto it
  if (chromeFlags & nsIWebBrowserChrome::CHROME_MENUBAR) {
    HMENU hmenuDlg = LoadMenu(ghInstanceResources, MAKEINTRESOURCE(IDC_MOZEMBED));
    SetMenu(hwndDialog, hmenuDlg);
  } else
    SetMenu(hwndDialog, 0);

  // Add some interesting URLs to the address drop down
  HWND hwndAddress = GetDlgItem(hwndDialog, IDC_ADDRESS);
  if (hwndAddress) {
    for (int i = 0; i < sizeof(gDefaultURLs) / sizeof(gDefaultURLs[0]); i++)
      SendMessage(hwndAddress, CB_ADDSTRING, 0, (LPARAM) gDefaultURLs[i]);

  // Fetch the browser window handle
  HWND hwndBrowser = GetDlgItem(hwndDialog, IDC_BROWSER);
  SetWindowLong(hwndBrowser, GWL_USERDATA, (LONG)chrome);  // save the browser LONG_PTR.
  SetWindowLong(hwndBrowser, GWL_STYLE, GetWindowLong(hwndBrowser, GWL_STYLE) | WS_CLIPCHILDREN);

  // Activate the window
  PostMessage(hwndDialog, WM_ACTIVATE, WA_ACTIVE, 0);


  return (void *) hwndBrowser;

Here is the call graph for this function:

void nsIQABrowserUIGlue::loadURL ( in string  aURL) [inherited]
void nsIQABrowserUIGlue::showContextMenu ( in nsIWebBrowserChrome  aChrome,
in long  aContextFlags,
in nsIDOMEvent  aEvent,
in nsIDOMNode  aNode 
) [inherited]
void nsIQABrowserUIGlue::showTooltip ( in nsIWebBrowserChrome  aChrome,
in long  aXCoords,
in long  aYCoords,
in wstring  aTipText 
) [inherited]
void nsIQABrowserUIGlue::showWindow ( in nsIWebBrowserChrome  aChrome,
in boolean  aShow 
) [inherited]
void nsIQABrowserUIGlue::sizeTo ( in nsIWebBrowserChrome  aChrome,
in long  aWidth,
in long  aHeight 
) [inherited]
void nsIQABrowserUIGlue::updateProgress ( in nsIWebBrowserChrome  aChrome,
in long  aCurrent,
in long  aMax 
) [inherited]
void nsIQABrowserUIGlue::updateStatusBarText ( in nsIWebBrowserChrome  aChrome,
in wstring  aStatusText 
) [inherited]

Member Data Documentation

Definition at line 70 of file nsIQABrowserUIGlue.idl.

Definition at line 71 of file nsQABrowserUIGlue.h.

Definition at line 72 of file nsQABrowserUIGlue.h.

attribute wstring nsIQABrowserUIGlue::title [inherited]

Definition at line 69 of file nsIQABrowserUIGlue.idl.

Definition at line 68 of file nsIQABrowserUIGlue.idl.

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