Struct xpcom::interfaces::nsIEventListenerService [] [src]

#[repr(C)]
pub struct nsIEventListenerService { /* fields omitted */ }

interface nsIEventListenerService : nsISupports

Methods

impl nsIEventListenerService
[src]

[src]

Cast this nsIEventListenerService to one of its base interfaces.

impl nsIEventListenerService
[src]

[src]

/**
   * Returns an array of nsIEventListenerInfo objects.
   * If aEventTarget doesn't have any listeners, this returns null.
   */

void getListenerInfoFor (in nsIDOMEventTarget aEventTarget, [optional] out unsigned long aCount, [array, size_is (aCount), retval] out nsIEventListenerInfo aOutArray);

[src]

/**
   * 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 getEventTargetChainFor (in nsIDOMEventTarget aEventTarget, in boolean composed, [optional] out unsigned long aCount, [array, size_is (aCount), retval] out nsIDOMEventTarget aOutArray);

[src]

/**
   * Returns true if a event target has any listener for the given type.
   */

boolean hasListenersFor (in nsIDOMEventTarget aEventTarget, in DOMString aType);

[src]

/**
   * Add a system-group eventlistener to a event target.
   */

void addSystemEventListener (in nsIDOMEventTarget target, in DOMString type, in nsIDOMEventListener listener, in boolean useCapture);

[src]

/**
   * Remove a system-group eventlistener from a event target.
   */

void removeSystemEventListener (in nsIDOMEventTarget target, in DOMString type, in nsIDOMEventListener listener, in boolean useCapture);

[src]

void addListenerForAllEvents (in nsIDOMEventTarget target, in nsIDOMEventListener listener, [optional] in boolean aUseCapture, [optional] in boolean aWantsUntrusted, [optional] in boolean aSystemEventGroup);

[src]

void removeListenerForAllEvents (in nsIDOMEventTarget target, in nsIDOMEventListener listener, [optional] in boolean aUseCapture, [optional] in boolean aSystemEventGroup);

[src]

void addListenerChangeListener (in nsIListenerChangeListener aListener);

[src]

void removeListenerChangeListener (in nsIListenerChangeListener aListener);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIEventListenerService
[src]

IID: nsIID = nsID(2007676407, 8509, 19892, [159, 34, 228, 109, 251, 119, 79, 21])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIEventListenerService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIEventListenerService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.