XPCOM:nsIEventTargetManager: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 6: Line 6:


== Proposal ==
== Proposal ==
XXX insert details


  [scriptable, uuid(...)]
  [scriptable, uuid(...)]

Revision as of 19:45, 9 November 2005

Summary

Provide an interface that exposes our event queue system in a freezable and scriptable fashion.

nsIEventTarget abstracts the posting of a PLEvent to a thread event queue. It is currently implemented by nsEventQueue, nsSocketTransportService, and nsIOThreadPool. Most consumers only know how to work with a nsIEventQueue, which is only implemented by the nsEventQueue class.

Proposal

XXX insert details

[scriptable, uuid(...)]
interface nsIEventTargetManager : nsISupports {
  void post(in nsIEventTarget target, in nsIRunnable runnable,
            in boolean synchronous);
  nsIEventTarget getEventTarget(in ACString name);
  nsIEventTarget setEventTarget(in ACString name, in nsIEventTarget);
};