Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsIJSEventListener.h File Reference
#include "nsIScriptContext.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsIJSEventListener

Defines

#define NS_IJSEVENTLISTENER_IID

Functions

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

Define Documentation

Value:
{ 0xa6cf9118, 0x15b3, 0x11d2,       \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }

Definition at line 48 of file nsIJSEventListener.h.


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: