Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions | Private Attributes
nsXBLKeyEventHandler Class Reference

#include <nsXBLEventHandler.h>

Inheritance diagram for nsXBLKeyEventHandler:
Inheritance graph
[legend]
Collaboration diagram for nsXBLKeyEventHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsXBLKeyEventHandler (nsIAtom *aEventType, PRUint8 aPhase, PRUint8 aType)
virtual ~nsXBLKeyEventHandler ()
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMEVENTLISTENER
void 
AddProtoHandler (nsXBLPrototypeHandler *aProtoHandler)
PRBool Matches (nsIAtom *aEventType, PRUint8 aPhase, PRUint8 aType) const
void GetEventName (nsAString &aString) const
PRUint8 GetPhase () const
PRUint8 GetType () const
void handleEvent (in nsIDOMEvent event)
 This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Private Member Functions

 nsXBLKeyEventHandler ()

Private Attributes

nsVoidArray mProtoHandlers
nsCOMPtr< nsIAtommEventType
PRUint8 mPhase
PRUint8 mType

Detailed Description

Definition at line 83 of file nsXBLEventHandler.h.


Constructor & Destructor Documentation

nsXBLKeyEventHandler::nsXBLKeyEventHandler ( nsIAtom aEventType,
PRUint8  aPhase,
PRUint8  aType 
)

Definition at line 105 of file nsXBLEventHandler.cpp.

  : mEventType(aEventType),
    mPhase(aPhase),
    mType(aType)
{
}

Definition at line 113 of file nsXBLEventHandler.cpp.

{
}

Member Function Documentation

NS_DECL_ISUPPORTS NS_DECL_NSIDOMEVENTLISTENER void nsXBLKeyEventHandler::AddProtoHandler ( nsXBLPrototypeHandler aProtoHandler) [inline]

Definition at line 93 of file nsXBLEventHandler.h.

  {
    mProtoHandlers.AppendElement(aProtoHandler);
  }

Here is the caller graph for this function:

void nsXBLKeyEventHandler::GetEventName ( nsAString &  aString) const [inline]

Definition at line 103 of file nsXBLEventHandler.h.

  {
    mEventType->ToString(aString);
  }

Here is the caller graph for this function:

Definition at line 108 of file nsXBLEventHandler.h.

  {
    return mPhase;
  }

Here is the caller graph for this function:

Definition at line 113 of file nsXBLEventHandler.h.

  {
    return mType;
  }

Here is the caller graph for this function:

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters:
evtThe Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.
PRBool nsXBLKeyEventHandler::Matches ( nsIAtom aEventType,
PRUint8  aPhase,
PRUint8  aType 
) const [inline]

Definition at line 98 of file nsXBLEventHandler.h.

  {
    return (mEventType == aEventType && mPhase == aPhase && mType == aType);
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 122 of file nsXBLEventHandler.h.

Definition at line 123 of file nsXBLEventHandler.h.

Definition at line 121 of file nsXBLEventHandler.h.

Definition at line 124 of file nsXBLEventHandler.h.


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