1998-07-21 01:15:52 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "License"); you may not use this file except in
|
|
|
|
* compliance with the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS"
|
|
|
|
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
|
|
|
* the License for the specific language governing rights and limitations
|
|
|
|
* under the License.
|
|
|
|
*
|
|
|
|
* The Original Code is Mozilla Communicator client code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape Communications
|
|
|
|
* Corporation. Portions created by Netscape are Copyright (C) 1998
|
|
|
|
* Netscape Communications Corporation. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
#ifndef nsBrowserWindow_h___
|
|
|
|
#define nsBrowserWindow_h___
|
|
|
|
|
|
|
|
#include "nsIBrowserWindow.h"
|
|
|
|
#include "nsIStreamListener.h"
|
1999-06-28 14:35:57 +04:00
|
|
|
#ifdef NECKO
|
|
|
|
#include "nsIProgressEventSink.h"
|
|
|
|
#else
|
1998-07-22 04:26:23 +04:00
|
|
|
#include "nsINetSupport.h"
|
1999-06-28 14:35:57 +04:00
|
|
|
#endif
|
1998-07-21 01:15:52 +04:00
|
|
|
#include "nsIWebShell.h"
|
|
|
|
#include "nsIScriptContextOwner.h"
|
1999-04-30 04:11:18 +04:00
|
|
|
#include "nsIDocumentLoaderObserver.h"
|
1998-07-21 01:15:52 +04:00
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsVoidArray.h"
|
|
|
|
#include "nsCRT.h"
|
1999-04-23 23:48:05 +04:00
|
|
|
#include "prtime.h"
|
1999-05-16 02:58:28 +04:00
|
|
|
#include "nsFileSpec.h"
|
1998-07-31 22:34:53 +04:00
|
|
|
|
1998-12-17 18:52:48 +03:00
|
|
|
#include "nsIXPBaseWindow.h"
|
|
|
|
#include "nsPrintSetupDialog.h"
|
|
|
|
#include "nsFindDialog.h"
|
1999-01-07 00:59:17 +03:00
|
|
|
#include "nsTableInspectorDialog.h"
|
|
|
|
#include "nsImageInspectorDialog.h"
|
1999-09-21 04:04:31 +04:00
|
|
|
#include "nsIPrompt.h"
|
1998-12-17 18:52:48 +03:00
|
|
|
|
1998-08-28 20:14:37 +04:00
|
|
|
class nsILabel;
|
|
|
|
class nsICheckButton;
|
|
|
|
class nsIRadioButton;
|
1998-07-21 01:15:52 +04:00
|
|
|
class nsITextWidget;
|
|
|
|
class nsIButton;
|
1999-09-26 00:10:29 +04:00
|
|
|
class nsThrobber;
|
1998-07-21 01:15:52 +04:00
|
|
|
class nsViewerApp;
|
1998-10-16 03:23:04 +04:00
|
|
|
class nsIDocumentViewer;
|
|
|
|
class nsIPresContext;
|
1998-07-21 04:48:35 +04:00
|
|
|
class nsIPresShell;
|
1998-07-31 22:34:53 +04:00
|
|
|
class nsIPref;
|
1998-12-11 19:36:21 +03:00
|
|
|
class nsIContentConnector;
|
1999-04-30 04:11:18 +04:00
|
|
|
class nsWebCrawler;
|
1998-07-21 04:48:35 +04:00
|
|
|
|
|
|
|
#define SAMPLES_BASE_URL "resource:/res/samples"
|
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
/**
|
|
|
|
* Abstract base class for our test app's browser windows
|
|
|
|
*/
|
|
|
|
class nsBrowserWindow : public nsIBrowserWindow,
|
1999-10-05 08:04:16 +04:00
|
|
|
public nsIDocumentLoaderObserver,
|
1999-06-28 14:35:57 +04:00
|
|
|
public nsIProgressEventSink,
|
1999-09-21 04:04:31 +04:00
|
|
|
public nsIWebShellContainer,
|
|
|
|
public nsIPrompt
|
1998-07-21 01:15:52 +04:00
|
|
|
{
|
|
|
|
public:
|
1999-02-26 23:02:06 +03:00
|
|
|
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
|
1998-07-21 01:15:52 +04:00
|
|
|
|
|
|
|
// nsISupports
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
// nsIBrowserWindow
|
|
|
|
NS_IMETHOD Init(nsIAppShell* aAppShell,
|
1998-07-31 10:02:06 +04:00
|
|
|
nsIPref* aPrefs,
|
1998-07-21 01:15:52 +04:00
|
|
|
const nsRect& aBounds,
|
1998-08-05 08:23:21 +04:00
|
|
|
PRUint32 aChromeMask,
|
|
|
|
PRBool aAllowPlugins = PR_TRUE);
|
1999-01-27 08:20:43 +03:00
|
|
|
|
|
|
|
// virtual method for platform-specific initialization
|
|
|
|
NS_IMETHOD InitNativeWindow() { return NS_OK; }
|
|
|
|
|
|
|
|
// nsIBrowserWindow
|
1998-07-21 01:15:52 +04:00
|
|
|
NS_IMETHOD MoveTo(PRInt32 aX, PRInt32 aY);
|
1999-07-04 08:09:54 +04:00
|
|
|
NS_IMETHOD SizeContentTo(PRInt32 aWidth, PRInt32 aHeight);
|
|
|
|
NS_IMETHOD SizeWindowTo(PRInt32 aWidth, PRInt32 aHeight);
|
|
|
|
NS_IMETHOD GetContentBounds(nsRect& aBounds);
|
1998-10-02 02:23:48 +04:00
|
|
|
NS_IMETHOD GetWindowBounds(nsRect& aBounds);
|
1999-07-06 22:52:38 +04:00
|
|
|
NS_IMETHOD IsIntrinsicallySized(PRBool& aResult);
|
1999-07-21 10:37:58 +04:00
|
|
|
NS_IMETHOD ShowAfterCreation() { return Show(); }
|
1998-07-21 01:15:52 +04:00
|
|
|
NS_IMETHOD Show();
|
|
|
|
NS_IMETHOD Hide();
|
1998-09-04 04:47:15 +04:00
|
|
|
NS_IMETHOD Close();
|
1999-08-13 02:08:17 +04:00
|
|
|
NS_IMETHOD ShowModally(PRBool aPrepare);
|
1998-09-09 05:19:11 +04:00
|
|
|
NS_IMETHOD SetChrome(PRUint32 aNewChromeMask);
|
1998-07-21 01:15:52 +04:00
|
|
|
NS_IMETHOD GetChrome(PRUint32& aChromeMaskResult);
|
1998-08-15 03:08:54 +04:00
|
|
|
NS_IMETHOD SetTitle(const PRUnichar* aTitle);
|
1999-02-14 09:35:01 +03:00
|
|
|
NS_IMETHOD GetTitle(const PRUnichar** aResult);
|
1998-08-15 03:08:54 +04:00
|
|
|
NS_IMETHOD SetStatus(const PRUnichar* aStatus);
|
1999-02-14 09:35:01 +03:00
|
|
|
NS_IMETHOD GetStatus(const PRUnichar** aResult);
|
1999-07-26 19:02:19 +04:00
|
|
|
NS_IMETHOD SetDefaultStatus(const PRUnichar* aStatus);
|
|
|
|
NS_IMETHOD GetDefaultStatus(const PRUnichar** aResult);
|
1998-09-12 04:22:27 +04:00
|
|
|
NS_IMETHOD SetProgress(PRInt32 aProgress, PRInt32 aProgressMax);
|
1999-06-09 23:03:24 +04:00
|
|
|
NS_IMETHOD ShowMenuBar(PRBool aShow);
|
1998-07-21 04:48:35 +04:00
|
|
|
NS_IMETHOD GetWebShell(nsIWebShell*& aResult);
|
1999-06-27 01:48:29 +04:00
|
|
|
NS_IMETHOD GetContentWebShell(nsIWebShell **aResult);
|
1998-07-21 01:15:52 +04:00
|
|
|
|
1999-10-05 08:04:16 +04:00
|
|
|
// nsIDocumentLoaderObserver
|
|
|
|
NS_IMETHOD OnStartDocumentLoad(nsIDocumentLoader* loader,
|
|
|
|
nsIURI* aURL,
|
|
|
|
const char* aCommand);
|
|
|
|
NS_IMETHOD OnEndDocumentLoad(nsIDocumentLoader* loader,
|
|
|
|
nsIChannel* channel,
|
|
|
|
nsresult aStatus,
|
|
|
|
nsIDocumentLoaderObserver * aObserver);
|
|
|
|
NS_IMETHOD OnStartURLLoad(nsIDocumentLoader* loader,
|
|
|
|
nsIChannel* channel,
|
|
|
|
nsIContentViewer* aViewer);
|
|
|
|
NS_IMETHOD OnProgressURLLoad(nsIDocumentLoader* loader,
|
|
|
|
nsIChannel* channel,
|
|
|
|
PRUint32 aProgress,
|
|
|
|
PRUint32 aProgressMax);
|
|
|
|
NS_IMETHOD OnStatusURLLoad(nsIDocumentLoader* loader,
|
|
|
|
nsIChannel* channel,
|
|
|
|
nsString& aMsg);
|
|
|
|
NS_IMETHOD OnEndURLLoad(nsIDocumentLoader* loader,
|
|
|
|
nsIChannel* channel,
|
|
|
|
nsresult aStatus);
|
|
|
|
NS_IMETHOD HandleUnknownContentType( nsIDocumentLoader* loader,
|
|
|
|
nsIChannel* channel,
|
|
|
|
const char *aContentType,
|
|
|
|
const char *aCommand );
|
1999-06-28 14:35:57 +04:00
|
|
|
|
|
|
|
// nsIProgressEventSink
|
1999-08-23 03:52:07 +04:00
|
|
|
NS_DECL_NSIPROGRESSEVENTSINK
|
1999-06-28 14:35:57 +04:00
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
// nsIWebShellContainer
|
1998-08-15 03:08:54 +04:00
|
|
|
NS_IMETHOD WillLoadURL(nsIWebShell* aShell, const PRUnichar* aURL, nsLoadType aReason);
|
|
|
|
NS_IMETHOD BeginLoadURL(nsIWebShell* aShell, const PRUnichar* aURL);
|
|
|
|
NS_IMETHOD ProgressLoadURL(nsIWebShell* aShell, const PRUnichar* aURL, PRInt32 aProgress, PRInt32 aProgressMax);
|
1999-08-05 05:28:30 +04:00
|
|
|
NS_IMETHOD EndLoadURL(nsIWebShell* aShell, const PRUnichar* aURL, nsresult aStatus);
|
1998-12-08 05:39:48 +03:00
|
|
|
NS_IMETHOD NewWebShell(PRUint32 aChromeMask,
|
|
|
|
PRBool aVisible,
|
|
|
|
nsIWebShell *&aNewWebShell);
|
1999-05-05 03:33:55 +04:00
|
|
|
NS_IMETHOD ContentShellAdded(nsIWebShell* aChildShell, nsIContent* frameNode);
|
1999-05-15 02:40:03 +04:00
|
|
|
NS_IMETHOD CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupContent,
|
|
|
|
PRInt32 aXPos, PRInt32 aYPos,
|
1999-06-09 12:36:06 +04:00
|
|
|
const nsString& aPopupType, const nsString& anAnchorAlignment,
|
|
|
|
const nsString& aPopupAlignment,
|
1999-07-01 04:07:41 +04:00
|
|
|
nsIDOMWindow* aWindow, nsIDOMWindow** outPopup);
|
1998-09-18 04:35:55 +04:00
|
|
|
NS_IMETHOD FindWebShellWithName(const PRUnichar* aName, nsIWebShell*& aResult);
|
1999-04-13 01:25:08 +04:00
|
|
|
NS_IMETHOD FocusAvailable(nsIWebShell* aFocusedWebShell, PRBool& aFocusTaken);
|
1998-07-21 01:15:52 +04:00
|
|
|
|
1999-09-21 04:04:31 +04:00
|
|
|
// nsIPrompt
|
|
|
|
NS_DECL_NSIPROMPT
|
1998-07-22 04:26:23 +04:00
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
// nsBrowserWindow
|
1999-04-30 04:11:18 +04:00
|
|
|
void SetWebCrawler(nsWebCrawler* aWebCrawler);
|
1998-07-21 01:15:52 +04:00
|
|
|
virtual nsresult CreateMenuBar(PRInt32 aWidth) = 0;
|
1999-09-01 14:48:28 +04:00
|
|
|
virtual nsresult GetMenuBarHeight(PRInt32 * aHeightOut);
|
1998-07-21 01:15:52 +04:00
|
|
|
virtual nsresult CreateToolBar(PRInt32 aWidth);
|
|
|
|
virtual nsresult CreateStatusBar(PRInt32 aWidth);
|
|
|
|
void Layout(PRInt32 aWidth, PRInt32 aHeight);
|
|
|
|
void Back();
|
|
|
|
void Forward();
|
1998-11-11 23:31:45 +03:00
|
|
|
void GoTo(const PRUnichar* aURL,const char* aCommand=nsnull);
|
1998-07-21 01:15:52 +04:00
|
|
|
void StartThrobber();
|
|
|
|
void StopThrobber();
|
|
|
|
void LoadThrobberImages();
|
|
|
|
void DestroyThrobberImages();
|
1998-07-21 02:13:11 +04:00
|
|
|
virtual nsEventStatus DispatchMenuItem(PRInt32 aID) = 0;
|
1998-07-21 01:15:52 +04:00
|
|
|
|
1998-07-21 20:45:21 +04:00
|
|
|
void DoFileOpen();
|
1998-07-27 22:17:07 +04:00
|
|
|
void DoCopy();
|
1999-03-09 01:45:56 +03:00
|
|
|
void DoPaste();
|
1998-08-07 08:45:03 +04:00
|
|
|
void DoJSConsole();
|
1998-09-22 04:57:54 +04:00
|
|
|
void DoPrefs();
|
1998-08-14 05:51:00 +04:00
|
|
|
void DoEditorMode(nsIWebShell* aWebShell);
|
1999-03-02 08:31:41 +03:00
|
|
|
void DoEditorTest(nsIWebShell* aWebShell, PRInt32 aCommandID);
|
1998-07-31 20:53:45 +04:00
|
|
|
nsIPresShell* GetPresShell();
|
1998-07-21 20:45:21 +04:00
|
|
|
|
1998-08-28 20:14:37 +04:00
|
|
|
void DoFind();
|
1998-11-06 02:57:02 +03:00
|
|
|
NS_IMETHOD FindNext(const nsString &aSearchStr, PRBool aMatchCase, PRBool aSearchDown, PRBool &aIsFound);
|
|
|
|
NS_IMETHOD ForceRefresh();
|
1998-08-05 00:04:55 +04:00
|
|
|
|
1998-12-03 13:12:30 +03:00
|
|
|
void DoTreeView();
|
1999-01-06 01:59:02 +03:00
|
|
|
void DoToolbarDemo();
|
1998-12-03 13:12:30 +03:00
|
|
|
|
1998-10-16 03:23:04 +04:00
|
|
|
void ShowPrintPreview(PRInt32 aID);
|
1998-11-14 04:58:34 +03:00
|
|
|
void DoPrint(void);
|
1998-12-17 18:52:48 +03:00
|
|
|
void DoPrintSetup(void);
|
1999-01-07 00:59:17 +03:00
|
|
|
void DoTableInspector(void);
|
|
|
|
void DoImageInspector(void);
|
1998-10-16 03:23:04 +04:00
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
#ifdef NS_DEBUG
|
|
|
|
void DumpContent(FILE *out = stdout);
|
1998-09-03 02:07:42 +04:00
|
|
|
void DumpFrames(FILE *out = stdout, nsString *aFilter = nsnull);
|
1998-07-21 01:15:52 +04:00
|
|
|
void DumpViews(FILE *out = stdout);
|
|
|
|
void DumpWebShells(FILE *out = stdout);
|
|
|
|
void DumpStyleSheets(FILE *out = stdout);
|
|
|
|
void DumpStyleContexts(FILE *out = stdout);
|
|
|
|
void ToggleFrameBorders();
|
1999-09-09 06:32:54 +04:00
|
|
|
void ToggleBoolPrefAndRefresh(const char * aPrefName);
|
1999-10-06 03:59:59 +04:00
|
|
|
void ShowContentSize(FILE* out = stdout);
|
1999-08-31 07:17:39 +04:00
|
|
|
void ShowFrameSize(FILE* out = stdout);
|
1998-07-21 01:15:52 +04:00
|
|
|
void ShowStyleSize();
|
1998-07-21 02:22:13 +04:00
|
|
|
void DoDebugSave();
|
1998-07-27 22:17:07 +04:00
|
|
|
void DoToggleSelection();
|
1998-07-21 04:48:35 +04:00
|
|
|
void DoDebugRobot();
|
|
|
|
void DoSiteWalker();
|
1998-07-21 02:13:11 +04:00
|
|
|
nsEventStatus DispatchDebugMenu(PRInt32 aID);
|
1998-07-21 01:15:52 +04:00
|
|
|
#endif
|
1999-01-23 10:10:37 +03:00
|
|
|
nsEventStatus DispatchStyleMenu(PRInt32 aID);
|
|
|
|
void SetCompatibilityMode(PRBool aIsStandard);
|
1999-03-03 01:43:26 +03:00
|
|
|
void SetWidgetRenderingMode(PRBool aIsNative);
|
1998-07-21 01:15:52 +04:00
|
|
|
|
1998-08-28 20:14:37 +04:00
|
|
|
nsEventStatus ProcessDialogEvent(nsGUIEvent *aEvent);
|
|
|
|
|
1998-10-16 03:23:04 +04:00
|
|
|
// Initialize a second view on a different browser windows document
|
|
|
|
// viewer.
|
|
|
|
nsresult Init(nsIAppShell* aAppShell,
|
|
|
|
nsIPref* aPrefs,
|
|
|
|
const nsRect& aBounds,
|
|
|
|
PRUint32 aChromeMask,
|
|
|
|
PRBool aAllowPlugins,
|
|
|
|
nsIDocumentViewer* aDocViewer,
|
|
|
|
nsIPresContext* aPresContext);
|
1998-08-28 20:14:37 +04:00
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
void SetApp(nsViewerApp* aApp) {
|
|
|
|
mApp = aApp;
|
|
|
|
}
|
|
|
|
|
1998-09-15 04:14:31 +04:00
|
|
|
static void CloseAllWindows();
|
|
|
|
|
1999-04-23 23:48:05 +04:00
|
|
|
void SetShowLoadTimes(PRBool aOn) {
|
|
|
|
mShowLoadTimes = aOn;
|
|
|
|
}
|
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
nsViewerApp* mApp;
|
1999-04-30 04:11:18 +04:00
|
|
|
nsWebCrawler* mWebCrawler;
|
1998-07-21 01:15:52 +04:00
|
|
|
|
|
|
|
PRUint32 mChromeMask;
|
|
|
|
nsString mTitle;
|
|
|
|
|
|
|
|
nsIWidget* mWindow;
|
|
|
|
nsIWebShell* mWebShell;
|
|
|
|
|
1999-05-16 02:58:28 +04:00
|
|
|
nsFileSpec mOpenFileDirectory;
|
1999-03-17 03:45:33 +03:00
|
|
|
|
1999-04-23 23:48:05 +04:00
|
|
|
PRTime mLoadStartTime;
|
|
|
|
PRBool mShowLoadTimes;
|
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
// "Toolbar"
|
|
|
|
nsITextWidget* mLocation;
|
|
|
|
nsIButton* mBack;
|
|
|
|
nsIButton* mForward;
|
1999-09-26 00:10:29 +04:00
|
|
|
nsThrobber* mThrobber;
|
1998-12-03 13:12:30 +03:00
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
// "Status bar"
|
|
|
|
nsITextWidget* mStatus;
|
|
|
|
|
1998-08-28 20:14:37 +04:00
|
|
|
// Find Dialog
|
1999-06-13 05:01:26 +04:00
|
|
|
nsIBrowserWindow * mDialog;
|
1998-08-28 20:14:37 +04:00
|
|
|
nsIButton * mCancelBtn;
|
|
|
|
nsIButton * mFindBtn;
|
|
|
|
nsITextWidget * mTextField;
|
|
|
|
nsICheckButton * mMatchCheckBtn;
|
|
|
|
nsIRadioButton * mUpRadioBtn;
|
|
|
|
nsIRadioButton * mDwnRadioBtn;
|
|
|
|
nsILabel * mLabel;
|
|
|
|
|
1998-12-17 18:52:48 +03:00
|
|
|
nsIXPBaseWindow * mXPDialog;
|
1999-01-07 00:59:17 +03:00
|
|
|
nsIXPBaseWindow * mTableInspectorDialog;
|
|
|
|
nsIXPBaseWindow * mImageInspectorDialog;
|
1998-12-17 18:52:48 +03:00
|
|
|
PrintSetupInfo mPrintSetupInfo;
|
|
|
|
|
1999-01-07 00:59:17 +03:00
|
|
|
nsTableInspectorDialog * mTableInspector;
|
|
|
|
nsImageInspectorDialog * mImageInspector;
|
|
|
|
|
1998-08-20 01:00:51 +04:00
|
|
|
//for creating more instances
|
1998-11-18 08:31:03 +03:00
|
|
|
nsIAppShell* mAppShell;
|
|
|
|
nsIPref* mPrefs;
|
1998-08-20 01:00:51 +04:00
|
|
|
PRBool mAllowPlugins;
|
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
// Global window collection
|
|
|
|
static nsVoidArray gBrowsers;
|
|
|
|
static void AddBrowser(nsBrowserWindow* aBrowser);
|
|
|
|
static void RemoveBrowser(nsBrowserWindow* aBrowser);
|
|
|
|
static nsBrowserWindow* FindBrowserFor(nsIWidget* aWidget, PRIntn aWhich);
|
|
|
|
|
|
|
|
protected:
|
1999-01-07 00:59:17 +03:00
|
|
|
nsIDOMDocument* GetDOMDocument(nsIWebShell *aWebShell);
|
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
nsBrowserWindow();
|
|
|
|
virtual ~nsBrowserWindow();
|
|
|
|
};
|
|
|
|
|
|
|
|
// XXX This is bad; because we can't hang a closure off of the event
|
|
|
|
// callback we have no way to store our This pointer; therefore we
|
|
|
|
// have to hunt to find the browswer that events belong too!!!
|
|
|
|
|
|
|
|
// aWhich for FindBrowserFor
|
|
|
|
#define FIND_WINDOW 0
|
|
|
|
#define FIND_BACK 1
|
|
|
|
#define FIND_FORWARD 2
|
|
|
|
#define FIND_LOCATION 3
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
class nsNativeBrowserWindow : public nsBrowserWindow {
|
|
|
|
public:
|
|
|
|
nsNativeBrowserWindow();
|
|
|
|
~nsNativeBrowserWindow();
|
1999-01-27 08:20:43 +03:00
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
virtual nsresult CreateMenuBar(PRInt32 aWidth);
|
1998-07-21 02:13:11 +04:00
|
|
|
virtual nsEventStatus DispatchMenuItem(PRInt32 aID);
|
1999-09-01 14:48:28 +04:00
|
|
|
virtual nsresult GetMenuBarHeight(PRInt32 * aHeightOut);
|
1999-01-27 08:20:43 +03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
NS_IMETHOD InitNativeWindow();
|
|
|
|
|
1998-07-21 01:15:52 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsBrowserWindow_h___ */
|