Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsNSSEvent.h File Reference
#include "nsIRunnable.h"
#include "nsIEventQueueService.h"
#include "nsIEventQueue.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

already_AddRefed< nsIEventQueuensNSSEventGetUIEventQueue ()
nsresult nsNSSEventPostToUIEventQueue (nsIRunnable *event)

Function Documentation

Definition at line 59 of file nsNSSEvent.cpp.

{
  nsresult rv;
  nsCOMPtr<nsIEventQueueService> service = 
                        do_GetService(NS_EVENTQUEUESERVICE_CONTRACTID, &rv);
  if (NS_FAILED(rv)) 
    return nsnull;
  
  nsIEventQueue* result = nsnull;
  rv = service->GetThreadEventQueue(NS_UI_THREAD, &result);
  if (NS_FAILED(rv)) 
    return nsnull;
  
  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 77 of file nsNSSEvent.cpp.

{
  nsNSSEventRunnable *runnable = new nsNSSEventRunnable(event);
  if (!runnable) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  nsCOMPtr<nsIEventQueue>uiQueue = nsNSSEventGetUIEventQueue();
  uiQueue->PostEvent(runnable);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: