From 48f3c371476a016f49e01dea278f8f28c0ae1f12 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Thu, 23 May 2002 11:19:51 +0000 Subject: [PATCH] Updates for api changes (signed->unsigned) --- camino/CHBrowserView.mm | 21 +++++++------------ camino/ProgressDlgController.mm | 14 +++++-------- camino/src/download/ProgressDlgController.mm | 14 +++++-------- camino/src/embedding/CHBrowserView.mm | 21 +++++++------------ chimera/CHBrowserView.mm | 21 +++++++------------ chimera/ProgressDlgController.mm | 14 +++++-------- chimera/src/download/ProgressDlgController.mm | 14 +++++-------- chimera/src/embedding/CHBrowserView.mm | 21 +++++++------------ 8 files changed, 52 insertions(+), 88 deletions(-) diff --git a/camino/CHBrowserView.mm b/camino/CHBrowserView.mm index cc563699bbb..cd3a4c21f15 100644 --- a/camino/CHBrowserView.mm +++ b/camino/CHBrowserView.mm @@ -541,10 +541,10 @@ nsCocoaBrowserListener::GetSiteWindow(void * *aSiteWindow) // Implementation of nsIWebProgressListener // -/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ +/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP nsCocoaBrowserListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, - PRInt32 aStateFlags, PRUint32 aStatus) + PRUint32 aStateFlags, PRUint32 aStatus) { NSEnumerator* enumerator = [mListeners objectEnumerator]; id obj; @@ -613,10 +613,9 @@ nsCocoaBrowserListener::OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsCocoaBrowserListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, - PRInt32 state) +nsCocoaBrowserListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { NSEnumerator* enumerator = [mListeners objectEnumerator]; id obj; @@ -698,10 +697,8 @@ NS_IMPL_ISUPPORTS1(nsHeaderSniffer, nsIWebProgressListener) // Implementation of nsIWebProgressListener /* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP -nsHeaderSniffer::OnStateChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 aStateFlags, - PRUint32 aStatus) +nsHeaderSniffer::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, + PRUint32 aStatus) { if (aStateFlags & nsIWebProgressListener::STATE_START) { nsCOMPtr channel(do_QueryInterface(aRequest)); @@ -901,11 +898,9 @@ nsHeaderSniffer::OnStatusChange(nsIWebProgress *aWebProgress, return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsHeaderSniffer::OnSecurityChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 state) +nsHeaderSniffer::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { return NS_OK; } diff --git a/camino/ProgressDlgController.mm b/camino/ProgressDlgController.mm index 6e46a83bd47..36c84c569e7 100644 --- a/camino/ProgressDlgController.mm +++ b/camino/ProgressDlgController.mm @@ -138,22 +138,18 @@ nsDownloadListener::OnStatusChange(nsIWebProgress *aWebProgress, return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsDownloadListener::OnSecurityChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 state) +nsDownloadListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { return NS_OK; } // Implementation of nsIWebProgressListener -/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ +/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP -nsDownloadListener::OnStateChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 aStateFlags, - PRUint32 aStatus) +nsDownloadListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, + PRUint32 aStatus) { return NS_OK; } diff --git a/camino/src/download/ProgressDlgController.mm b/camino/src/download/ProgressDlgController.mm index 6e46a83bd47..36c84c569e7 100644 --- a/camino/src/download/ProgressDlgController.mm +++ b/camino/src/download/ProgressDlgController.mm @@ -138,22 +138,18 @@ nsDownloadListener::OnStatusChange(nsIWebProgress *aWebProgress, return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsDownloadListener::OnSecurityChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 state) +nsDownloadListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { return NS_OK; } // Implementation of nsIWebProgressListener -/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ +/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP -nsDownloadListener::OnStateChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 aStateFlags, - PRUint32 aStatus) +nsDownloadListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, + PRUint32 aStatus) { return NS_OK; } diff --git a/camino/src/embedding/CHBrowserView.mm b/camino/src/embedding/CHBrowserView.mm index cc563699bbb..cd3a4c21f15 100644 --- a/camino/src/embedding/CHBrowserView.mm +++ b/camino/src/embedding/CHBrowserView.mm @@ -541,10 +541,10 @@ nsCocoaBrowserListener::GetSiteWindow(void * *aSiteWindow) // Implementation of nsIWebProgressListener // -/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ +/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP nsCocoaBrowserListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, - PRInt32 aStateFlags, PRUint32 aStatus) + PRUint32 aStateFlags, PRUint32 aStatus) { NSEnumerator* enumerator = [mListeners objectEnumerator]; id obj; @@ -613,10 +613,9 @@ nsCocoaBrowserListener::OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsCocoaBrowserListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, - PRInt32 state) +nsCocoaBrowserListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { NSEnumerator* enumerator = [mListeners objectEnumerator]; id obj; @@ -698,10 +697,8 @@ NS_IMPL_ISUPPORTS1(nsHeaderSniffer, nsIWebProgressListener) // Implementation of nsIWebProgressListener /* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP -nsHeaderSniffer::OnStateChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 aStateFlags, - PRUint32 aStatus) +nsHeaderSniffer::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, + PRUint32 aStatus) { if (aStateFlags & nsIWebProgressListener::STATE_START) { nsCOMPtr channel(do_QueryInterface(aRequest)); @@ -901,11 +898,9 @@ nsHeaderSniffer::OnStatusChange(nsIWebProgress *aWebProgress, return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsHeaderSniffer::OnSecurityChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 state) +nsHeaderSniffer::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { return NS_OK; } diff --git a/chimera/CHBrowserView.mm b/chimera/CHBrowserView.mm index cc563699bbb..cd3a4c21f15 100644 --- a/chimera/CHBrowserView.mm +++ b/chimera/CHBrowserView.mm @@ -541,10 +541,10 @@ nsCocoaBrowserListener::GetSiteWindow(void * *aSiteWindow) // Implementation of nsIWebProgressListener // -/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ +/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP nsCocoaBrowserListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, - PRInt32 aStateFlags, PRUint32 aStatus) + PRUint32 aStateFlags, PRUint32 aStatus) { NSEnumerator* enumerator = [mListeners objectEnumerator]; id obj; @@ -613,10 +613,9 @@ nsCocoaBrowserListener::OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsCocoaBrowserListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, - PRInt32 state) +nsCocoaBrowserListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { NSEnumerator* enumerator = [mListeners objectEnumerator]; id obj; @@ -698,10 +697,8 @@ NS_IMPL_ISUPPORTS1(nsHeaderSniffer, nsIWebProgressListener) // Implementation of nsIWebProgressListener /* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP -nsHeaderSniffer::OnStateChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 aStateFlags, - PRUint32 aStatus) +nsHeaderSniffer::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, + PRUint32 aStatus) { if (aStateFlags & nsIWebProgressListener::STATE_START) { nsCOMPtr channel(do_QueryInterface(aRequest)); @@ -901,11 +898,9 @@ nsHeaderSniffer::OnStatusChange(nsIWebProgress *aWebProgress, return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsHeaderSniffer::OnSecurityChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 state) +nsHeaderSniffer::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { return NS_OK; } diff --git a/chimera/ProgressDlgController.mm b/chimera/ProgressDlgController.mm index 6e46a83bd47..36c84c569e7 100644 --- a/chimera/ProgressDlgController.mm +++ b/chimera/ProgressDlgController.mm @@ -138,22 +138,18 @@ nsDownloadListener::OnStatusChange(nsIWebProgress *aWebProgress, return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsDownloadListener::OnSecurityChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 state) +nsDownloadListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { return NS_OK; } // Implementation of nsIWebProgressListener -/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ +/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP -nsDownloadListener::OnStateChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 aStateFlags, - PRUint32 aStatus) +nsDownloadListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, + PRUint32 aStatus) { return NS_OK; } diff --git a/chimera/src/download/ProgressDlgController.mm b/chimera/src/download/ProgressDlgController.mm index 6e46a83bd47..36c84c569e7 100644 --- a/chimera/src/download/ProgressDlgController.mm +++ b/chimera/src/download/ProgressDlgController.mm @@ -138,22 +138,18 @@ nsDownloadListener::OnStatusChange(nsIWebProgress *aWebProgress, return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsDownloadListener::OnSecurityChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 state) +nsDownloadListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { return NS_OK; } // Implementation of nsIWebProgressListener -/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ +/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP -nsDownloadListener::OnStateChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 aStateFlags, - PRUint32 aStatus) +nsDownloadListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, + PRUint32 aStatus) { return NS_OK; } diff --git a/chimera/src/embedding/CHBrowserView.mm b/chimera/src/embedding/CHBrowserView.mm index cc563699bbb..cd3a4c21f15 100644 --- a/chimera/src/embedding/CHBrowserView.mm +++ b/chimera/src/embedding/CHBrowserView.mm @@ -541,10 +541,10 @@ nsCocoaBrowserListener::GetSiteWindow(void * *aSiteWindow) // Implementation of nsIWebProgressListener // -/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ +/* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP nsCocoaBrowserListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, - PRInt32 aStateFlags, PRUint32 aStatus) + PRUint32 aStateFlags, PRUint32 aStatus) { NSEnumerator* enumerator = [mListeners objectEnumerator]; id obj; @@ -613,10 +613,9 @@ nsCocoaBrowserListener::OnStatusChange(nsIWebProgress *aWebProgress, nsIRequest return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsCocoaBrowserListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, - PRInt32 state) +nsCocoaBrowserListener::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { NSEnumerator* enumerator = [mListeners objectEnumerator]; id obj; @@ -698,10 +697,8 @@ NS_IMPL_ISUPPORTS1(nsHeaderSniffer, nsIWebProgressListener) // Implementation of nsIWebProgressListener /* void onStateChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aStateFlags, in unsigned long aStatus); */ NS_IMETHODIMP -nsHeaderSniffer::OnStateChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 aStateFlags, - PRUint32 aStatus) +nsHeaderSniffer::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, + PRUint32 aStatus) { if (aStateFlags & nsIWebProgressListener::STATE_START) { nsCOMPtr channel(do_QueryInterface(aRequest)); @@ -901,11 +898,9 @@ nsHeaderSniffer::OnStatusChange(nsIWebProgress *aWebProgress, return NS_OK; } -/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */ +/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in unsigned long state); */ NS_IMETHODIMP -nsHeaderSniffer::OnSecurityChange(nsIWebProgress *aWebProgress, - nsIRequest *aRequest, - PRInt32 state) +nsHeaderSniffer::OnSecurityChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 state) { return NS_OK; }