xpcdemo.js
No description.

File Location

/goog/demos/xpc/xpcdemo.js


Public Protected Private

Global Functions

xpcdemo.eventsMsgHandler_(payload)
Handler for the 'events' service.
Arguments:
payload : string
The string returned from the xpcdemo.
code »
xpcdemo.initCommon_()
Initializes the demo. Registers service-handlers and connects the channel.
code »
goog.global.initInner()
Global function to kick off initialization in the iframe.
code »
xpcdemo.initInner()
Initialization in the iframe.
code »
goog.global.initOuter()
Global function to kick off initialization in the containing document.
code »
xpcdemo.initOuter()
Initializes XPC in the containing page.
code »
xpcdemo.log(msgString)
Logging function. Inserts log-message into element with it id 'console'.
Arguments:
msgString : string
The log-message.
code »
xpcdemo.mouseEventHandler_(e)
Function to be used as handler for mouse-events.
Arguments:
e : goog.events.BrowserEvent
The mouse event.
code »
xpcdemo.ping()
Sends a ping request to the peer.
code »
xpcdemo.pingHandler_(payload)
The handler function for incoming pings (messages sent to the service called 'ping');
Arguments:
payload : string
The message payload.
code »
xpcdemo.sendN(n)
Send multiple messages.
Arguments:
n : number
The number of messages to send.
code »
xpcdemo.startMousemoveForwarding()
Start mousemove event forwarding. Registers a listener on the document which sends them over the channel.
code »
xpcdemo.stopMousemoveForwarding()
Stop mousemove event forwarding.
code »
xpcdemo.teardown()
Kills the peer iframe and the disposes the channel.
code »

Global Variables

xpcdemo :
Namespace for the demo. We don't use goog.provide here because it's not a real module (cannot be required).
Code »

Directory xpc

File Reference