Public Member Functions

nsIEventListenerService Interface Reference

import "nsIEventListenerService.idl";

List of all members.

Public Member Functions

void getListenerInfoFor (in nsIDOMEventTarget aEventTarget,[optional] out unsigned long aCount,[retval, array, size_is(aCount)] out nsIEventListenerInfo aOutArray)
 Returns an array of nsIEventListenerInfo objects.
void getEventTargetChainFor (in nsIDOMEventTarget aEventTarget,[optional] out unsigned long aCount,[retval, array, size_is(aCount)] out nsIDOMEventTarget aOutArray)
 Returns an array of event targets.

Member Function Documentation

void nsIEventListenerService::getEventTargetChainFor ( in nsIDOMEventTarget  aEventTarget,
[optional] out unsigned long  aCount,
[retval, array, size_is(aCount)] out nsIDOMEventTarget  aOutArray 
)

Returns an array of event targets.

aEventTarget will be at index 0. The objects are the ones that would be used as DOMEvent.currentTarget while dispatching an event to aEventTarget

Note:
Some events, especially 'load', may actually have a shorter event target chain than what this methods returns.
void nsIEventListenerService::getListenerInfoFor ( in nsIDOMEventTarget  aEventTarget,
[optional] out unsigned long  aCount,
[retval, array, size_is(aCount)] out nsIEventListenerInfo  aOutArray 
)

Returns an array of nsIEventListenerInfo objects.

If aEventTarget doesn't have any listeners, this returns null.


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