For some reason, javadom wouldn't compile today unless I changed
nativeDOMProxyListener.cpp nativeDOMProxyListener.h To use NS_IMETHODIMP, NS_IMETHOD instead of virtual nsresult. git-svn-id: svn://10.0.0.236/trunk@94510 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -59,7 +59,7 @@ NativeDOMProxyListener::~NativeDOMProxyListener()
|
||||
}
|
||||
}
|
||||
|
||||
nsresult NativeDOMProxyListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
NS_IMETHODIMP NativeDOMProxyListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
{
|
||||
jobject jevent;
|
||||
JNIEnv *env;
|
||||
@@ -92,7 +92,7 @@ nsresult NativeDOMProxyListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult NativeDOMProxyListener::QueryInterface(const nsIID &aIID, void **aResult)
|
||||
NS_IMETHODIMP NativeDOMProxyListener::QueryInterface(const nsIID &aIID, void **aResult)
|
||||
{
|
||||
if (aResult == NULL) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
@@ -115,12 +115,12 @@ nsresult NativeDOMProxyListener::QueryInterface(const nsIID &aIID, void **aResul
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsrefcnt NativeDOMProxyListener::AddRef()
|
||||
NS_IMETHODIMP_(nsrefcnt) NativeDOMProxyListener::AddRef()
|
||||
{
|
||||
return mRefCnt++;
|
||||
}
|
||||
|
||||
nsrefcnt NativeDOMProxyListener::Release()
|
||||
NS_IMETHODIMP_(nsrefcnt) NativeDOMProxyListener::Release()
|
||||
{
|
||||
if (--mRefCnt == 0) {
|
||||
delete this;
|
||||
|
||||
@@ -17,7 +17,7 @@ class NativeDOMProxyListener: public nsIDOMEventListener{
|
||||
|
||||
NativeDOMProxyListener(JNIEnv *env, jobject jlistener);
|
||||
|
||||
virtual nsresult HandleEvent(nsIDOMEvent* aEvent);
|
||||
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
|
||||
|
||||
NS_IMETHOD QueryInterface(const nsIID &aIID, void **aResult);
|
||||
NS_IMETHOD_(nsrefcnt) AddRef(void);
|
||||
|
||||
Reference in New Issue
Block a user