The goog.net.xpc.FrameElementMethodTransport Class

goog.net.xpc.FrameElementMethodTransport
> goog.net.xpc.Transport
> goog.Disposable

goog.net.xpc.FrameElementMethodTransport(channel, opt_domHelper)

Frame-element method transport. Firefox allows a document within an iframe to call methods on the iframe-element added by the containing document. NOTE(user): Tested in all FF versions starting from 1.0

channel {goog.net.xpc.CrossPageChannel}
The channel this transport belongs to.
opt_domHelper {goog.dom.DomHelper=}
The dom helper to use for finding the correct window.

.addOnDisposeCallback(callback, opt_scope)

Inherited from goog.Disposable .

Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.

callback {!Function}
The callback function.
opt_scope {Object=}
An optional scope to call the callback in.

.connect()

Connect this transport.

.creationStack {string}

Inherited from goog.Disposable .

If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.

.dispose()

Inherited from goog.Disposable .

Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.

returns {void}
Nothing.

.disposeInternal()

.getName()

Inherited from goog.net.xpc.Transport .

Return the transport name.

returns {string}
the transport name.

.getType()

Inherited from goog.net.xpc.Transport .

returns {number}
The transport type identifier.

.getWindow()

Inherited from goog.net.xpc.Transport .

Returns the window associated with this transport instance.

returns {Window}
The window to use.

.isDisposed()

Inherited from goog.Disposable .

returns {boolean}
Whether the object has been disposed of.

.registerDisposable(disposable)

Inherited from goog.Disposable .

Associates a disposable object with this object so that they will be disposed together.

disposable {goog.disposable.IDisposable}
that will be disposed when this object is disposed.

.send(service, payload)

Send a message

service {string}
The name off the service the message is to be delivered to.
payload {string}
The message content.

.transportServiceHandler(payload)

Handles transport service messages.

payload {string}
The message content.