зеркало из https://github.com/mozilla/gecko-dev.git
Finished implementing nsDocShellLoadInfo and hooked up to the build.
This commit is contained in:
Родитель
718352fd03
Коммит
178b1b8056
|
@ -43,6 +43,7 @@ XPIDLSRCS = \
|
|||
|
||||
CPPSRCS = \
|
||||
nsDocShell.cpp \
|
||||
nsDocShellLoadInfo.cpp \
|
||||
nsDSURIContentListener.cpp \
|
||||
nsDSWebProgressListener.cpp \
|
||||
$(NULL)
|
||||
|
|
|
@ -41,6 +41,7 @@ LIBRARY_NAME=basedocshell_s
|
|||
|
||||
CPP_OBJS= \
|
||||
.\$(OBJDIR)\nsDocShell.obj \
|
||||
.\$(OBJDIR)\nsDocShellLoadInfo.obj \
|
||||
.\$(OBJDIR)\nsDSURIContentListener.obj \
|
||||
.\$(OBJDIR)\nsDSWebProgressListener.obj \
|
||||
$(NULL)
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
//*** nsDocShellLoadInfo: Object Management
|
||||
//*****************************************************************************
|
||||
|
||||
nsDocShellLoadInfo::nsDocShellLoadInfo() : mReplaceHistorySlot(PR_FALSE)
|
||||
nsDocShellLoadInfo::nsDocShellLoadInfo() : mReplaceSessionHistorySlot(PR_FALSE)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
@ -61,21 +61,25 @@ NS_IMETHODIMP nsDocShellLoadInfo::GetReferrer(nsIURI** aReferrer)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETOHDIMP nsDocShellLoadInfo::SetReferrer(nsIURI* aReferrer)
|
||||
NS_IMETHODIMP nsDocShellLoadInfo::SetReferrer(nsIURI* aReferrer)
|
||||
{
|
||||
mReferrer = aReferrer;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocShellLoadInfo::
|
||||
attribute nsIURI referrer;
|
||||
NS_IMETHODIMP nsDocShellLoadInfo::GetReplaceSessionHistorySlot(PRBool* aReplace)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aReplace);
|
||||
|
||||
/*
|
||||
If set to true, this will replace the current history entry without
|
||||
adding it to session history.
|
||||
*/
|
||||
attribute boolean replaceHistorySlot;
|
||||
*aReplace = mReplaceSessionHistorySlot;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocShellLoadInfo::SetReplaceSessionHistorySlot(PRBool aReplace)
|
||||
{
|
||||
mReplaceSessionHistorySlot = aReplace;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
// nsDocShellLoadInfo: Helpers
|
||||
|
|
|
@ -45,7 +45,7 @@ protected:
|
|||
|
||||
protected:
|
||||
nsCOMPtr<nsIURI> mReferrer;
|
||||
PRBool mReplaceHistorySlot;
|
||||
PRBool mReplaceSessionHistorySlot;
|
||||
};
|
||||
|
||||
#endif /* nsDocShellLoadInfo_h__ */
|
||||
|
|
|
@ -42,5 +42,5 @@ interface nsIDocShellLoadInfo : nsISupports
|
|||
If set to true, this will replace the current history entry without
|
||||
adding it to session history.
|
||||
*/
|
||||
attribute boolean replaceHistorySlot;
|
||||
attribute boolean replaceSessionHistorySlot;
|
||||
};
|
Загрузка…
Ссылка в новой задаче