The nsIThreadEventFilter interface may be implemented to determine whether or not an event may be accepted by a nested event queue; see nsIThreadInternal.PushEventQueue() for more information.

You should implement this interface and its acceptEvent() method, then pass the object implementing it as the filter.

xpcom/threads/nsIThreadInternal.idlScriptable
Please add a summary to this article.
  Last changed in Gecko 1.9 (Firefox 3)

Inherits from: nsISupports

Method overview

boolean acceptEvent(in nsIRunnable event);Violates the XPCOM interface guidelines

Methods

Violates the XPCOM interface guidelines

acceptEvent()

This method is called to determine whether or not an event may be accepted by a nested event queue. (see nsIThreadInternal.PushEventQueue())

Warning: This method must not make any calls on the thread object.

boolean acceptEvent(
  in nsIRunnable event
);
Parameters
event
The event being dispatched.
Return value

Implement this method to return true if the event is accepted, or false to reject it.

See also