Back() and Forward() have been changed to use the nsIWebNavigation interfaces instead of the old nsIWebShell.

This commit is contained in:
tbogard%aol.net 2000-03-11 11:59:55 +00:00
parent 6f99d05f74
commit 932354edc2

View File

@ -66,6 +66,7 @@
#include "nsIDocumentLoader.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeNode.h"
#include "nsIWebNavigation.h"
#include "nsIBaseWindow.h"
#include "nsXPIDLString.h"
@ -752,15 +753,15 @@ nsBrowserWindow::DispatchMenuItem(PRInt32 aID)
void
nsBrowserWindow::Back()
{
nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(mDocShell));
webShell->Back();
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mWebBrowser));
webNav->GoBack();
}
void
nsBrowserWindow::Forward()
{
nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(mDocShell));
webShell->Forward();
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mWebBrowser));
webNav->GoForward();
}
void