mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
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:
parent
6de12fbdda
commit
57ccbe08a6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user