XPCOM:nsIThreadManager: Difference between revisions

Line 113: Line 113:
     */
     */
   attribute nsIThreadObserver observer;
   attribute nsIThreadObserver observer;
   
  /**
    * This method causes any events currently enqueued on the thread to be
    * suppressed until PopEventQueue is called.  Additionally, any new events
    * dispatched to the thread will only be processed if they are accepted by
    * the given filter.  If the filter is null, then new events are accepted.
    * Calls to PushEventQueue may be nested and must each be paired with a call
    * to PopEventQueue in order to restore the original state of the thread.
    */
  void pushEventQueue(in nsIThreadEventFilter filter);
                                                                                                                                                                         
  /**
    * Revert a call to PushEventQueue.  When an event queue is popped, any
    * events remaining in the queue are appended to the elder queue.
    */
  void popEventQueue();
  };
  };
=== nsIThreadObserver ===
=== nsIThreadObserver ===
  [scriptable, uuid(...)]
  [scriptable, uuid(...)]
272

edits