From e35b415b25a39c1693fd52b35c74ace9ee032dfa Mon Sep 17 00:00:00 2001 From: "depstein%netscape.com" Date: Fri, 27 Jul 2001 01:05:03 +0000 Subject: [PATCH] updated history listener methods. --- .../qa/testembed/BrowserImplHistoryLstnr.cpp | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/embedding/qa/testembed/BrowserImplHistoryLstnr.cpp b/embedding/qa/testembed/BrowserImplHistoryLstnr.cpp index 4008124c287c..792476b419dd 100644 --- a/embedding/qa/testembed/BrowserImplHistoryLstnr.cpp +++ b/embedding/qa/testembed/BrowserImplHistoryLstnr.cpp @@ -57,7 +57,7 @@ NS_IMETHODIMP CBrowserImpl::OnHistoryNewEntry(nsIURI *theUri) { CQaUtils::QAOutput("nsIHistoryListener::OnHistoryNewEntry()", 2); - CQaUtils::GetTheUri(theUri, 2); + CQaUtils::GetTheUri(theUri, 1); return NS_OK; } @@ -67,7 +67,9 @@ NS_IMETHODIMP CBrowserImpl::OnHistoryGoBack(nsIURI *theUri, PRBool *notify) { CQaUtils::QAOutput("nsIHistoryListener::OnHistoryGoBack()", 2); - CQaUtils::GetTheUri(theUri, 2); + CQaUtils::GetTheUri(theUri, 1); + *notify = PR_TRUE; + CQaUtils::FormatAndPrintOutput("OnHistoryGoBack() notification = ", *notify, 1); return NS_OK; } @@ -76,7 +78,9 @@ NS_IMETHODIMP CBrowserImpl::OnHistoryGoForward(nsIURI *theUri, PRBool *notify) { CQaUtils::QAOutput("nsIHistoryListener::OnHistoryGoForward()", 2); - CQaUtils::GetTheUri(theUri, 2); + CQaUtils::GetTheUri(theUri, 1); + *notify = PR_TRUE; + CQaUtils::FormatAndPrintOutput("OnHistoryGoForward() notification = ", *notify, 1); return NS_OK; } @@ -85,7 +89,9 @@ NS_IMETHODIMP CBrowserImpl::OnHistoryReload(nsIURI *theUri, PRUint32 reloadFlags { CQaUtils::QAOutput("nsIHistoryListener::OnHistoryReload()", 2); - CQaUtils::GetTheUri(theUri, 2); + CQaUtils::GetTheUri(theUri, 1); + *notify = PR_TRUE; + CQaUtils::FormatAndPrintOutput("OnHistoryReload() notification = ", *notify, 1); return NS_OK; } @@ -94,7 +100,9 @@ NS_IMETHODIMP CBrowserImpl::OnHistoryGotoIndex(PRInt32 theIndex, nsIURI *theUri, { CQaUtils::QAOutput("nsIHistoryListener::OnHistoryGotoIndex()", 2); - CQaUtils::GetTheUri(theUri, 2); + CQaUtils::GetTheUri(theUri, 1); + *notify = PR_TRUE; + CQaUtils::FormatAndPrintOutput("OnHistoryGotoIndex() notification = ", *notify, 1); return NS_OK; } @@ -103,6 +111,9 @@ NS_IMETHODIMP CBrowserImpl::OnHistoryPurge(PRInt32 theNumEntries, PRBool *notify { CQaUtils::QAOutput("nsIHistoryListener::OnHistoryPurge()", 2); + *notify = PR_TRUE; + CQaUtils::FormatAndPrintOutput("OnHistoryPurge() notification = ", *notify, 1); + return NS_OK; }