Fix for bug 26732. r=danm. event queue need to be able to init a plevent

This commit is contained in:
dougt%netscape.com 2000-02-09 02:28:51 +00:00
Родитель bca2380015
Коммит 48219cc034
3 изменённых файлов: 22 добавлений и 3 удалений

Просмотреть файл

@ -135,6 +135,19 @@ nsEventQueueImpl::NotifyObservers(const char *aTopic)
os->Notify(us, topic.GetUnicode(), NULL);
}
NS_IMETHODIMP
nsEventQueueImpl::InitEvent(PLEvent* aEvent,
void* owner,
PLHandleEventProc handler,
PLDestroyEventProc destructor)
{
PL_InitEvent(aEvent, owner, handler, destructor);
return NS_OK;
}
NS_IMETHODIMP_(PRStatus)
nsEventQueueImpl::PostEvent(PLEvent* aEvent)
{

Просмотреть файл

@ -36,7 +36,10 @@ public:
NS_DECL_ISUPPORTS
// nsIEventQueue interface...
NS_IMETHOD_(PRStatus) PostEvent(PLEvent* aEvent);
NS_IMETHOD InitEvent(PLEvent* aEvent, void* owner,
PLHandleEventProc handler, PLDestroyEventProc destructor);
NS_IMETHOD_(PRStatus) PostEvent(PLEvent* aEvent);
NS_IMETHOD PostSynchronousEvent(PLEvent* aEvent, void** aResult);
NS_IMETHOD ProcessPendingEvents();

Просмотреть файл

@ -42,8 +42,11 @@ class nsIEventQueue : public nsISupports
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEVENTQUEUE_IID);
NS_IMETHOD_(PRStatus) PostEvent(PLEvent* aEvent) = 0;
NS_IMETHOD InitEvent(PLEvent* aEvent, void* owner,
PLHandleEventProc handler, PLDestroyEventProc destructor) = 0;
NS_IMETHOD_(PRStatus) PostEvent(PLEvent* aEvent) = 0;
NS_IMETHOD PostSynchronousEvent(PLEvent* aEvent, void** aResult) = 0;
NS_IMETHOD ProcessPendingEvents() = 0;