Removed the "set" enable/disable callback methods

This commit is contained in:
rods%netscape.com 1999-04-16 19:58:55 +00:00
parent b3a6cba1c5
commit d388a8a039
2 changed files with 0 additions and 29 deletions

View File

@ -280,11 +280,6 @@ nsBrowserAppCore::SetDocumentCharset(const nsString& aCharset)
NS_IMETHODIMP
nsBrowserAppCore::Back()
{
/*
ExecuteScript(mToolbarScriptContext, mDisableScript);
ExecuteScript(mContentScriptContext, "window.back();");
ExecuteScript(mToolbarScriptContext, mEnableScript);
*/
mContentAreaWebShell->Back();
return NS_OK;
}
@ -292,11 +287,6 @@ nsBrowserAppCore::Back()
NS_IMETHODIMP
nsBrowserAppCore::Forward()
{
/*
ExecuteScript(mToolbarScriptContext, mDisableScript);
ExecuteScript(mContentScriptContext, "window.forward();");
ExecuteScript(mToolbarScriptContext, mEnableScript);
*/
mContentAreaWebShell->Forward();
return NS_OK;
}
@ -470,20 +460,6 @@ nsBrowserAppCore::WalletSafeFillin() {
}
#endif
NS_IMETHODIMP
nsBrowserAppCore::SetDisableCallback(const nsString& aScript)
{
mDisableScript = aScript;
return NS_OK;
}
NS_IMETHODIMP
nsBrowserAppCore::SetEnableCallback(const nsString& aScript)
{
mEnableScript = aScript;
return NS_OK;
}
NS_IMETHODIMP
nsBrowserAppCore::LoadUrl(const nsString& aUrl)
{

View File

@ -73,8 +73,6 @@ class nsBrowserAppCore : public nsBaseAppCore,
NS_IMETHOD SetToolbarWindow(nsIDOMWindow* aWin);
NS_IMETHOD SetContentWindow(nsIDOMWindow* aWin);
NS_IMETHOD SetWebShellWindow(nsIDOMWindow* aWin);
NS_IMETHOD SetDisableCallback(const nsString& aScript);
NS_IMETHOD SetEnableCallback(const nsString& aScript);
NS_IMETHOD NewWindow();
NS_IMETHOD OpenWindow();
NS_IMETHOD PrintPreview();
@ -128,9 +126,6 @@ class nsBrowserAppCore : public nsBaseAppCore,
NS_IMETHOD ExecuteScript(nsIScriptContext * aContext, const nsString& aScript);
void SetButtonImage(nsIDOMNode * aParentNode, PRInt32 aBtnNum, const nsString &aResName);
nsString mEnableScript;
nsString mDisableScript;
nsIScriptContext *mToolbarScriptContext;
nsIScriptContext *mContentScriptContext;