зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 26732. r=danm. event queue need to be able to init a plevent
This commit is contained in:
Родитель
bca2380015
Коммит
48219cc034
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче