Added GetWebShell method

This commit is contained in:
rods%netscape.com 1999-02-10 16:25:11 +00:00
parent 2074e5a217
commit d4bc9306c6
2 changed files with 13 additions and 0 deletions

View File

@ -248,6 +248,18 @@ GlobalWindowImpl::SetWebShell(nsIWebShell *aWebShell)
}
}
NS_IMETHODIMP_(void) // XXX This may be temporary - rods
GlobalWindowImpl::GetWebShell(nsIWebShell **aWebShell)
{
if (nsnull != mWebShell) {
*aWebShell = mWebShell;
NS_ADDREF(mWebShell);
} else {
//*mWebShell = nsnull;
}
}
NS_IMETHODIMP_(void)
GlobalWindowImpl::SetOpenerWindow(nsIDOMWindow *aOpener)
{

View File

@ -65,6 +65,7 @@ public:
NS_IMETHOD_(void) SetContext(nsIScriptContext *aContext);
NS_IMETHOD_(void) SetNewDocument(nsIDOMDocument *aDocument);
NS_IMETHOD_(void) SetWebShell(nsIWebShell *aWebShell);
NS_IMETHOD_(void) GetWebShell(nsIWebShell **aWebShell);// XXX This may be temporary - rods
NS_IMETHOD_(void) SetOpenerWindow(nsIDOMWindow *aOpener);
NS_IMETHOD GetWindow(nsIDOMWindow** aWindow);