зеркало из https://github.com/mozilla/gecko-dev.git
New session history methods Set/GetHistoryObjectForUrl()
This commit is contained in:
Родитель
db8d6a8711
Коммит
82f78cfc28
|
@ -2026,6 +2026,24 @@ nsBrowserAppCore::SetTitleForIndex(PRInt32 aIndex, const PRUnichar* aTitle)
|
|||
mSHistory->SetTitleForIndex(aIndex, aTitle);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsBrowserAppCore::GetHistoryObjectForIndex(PRInt32 aIndex, nsISupports ** aState)
|
||||
{
|
||||
|
||||
if (mSHistory)
|
||||
mSHistory->GetHistoryObjectForIndex(aIndex, aState);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsBrowserAppCore::SetHistoryObjectForIndex(PRInt32 aIndex, nsISupports * aState)
|
||||
{
|
||||
if (mSHistory)
|
||||
mSHistory->SetHistoryObjectForIndex(aIndex, aState);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
NS_IMETHODIMP
|
||||
cloneHistory(nsISessionHistory * aSessionHistory) {
|
||||
|
|
|
@ -132,6 +132,9 @@ class nsBrowserInstance : public nsIBrowserInstance,
|
|||
|
||||
NS_IMETHOD SetTitleForIndex(PRInt32 aIndex, const PRUnichar * aTitle);
|
||||
|
||||
NS_IMETHOD GetHistoryObjectForIndex(PRInt32 aIndex, nsISupports ** aState);
|
||||
|
||||
NS_IMETHOD SetHistoryObjectForIndex(PRInt32 aIndex, nsISupports * aState);
|
||||
|
||||
protected:
|
||||
NS_IMETHOD DoDialog();
|
||||
|
|
Загрузка…
Ссылка в новой задаче