Bug 378102, Remove nsIDOMEventReceiver::HandleEvent r+sr=jst

This commit is contained in:
Olli.Pettay@helsinki.fi 2007-04-19 16:20:29 -07:00
parent 08cecdf0a8
commit 8df77090be
11 changed files with 3 additions and 47 deletions

View File

@ -4559,13 +4559,6 @@ nsDocument::GetListenerManager(PRBool aCreateIfNotFound,
return NS_OK;
}
nsresult
nsDocument::HandleEvent(nsIDOMEvent *aEvent)
{
PRBool defaultActionEnabled;
return DispatchEvent(aEvent, &defaultActionEnabled);
}
NS_IMETHODIMP
nsDocument::GetSystemEventGroup(nsIDOMEventGroup **aGroup)
{

View File

@ -608,7 +608,6 @@ public:
const nsIID& aIID);
NS_IMETHOD GetListenerManager(PRBool aCreateIfNotFound,
nsIEventListenerManager** aResult);
NS_IMETHOD HandleEvent(nsIDOMEvent *aEvent);
NS_IMETHOD GetSystemEventGroup(nsIDOMEventGroup** aGroup);
// nsIDOMEventTarget

View File

@ -815,16 +815,6 @@ nsDOMEventRTTearoff::GetListenerManager(PRBool aCreateIfNotFound,
return mContent->GetListenerManager(aCreateIfNotFound, aResult);
}
NS_IMETHODIMP
nsDOMEventRTTearoff::HandleEvent(nsIDOMEvent *aEvent)
{
nsCOMPtr<nsIDOMEventReceiver> event_receiver;
nsresult rv = GetEventReceiver(getter_AddRefs(event_receiver));
NS_ENSURE_SUCCESS(rv, rv);
return event_receiver->HandleEvent(aEvent);
}
NS_IMETHODIMP
nsDOMEventRTTearoff::GetSystemEventGroup(nsIDOMEventGroup **aGroup)
{

View File

@ -281,7 +281,6 @@ public:
const nsIID& aIID);
NS_IMETHOD GetListenerManager(PRBool aCreateIfNotFound,
nsIEventListenerManager** aResult);
NS_IMETHOD HandleEvent(nsIDOMEvent *aEvent);
NS_IMETHOD GetSystemEventGroup(nsIDOMEventGroup** aGroup);
// nsIDOMNSEventTarget

View File

@ -1392,13 +1392,6 @@ nsEventListenerManager::GetListenerManager(PRBool aCreateIfNotFound,
NS_ADDREF(*aResult = this);
return NS_OK;
}
NS_IMETHODIMP
nsEventListenerManager::HandleEvent(nsIDOMEvent *aEvent)
{
PRBool defaultActionEnabled;
return DispatchEvent(aEvent, &defaultActionEnabled);
}
NS_IMETHODIMP
nsEventListenerManager::GetSystemEventGroup(nsIDOMEventGroup **aGroup)

View File

@ -144,7 +144,6 @@ public:
const nsIID& aIID);
NS_IMETHOD GetListenerManager(PRBool aCreateIfNotFound,
nsIEventListenerManager** aResult);
NS_IMETHOD HandleEvent(nsIDOMEvent *aEvent);
NS_IMETHOD GetSystemEventGroup(nsIDOMEventGroup** aGroup);
static void Shutdown();

View File

@ -50,10 +50,10 @@ class nsIDOMEventGroup;
* distribution from themselves implement this interface.
*/
/* 2fa04cfb-2494-41e5-ba76-9a79293eeb7e */
/* 025957f3-7b19-452b-89a1-9be652d8d6db */
#define NS_IDOMEVENTRECEIVER_IID \
{0x2fa04cfb, 0x2494, 0x41e5, \
{ 0xba, 0x76, 0x9a, 0x79, 0x29, 0x3e, 0xeb, 0x7e } }
{ 0x025957f3, 0x7b19, 0x452b, \
{ 0x89, 0xa1, 0x9b, 0xe6, 0x52, 0xd8, 0xd6, 0xdb } }
class nsIDOMEventReceiver : public nsIDOMEventTarget
{
@ -66,7 +66,6 @@ public:
const nsIID& aIID) = 0;
NS_IMETHOD GetListenerManager(PRBool aCreateIfNotFound,
nsIEventListenerManager** aResult) = 0;
NS_IMETHOD HandleEvent(nsIDOMEvent *aEvent) = 0;
NS_IMETHOD GetSystemEventGroup(nsIDOMEventGroup** aGroup) = 0;
};

View File

@ -5608,13 +5608,6 @@ nsGlobalWindow::GetListenerManager(PRBool aCreateIfNotFound,
return NS_OK;
}
NS_IMETHODIMP
nsGlobalWindow::HandleEvent(nsIDOMEvent *aEvent)
{
PRBool defaultActionEnabled;
return DispatchEvent(aEvent, &defaultActionEnabled);
}
NS_IMETHODIMP
nsGlobalWindow::GetSystemEventGroup(nsIDOMEventGroup **aGroup)
{

View File

@ -285,7 +285,6 @@ public:
const nsIID& aIID);
NS_IMETHOD GetListenerManager(PRBool aCreateIfNotFound,
nsIEventListenerManager** aResult);
NS_IMETHOD HandleEvent(nsIDOMEvent *aEvent);
NS_IMETHOD GetSystemEventGroup(nsIDOMEventGroup** aGroup);
// nsPIDOMWindow

View File

@ -230,13 +230,6 @@ nsWindowRoot::GetListenerManager(PRBool aCreateIfNotFound,
return NS_OK;
}
NS_IMETHODIMP
nsWindowRoot::HandleEvent(nsIDOMEvent *aEvent)
{
PRBool defaultActionEnabled;
return DispatchEvent(aEvent, &defaultActionEnabled);
}
NS_IMETHODIMP
nsWindowRoot::GetSystemEventGroup(nsIDOMEventGroup **aGroup)
{

View File

@ -82,7 +82,6 @@ public:
NS_IMETHOD RemoveEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID);
NS_IMETHOD GetListenerManager(PRBool aCreateIfNotFound,
nsIEventListenerManager** aResult);
NS_IMETHOD HandleEvent(nsIDOMEvent *aEvent);
NS_IMETHOD GetSystemEventGroup(nsIDOMEventGroup** aGroup);
// nsPIWindowRoot