mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Removed the "set" enable/disable callback methods
This commit is contained in:
parent
b3a6cba1c5
commit
d388a8a039
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user