Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsJSEventListener.cpp File Reference
#include "nsJSEventListener.h"
#include "nsJSUtils.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsIServiceManager.h"
#include "nsIJSContextStack.h"
#include "nsIScriptSecurityManager.h"
#include "nsIScriptContext.h"
#include "nsIXPConnect.h"
#include "nsIPrivateDOMEvent.h"
#include "nsGUIEvent.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Functions

nsresult NS_NewJSEventListener (nsIScriptContext *aContext, JSObject *aScopeObject, nsISupports *aObject, nsIDOMEventListener **aReturn)

Function Documentation

nsresult NS_NewJSEventListener ( nsIScriptContext aContext,
JSObject aScopeObject,
nsISupports *  aObject,
nsIDOMEventListener **  aReturn 
)

Definition at line 235 of file nsJSEventListener.cpp.

{
  nsJSEventListener* it =
    new nsJSEventListener(aContext, aScopeObject, aObject);
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aReturn = it);

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: