/// <summary> /// Send a message to the specified |targetProcess|. Returns true (1) if the /// message was sent successfully. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>. /// </remarks> public bool SendProcessMessage(CfxProcessId targetProcess, CfrProcessMessage message) { var call = new CfxBrowserSendProcessMessageRenderProcessCall(); call.@this = proxyId; call.targetProcess = (int)targetProcess; call.message = CfrObject.Unwrap(message); call.RequestExecution(this); return(call.__retval); }
/// <summary> /// Send a message to the specified |targetProcess|. Returns true (1) if the /// message was sent successfully. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>. /// </remarks> public bool SendProcessMessage(CfxProcessId targetProcess, CfrProcessMessage message) { var call = new CfxBrowserSendProcessMessageRemoteCall(); call.@this = RemotePtr.ptr; call.targetProcess = (int)targetProcess; call.message = CfrObject.Unwrap(message).ptr; call.RequestExecution(RemotePtr.connection); return(call.__retval); }
/// <summary> /// Send a message to the specified |targetProcess|. Message delivery is not /// guaranteed in all cases (for example, if the browser is closing, /// navigating, or if the target process crashes). Send an ACK message back /// from the target process if confirmation is required. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_frame_capi.h">cef/include/capi/cef_frame_capi.h</see>. /// </remarks> public void SendProcessMessage(CfxProcessId targetProcess, CfrProcessMessage message) { var connection = RemotePtr.connection; var call = new CfxFrameSendProcessMessageRemoteCall(); call.@this = RemotePtr.ptr; call.targetProcess = (int)targetProcess; if (!CfrObject.CheckConnection(message, connection)) { throw new ArgumentException("Render process connection mismatch.", "message"); } call.message = CfrObject.Unwrap(message).ptr; call.RequestExecution(connection); }
/// <summary> /// Send a message to the specified |targetProcess|. Returns true (1) if the /// message was sent successfully. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>. /// </remarks> public bool SendProcessMessage(CfxProcessId targetProcess, CfxProcessMessage message) { return(0 != CfxApi.Browser.cfx_browser_send_process_message(NativePtr, (int)targetProcess, CfxProcessMessage.Unwrap(message))); }
/// <summary> /// Send a message to the specified |targetProcess|. Message delivery is not /// guaranteed in all cases (for example, if the browser is closing, /// navigating, or if the target process crashes). Send an ACK message back /// from the target process if confirmation is required. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_frame_capi.h">cef/include/capi/cef_frame_capi.h</see>. /// </remarks> public void SendProcessMessage(CfxProcessId targetProcess, CfxProcessMessage message) { CfxApi.Frame.cfx_frame_send_process_message(NativePtr, (int)targetProcess, CfxProcessMessage.Unwrap(message)); }