xpcdemo
Namespacexpcdemo
Namespace for the demo. We don't use goog.provide here because it's not a real module (cannot be required).
.initInner()
Initialization in the iframe.
.initOuter()
Initializes XPC in the containing page.
.log(msgString)
Logging function. Inserts log-message into element with it id 'console'.
msgString
{string
}
.ping()
Sends a ping request to the peer.
.sendN(n)
Send multiple messages.
n
{number
}
.startMousemoveForwarding()
Start mousemove event forwarding. Registers a listener on the document which sends them over the channel.
.stopMousemoveForwarding()
Stop mousemove event forwarding.
.teardown()
Kills the peer iframe and the disposes the channel.