More fixes for bug # 46828. r=pollmann sr=rpotts

This commit is contained in:
radha%netscape.com 2005-08-18 11:15:58 +00:00
Родитель 14d953579d
Коммит 17ede7e0d1
3 изменённых файлов: 22 добавлений и 0 удалений

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

@ -61,6 +61,11 @@ attribute nsISHEntry parent;
* when reload is pressed, it has the appropriate reload flag
*/
attribute unsigned long loadType;
/**
* An ID to help identify this entry from others during
* subframe navigation
*/
attribute unsigned long ID;
/** Additional ways to create an entry */
void create(in nsIURI aURI, in wstring aTitle, in nsIDOMDocument aDocument,

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

@ -25,6 +25,7 @@
#include "nsXPIDLString.h"
#include "nsIDocShellLoadInfo.h"
PRUint32 gEntryID=0;
//*****************************************************************************
//*** nsSHEntry: Object Management
//*****************************************************************************
@ -33,6 +34,7 @@ nsSHEntry::nsSHEntry()
{
NS_INIT_REFCNT();
mParent = nsnull;
mID = gEntryID++;
}
nsSHEntry::~nsSHEntry()
@ -163,6 +165,20 @@ NS_IMETHODIMP nsSHEntry::SetLoadType(PRUint32 aLoadType)
return NS_OK;
}
NS_IMETHODIMP nsSHEntry::GetID(PRUint32 * aResult)
{
NS_ENSURE_ARG_POINTER(aResult);
*aResult = mID;
return NS_OK;
}
NS_IMETHODIMP nsSHEntry::SetID(PRUint32 aID)
{
mID = aID;
return NS_OK;
}
nsresult
nsSHEntry::Create(nsIURI * aURI, const PRUnichar * aTitle, nsIDOMDocument * aDOMDocument,
nsIInputStream * aInputStream, nsILayoutHistoryState * aHistoryLayoutState)

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

@ -63,6 +63,7 @@ private:
nsCOMPtr<nsILayoutHistoryState> mLayoutHistoryState;
nsVoidArray mChildren;
PRUint32 mLoadType;
PRUint32 mID;
nsISHEntry * mParent; // weak reference
};