Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Protected Attributes
nsIJSEventListener Class Reference

#include <nsIJSEventListener.h>

Inheritance diagram for nsIJSEventListener:
Inheritance graph
Collaboration diagram for nsIJSEventListener:
Collaboration graph

List of all members.

Public Member Functions

 nsIJSEventListener (nsIScriptContext *aContext, JSObject *aScopeObject, nsISupports *aTarget)
nsIScriptContextGetEventContext ()
nsISupports * GetEventTarget ()
JSObjectGetEventScope ()
virtual void SetEventName (nsIAtom *aName)=0

Protected Member Functions

 ~nsIJSEventListener ()

Protected Attributes

nsISupports * mTarget

Detailed Description

Definition at line 54 of file nsIJSEventListener.h.

Constructor & Destructor Documentation

nsIJSEventListener::nsIJSEventListener ( nsIScriptContext aContext,
JSObject aScopeObject,
nsISupports *  aTarget 
) [inline]

Definition at line 59 of file nsIJSEventListener.h.

    : mContext(aContext), mScopeObject(aScopeObject), mTarget(aTarget)
    // mTarget is a weak reference. We are guaranteed because of the
    // ownership model that the target will be freed (and the
    // references dropped) before either the context or the owner goes
    // away.

nsIJSEventListener::~nsIJSEventListener ( ) [inline, protected]

Definition at line 89 of file nsIJSEventListener.h.

Member Function Documentation

Definition at line 71 of file nsIJSEventListener.h.

    return mContext;

Definition at line 81 of file nsIJSEventListener.h.

    return mScopeObject;
nsISupports* nsIJSEventListener::GetEventTarget ( ) [inline]

Definition at line 76 of file nsIJSEventListener.h.

    return mTarget;
virtual void nsIJSEventListener::SetEventName ( nsIAtom aName) [pure virtual]

Implemented in nsJSEventListener.

Member Data Documentation

Definition at line 94 of file nsIJSEventListener.h.

Definition at line 95 of file nsIJSEventListener.h.

nsISupports* nsIJSEventListener::mTarget [protected]

Definition at line 96 of file nsIJSEventListener.h.

The documentation for this class was generated from the following file: