зеркало из https://github.com/mozilla/gecko-dev.git
Removed BeginDocumentLoad/EndDocumentLoad. This functionality is handled by OnStatusNetStart/OnStatusNetStop.
This commit is contained in:
Родитель
a883264dcd
Коммит
cb2d3585f7
|
@ -318,7 +318,7 @@ NS_METHOD CBrowserWindow::SetLocation(const nsString& aLocation)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD CBrowserWindow::BeginDocumentLoad(nsIDocumentLoader *aLoader, nsIURI *aURL, const char *aCommand)
|
||||
NS_METHOD CBrowserWindow::OnStatusNetStart(nsIChannel *aChannel)
|
||||
{
|
||||
// Stop the throbber
|
||||
if (mThrobber)
|
||||
|
@ -332,11 +332,11 @@ NS_METHOD CBrowserWindow::BeginDocumentLoad(nsIDocumentLoader *aLoader, nsIURI *
|
|||
// broadcasters and listeners. But for demo's sake this
|
||||
// better shows what's happening.
|
||||
LBroadcaster::BroadcastMessage(msg_OnStartLoadDocument, 0);
|
||||
|
||||
return NS_OK;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD CBrowserWindow::EndDocumentLoad(nsIDocumentLoader *loader, nsIChannel *aChannel, PRUint32 aStatus)
|
||||
NS_METHOD CBrowserWindow::OnStatusNetStop(nsIChannel *aChannel)
|
||||
{
|
||||
// Stop the throbber
|
||||
if (mThrobber)
|
||||
|
@ -355,18 +355,7 @@ NS_METHOD CBrowserWindow::EndDocumentLoad(nsIDocumentLoader *loader, nsIChannel
|
|||
// broadcasters and listeners. But for demo's sake this
|
||||
// better shows what's happening.
|
||||
LBroadcaster::BroadcastMessage(msg_OnEndLoadDocument, 0);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_METHOD CBrowserWindow::OnStatusNetStart(nsIChannel *aChannel)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD CBrowserWindow::OnStatusNetStop(nsIChannel *aChannel)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,9 +90,6 @@ protected:
|
|||
|
||||
NS_METHOD SetLocation(const nsString& aLocation);
|
||||
|
||||
NS_METHOD BeginDocumentLoad(nsIDocumentLoader *aLoader, nsIURI *aURL, const char *aCommand);
|
||||
NS_METHOD EndDocumentLoad(nsIDocumentLoader *loader, nsIChannel *aChannel, PRUint32 aStatus);
|
||||
|
||||
NS_METHOD OnStatusNetStart(nsIChannel *aChannel);
|
||||
NS_METHOD OnStatusNetStop(nsIChannel *aChannel);
|
||||
NS_METHOD OnStatusDNS(nsIChannel *aChannel);
|
||||
|
|
Загрузка…
Ссылка в новой задаче