Back to index

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

Go to the source code of this file.

Functions

nsresult NS_GetEventQueueService (nsIEventQueueService **result)
nsresult NS_GetCurrentEventQ (nsIEventQueue **result, nsIEventQueueService *serv=nsnull)
nsresult NS_GetMainEventQ (nsIEventQueue **result, nsIEventQueueService *serv=nsnull)

Function Documentation

nsresult NS_GetCurrentEventQ ( nsIEventQueue **  result,
nsIEventQueueService serv = nsnull 
) [inline]

Definition at line 53 of file nsEventQueueUtils.h.

{
  nsCOMPtr<nsIEventQueueService> eqs;
  if (!serv) {
    nsresult rv = NS_GetEventQueueService(getter_AddRefs(eqs));
    if (NS_FAILED(rv)) return rv;
    serv = eqs;
  }
  return serv->GetThreadEventQueue(NS_CURRENT_THREAD, result);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 46 of file nsEventQueueUtils.h.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_GetMainEventQ ( nsIEventQueue **  result,
nsIEventQueueService serv = nsnull 
) [inline]

Definition at line 66 of file nsEventQueueUtils.h.

{
  nsCOMPtr<nsIEventQueueService> eqs;
  if (!serv) {
    nsresult rv = NS_GetEventQueueService(getter_AddRefs(eqs));
    if (NS_FAILED(rv)) return rv;
    serv = eqs;
  }
  return serv->GetThreadEventQueue(NS_UI_THREAD, result);
}

Here is the call graph for this function:

Here is the caller graph for this function: