From b69878beaa76dc896acddf83fb6634732be5cfb0 Mon Sep 17 00:00:00 2001 From: "hyatt@netscape.com" Date: Tue, 20 Apr 1999 01:51:37 +0000 Subject: [PATCH] Added a new method so that the web shell window gets notified when new web shells are added to its hierarchy. --- xpfe/appshell/src/nsWebShellWindow.cpp | 7 ++++++- xpfe/appshell/src/nsWebShellWindow.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/xpfe/appshell/src/nsWebShellWindow.cpp b/xpfe/appshell/src/nsWebShellWindow.cpp index b72befb3a4ca..baf2856780dd 100644 --- a/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/xpfe/appshell/src/nsWebShellWindow.cpp @@ -767,6 +767,11 @@ void nsWebShellWindow::LoadMenus(nsIDOMDocument * aDOMDoc, nsIWidget * aParentWi } // nsWebShellWindow::LoadMenus +NS_IMETHODIMP +nsWebShellWindow::ChildShellAdded(nsIWebShell* aChildShell, nsIContent* frameNode, PRBool& aResult) +{ + return NS_OK; +} NS_IMETHODIMP nsWebShellWindow::NewWebShell(PRUint32 aChromeMask, PRBool aVisible, @@ -819,7 +824,7 @@ nsWebShellWindow::SetNewWebShellInfo(const nsString& aName, const nsString& anUR *aNewWebShellResult = mWebShell; // Cache our webshell info. - nsWebShellInfo* webShellInfo = new nsWebShellInfo("contentframe", + nsWebShellInfo* webShellInfo = new nsWebShellInfo("content_frame", aName, anURL, aOpenerShell); if (mContentShells == nsnull) diff --git a/xpfe/appshell/src/nsWebShellWindow.h b/xpfe/appshell/src/nsWebShellWindow.h index c379313196c8..6f2447f8c554 100644 --- a/xpfe/appshell/src/nsWebShellWindow.h +++ b/xpfe/appshell/src/nsWebShellWindow.h @@ -84,6 +84,8 @@ public: PRInt32 aStatus); + NS_IMETHOD ChildShellAdded(nsIWebShell* aChildShell, nsIContent* frameNode, PRBool& aResult); + NS_IMETHOD NewWebShell(PRUint32 aChromeMask, PRBool aVisible, nsIWebShell *&aNewWebShell);