/// <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)); }