mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
added the HandleEvent method
This commit is contained in:
parent
9326b06773
commit
d459a0bb4b
@ -133,6 +133,13 @@ nsEventQueueImpl::GetEvent(PLEvent** aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsEventQueueImpl::HandleEvent(PLEvent* aEvent)
|
||||
{
|
||||
PL_HandleEvent(aEvent);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(PRInt32)
|
||||
nsEventQueueImpl::GetEventQueueSelectFD()
|
||||
{
|
||||
|
@ -40,6 +40,7 @@ public:
|
||||
|
||||
NS_IMETHOD EventAvailable(PRBool& aResult);
|
||||
NS_IMETHOD GetEvent(PLEvent** aResult);
|
||||
NS_IMETHOD HandleEvent(PLEvent* aEvent);
|
||||
|
||||
NS_IMETHOD_(PRInt32) GetEventQueueSelectFD();
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
class nsIEventQueue : public nsISupports
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IEVENTQUEUE_IID; return iid;}
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEVENTQUEUE_IID);
|
||||
|
||||
NS_IMETHOD_(PRStatus) PostEvent(PLEvent* aEvent) = 0;
|
||||
NS_IMETHOD PostSynchronousEvent(PLEvent* aEvent, void** aResult) = 0;
|
||||
@ -48,6 +48,7 @@ public:
|
||||
|
||||
NS_IMETHOD EventAvailable(PRBool& aResult) = 0;
|
||||
NS_IMETHOD GetEvent(PLEvent** aResult) = 0;
|
||||
NS_IMETHOD HandleEvent(PLEvent* aEvent) = 0;
|
||||
|
||||
NS_IMETHOD_(PRInt32) GetEventQueueSelectFD() = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user