Added a new method so that the web shell window gets notified when new web

shells are added to its hierarchy.
This commit is contained in:
hyatt@netscape.com
1999-04-20 01:51:37 +00:00
parent 7dd2dc48b4
commit b69878beaa
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -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)