Adding a few more functions to nsIEventQueue.

Moving proxy to use nsIEventQueue instead of PLEvents direct.
This commit is contained in:
dougt@netscape.com
1999-05-29 22:50:25 +00:00
parent 82e3f7166f
commit df100f4d70
8 changed files with 154 additions and 50 deletions

View File

@@ -70,6 +70,41 @@ nsEventQueueImpl::PostSynchronousEvent(PLEvent* aEvent, void** aResult)
return NS_OK;
}
NS_IMETHODIMP
nsEventQueueImpl::EnterMonitor()
{
PL_ENTER_EVENT_QUEUE_MONITOR(mEventQueue);
return NS_OK;
}
NS_IMETHODIMP
nsEventQueueImpl::ExitMonitor()
{
PL_EXIT_EVENT_QUEUE_MONITOR(mEventQueue);
return NS_OK;
}
NS_IMETHODIMP
nsEventQueueImpl::RevokeEvents(void* owner)
{
PL_RevokeEvents(mEventQueue, owner);
return NS_OK;
}
NS_IMETHODIMP
nsEventQueueImpl::GetPLEventQueue(PLEventQueue** aEventQueue)
{
*aEventQueue = mEventQueue;
if (mEventQueue == NULL)
return NS_ERROR_NULL_POINTER;
return NS_OK;
}
NS_IMETHODIMP
nsEventQueueImpl::ProcessPendingEvents()
{