public interface MessagePort extends EventTarget
nsISupports
Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)
Modifier and Type | Method and Description |
---|---|
EventRemover |
addEventListener(String type,
EventListener listener)
Register an event handler of a specific event type on the
EventTarget . |
EventRemover |
addEventListener(String type,
EventListener listener,
boolean useCapture)
Register an event handler of a specific event type on the
EventTarget . |
void |
close() |
boolean |
dispatchEvent(Event evt)
Dispatch an event to this
EventTarget . |
EventListener |
getOnmessage() |
void |
postMessage(String message)
Posts a message into the event queue.
|
void |
postMessage(String message,
Indexable messagePorts)
Posts a message into the event queue.
|
void |
removeEventListener(String type,
EventListener listener)
Removes an event listener from the
EventTarget . |
void |
removeEventListener(String type,
EventListener listener,
boolean useCapture)
Removes an event listener from the
EventTarget . |
void |
setOnmessage(EventListener arg) |
void |
start() |
void |
webkitPostMessage(String message) |
void |
webkitPostMessage(String message,
Indexable transfer) |
EventListener getOnmessage()
void setOnmessage(EventListener arg)
EventRemover addEventListener(String type, EventListener listener)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
EventRemover addEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
void close()
boolean dispatchEvent(Event evt)
EventTarget
EventTarget
.dispatchEvent
in interface EventTarget
void postMessage(String message)
Posts a message into the event queue.
aMessage
void postMessage(String message, Indexable messagePorts)
Posts a message into the event queue.
aMessage
void removeEventListener(String type, EventListener listener)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
void removeEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
void start()
void webkitPostMessage(String message)
Copyright © 2016. All rights reserved.