function messageToMojo_(message) {
  if ("string" == typeof message.message) {
    return new mediaRouter.mojom.RouteMessage({
      'type': mediaRouter.mojom.RouteMessage.Type.TEXT,
      'message': message.message,
    });
  } else {
    return new mediaRouter.mojom.RouteMessage({
      'type': mediaRouter.mojom.RouteMessage.Type.BINARY,
      'data': message.message,
    });
  }
}
/**
 * Converts a route message to a RouteMessage Mojo object.
 * @param {!RouteMessage} message
 * @return {!mediaRouter.mojom.RouteMessage} A Mojo RouteMessage object.
 */
Converts a route message to a RouteMessage Mojo object.
Converts a route message to a RouteMessage Mojo object .
function messageToMojo_(message) {
  if ("string" == typeof message.message) {
    return new mediaRouter.mojom.RouteMessage({
      'type': mediaRouter.mojom.RouteMessage.Type.TEXT,
      'message': message.message,
    });
  } else {
    return new mediaRouter.mojom.RouteMessage({
      'type': mediaRouter.mojom.RouteMessage.Type.BINARY,
      'data': message.message,
    });
  }
}
function messageToMojo_ ( message ) { if ( "string" == typeof message . message ) { return new mediaRouter . mojom . RouteMessage ( { 'type' : mediaRouter . mojom . RouteMessage . Type . TEXT , 'message' : message . message , } ) ; } else { return new mediaRouter . mojom . RouteMessage ( { 'type' : mediaRouter . mojom . RouteMessage . Type . BINARY , 'data' : message . message , } ) ; } }
Converts a route message to a RouteMessage Mojo object.
Converts a route message to a RouteMessage Mojo object .