/**@class android.webkit.WebMessagePort.WebMessageCallback @extends java.lang.Object The listener for handling MessagePort events. The message callback methods are called on the main thread. If the embedder application wants to receive the messages on a different thread, it can do this by passing a Handler in {@link android.webkit.WebMessagePort#setandroid.webkit.WebMessageCallback(android.webkit.WebMessageCallback, Handler)}. In the latter case, the application should be extra careful for thread safety since WebMessagePort methods should be called on main thread. */ var WebMessageCallback = { /**Message callback for receiving onMessage events. @param {Object {WebMessagePort}} port the WebMessagePort that the message is destined for @param {Object {WebMessage}} message the message from the entangled port. */ onMessage : function( ) {}, };