Added a method to webshell so that a root container can find out when

new webshells are added to its hierarchy.
This commit is contained in:
hyatt@netscape.com
1999-04-20 01:50:03 +00:00
parent bcbea63f39
commit 7dd2dc48b4
7 changed files with 44 additions and 1 deletions

View File

@@ -241,6 +241,8 @@ public:
PRBool aVisible,
nsIWebShell *&aNewWebShell);
NS_IMETHOD CanCreateNewWebShell(PRBool& aResult);
NS_IMETHOD ChildShellAdded(nsIWebShell* aChildShell, nsIContent* frameNode, PRBool& aResult);
NS_IMETHOD SetNewWebShellInfo(const nsString& aName, const nsString& anURL,
nsIWebShell* aOpenerShell, PRUint32 aChromeMask,
nsIWebShell** aNewShell);
@@ -1903,6 +1905,16 @@ nsWebShell::CanCreateNewWebShell(PRBool& aResult)
return NS_OK;
}
NS_IMETHODIMP
nsWebShell::ChildShellAdded(nsIWebShell* aChildShell, nsIContent* frameNode, PRBool& aResult)
{
aResult = PR_FALSE;
if (nsnull != mContainer) {
return mContainer->ChildShellAdded(aChildShell, frameNode, aResult);
}
return NS_OK;
}
NS_IMETHODIMP
nsWebShell::SetNewWebShellInfo(const nsString& aName, const nsString& anURL,
nsIWebShell* aOpenerShell, PRUint32 aChromeMask,