diff --git a/xpfe/appshell/src/nsChromeTreeOwner.cpp b/xpfe/appshell/src/nsChromeTreeOwner.cpp index 61000f3f6a61..942abef8b1d1 100644 --- a/xpfe/appshell/src/nsChromeTreeOwner.cpp +++ b/xpfe/appshell/src/nsChromeTreeOwner.cpp @@ -61,6 +61,7 @@ NS_INTERFACE_MAP_BEGIN(nsChromeTreeOwner) NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDocShellTreeOwner) NS_INTERFACE_MAP_ENTRY(nsIDocShellTreeOwner) NS_INTERFACE_MAP_ENTRY(nsIBaseWindow) + NS_INTERFACE_MAP_ENTRY(nsIWebProgressListener) NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor) NS_INTERFACE_MAP_END @@ -312,6 +313,42 @@ NS_IMETHODIMP nsChromeTreeOwner::SetTitle(const PRUnichar* aTitle) return mXULWindow->nsXULWindow::SetTitle(aTitle); } +//***************************************************************************** +// nsChromeTreeOwner::nsIWebProgressListener +//***************************************************************************** + +NS_IMETHODIMP nsChromeTreeOwner::OnProgressChange(nsIChannel* aChannel, + PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, + PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress) +{ + return NS_OK; +} + +NS_IMETHODIMP nsChromeTreeOwner::OnChildProgressChange(nsIChannel* aChannel, + PRInt32 aCurChildProgress, PRInt32 aMaxChildProgress) +{ + return NS_OK; +} + +NS_IMETHODIMP nsChromeTreeOwner::OnStatusChange(nsIChannel* aChannel, + PRInt32 aProgressStatusFlags) +{ + return NS_OK; +} + +NS_IMETHODIMP nsChromeTreeOwner::OnChildStatusChange(nsIChannel* aChannel, + PRInt32 aProgressStatusFlags) +{ + return NS_OK; +} + +NS_IMETHODIMP nsChromeTreeOwner::OnLocationChange(nsIURI* aLocation) +{ + // If loading a new root .xul document, then redo chrome. + mXULWindow->mChromeLoaded = PR_FALSE; + return NS_OK; +} + //***************************************************************************** // nsChromeTreeOwner: Helpers //***************************************************************************** diff --git a/xpfe/appshell/src/nsChromeTreeOwner.h b/xpfe/appshell/src/nsChromeTreeOwner.h index a4dc132d4290..f769d87add6d 100644 --- a/xpfe/appshell/src/nsChromeTreeOwner.h +++ b/xpfe/appshell/src/nsChromeTreeOwner.h @@ -30,12 +30,14 @@ #include "nsIBaseWindow.h" #include "nsIDocShellTreeOwner.h" #include "nsIInterfaceRequestor.h" +#include "nsIWebProgressListener.h" class nsXULWindow; class nsChromeTreeOwner : public nsIDocShellTreeOwner, - public nsIBaseWindow, - public nsIInterfaceRequestor + public nsIBaseWindow, + public nsIInterfaceRequestor, + public nsIWebProgressListener { friend class nsXULWindow; @@ -45,6 +47,7 @@ public: NS_DECL_NSIINTERFACEREQUESTOR NS_DECL_NSIBASEWINDOW NS_DECL_NSIDOCSHELLTREEOWNER + NS_DECL_NSIWEBPROGRESSLISTENER protected: nsChromeTreeOwner();