nsChromeTreeOwner is now a nsIWebProgressListener for a load.

This commit is contained in:
tbogard%aol.net 2000-04-11 23:50:14 +00:00
Родитель 60994d2347
Коммит 6b8b335f60
2 изменённых файлов: 42 добавлений и 2 удалений

Просмотреть файл

@ -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
//*****************************************************************************

Просмотреть файл

@ -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();