зеркало из https://github.com/mozilla/pjs.git
1) Adding an eventsinkgetter interface so that when 13894 become unblocked (when gagan
checks in his protocol messages) we will automatically get onStatus and onProgress notification. reviewed by dveditz.
This commit is contained in:
Родитель
0b18ce0ebf
Коммит
ac304df2ec
|
@ -436,6 +436,15 @@ nsXPInstallManager::OnStatus(nsIChannel *channel, nsISupports *ctxt, const PRUni
|
|||
return mProxy->SetActionText(aMsg);
|
||||
}
|
||||
|
||||
// nsIEventSinkGetter method
|
||||
NS_IMETHODIMP
|
||||
nsXPInstallManager::GetEventSink(const char *command, const nsIID & eventSinkIID, nsISupports **_retval)
|
||||
{
|
||||
if (nsCRT::strcmp(command, "load") == 0) // what is the correct verb?
|
||||
return QueryInterface(eventSinkIID, (void**)_retval);
|
||||
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// IXPINotifier methods
|
||||
|
||||
|
@ -517,8 +526,6 @@ nsXPInstallManager::LogComment(const PRUnichar* comment)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// nsIXULWindowCallbacks
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -46,11 +46,14 @@
|
|||
#include "nsIWebShellWindow.h"
|
||||
#include "nsIXULWindowCallbacks.h"
|
||||
#include "nsIProgressEventSink.h"
|
||||
#include "nsIEventSinkGetter.h"
|
||||
|
||||
|
||||
|
||||
class nsXPInstallManager : public nsIXPINotifier,
|
||||
public nsIStreamListener,
|
||||
public nsIProgressEventSink,
|
||||
public nsIEventSinkGetter,
|
||||
public nsIXULWindowCallbacks
|
||||
{
|
||||
public:
|
||||
|
@ -73,6 +76,9 @@ class nsXPInstallManager : public nsIXPINotifier,
|
|||
// nsIProgressEventSink
|
||||
NS_DECL_NSIPROGRESSEVENTSINK
|
||||
|
||||
// nsIEventSinkGetter
|
||||
NS_DECL_NSIEVENTSINKGETTER
|
||||
|
||||
// IXULWindowCallbacks methods
|
||||
NS_IMETHOD ConstructBeforeJavaScript(nsIWebShell *aWebShell);
|
||||
NS_IMETHOD ConstructAfterJavaScript(nsIWebShell *aWebShell);
|
||||
|
|
Загрузка…
Ссылка в новой задаче