Struct xpcom::interfaces::nsIMessageListenerManager [] [src]

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

interface nsIMessageListenerManager : nsISupports

Methods

impl nsIMessageListenerManager
[src]

[src]

Cast this nsIMessageListenerManager to one of its base interfaces.

impl nsIMessageListenerManager
[src]

[src]

/**
   * Register |listener| to receive |messageName|.  All listener
   * callbacks for a particular message are invoked when that message
   * is received.
   *
   * The message manager holds a strong ref to |listener|.
   *
   * If the same listener registers twice for the same message, the
   * second registration is ignored.
   *
   * Pass true for listenWhenClosed if you want to receive messages
   * during the short period after a frame has been removed from the
   * DOM and before its frame script has finished unloading. This
   * parameter only has an effect for frame message managers in
   * the main process. Default is false.
   */

void addMessageListener (in AString messageName, in nsIMessageListener listener, [optional] in boolean listenWhenClosed);

[src]

/**
   * Undo an |addMessageListener| call -- that is, calling this causes us to no
   * longer invoke |listener| when |messageName| is received.
   *
   * removeMessageListener does not remove a message listener added via
   * addWeakMessageListener; use removeWeakMessageListener for that.
   */

void removeMessageListener (in AString messageName, in nsIMessageListener listener);

[src]

/**
   * This is just like addMessageListener, except the message manager holds a
   * weak ref to |listener|.
   *
   * If you have two weak message listeners for the same message, they may be
   * called in any order.
   */

void addWeakMessageListener (in AString messageName, in nsIMessageListener listener);

[src]

/**
   * This undoes an |addWeakMessageListener| call.
   */

void removeWeakMessageListener (in AString messageName, in nsIMessageListener listener);

[src]

[notxpcom] boolean markForCC ();

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 nsIMessageListenerManager
[src]

IID: nsIID = nsID(3108618220, 47997, 18364, [179, 135, 172, 106, 155, 101, 80, 114])

[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 nsIMessageListenerManager
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIMessageListenerManager
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.