/// <summary> /// Request that the browser close. The JavaScript 'onbeforeunload' event will /// be fired. If |forceClose| is false (0) the event handler, if any, will be /// allowed to prompt the user and the user can optionally cancel the close. If /// |forceClose| is true (1) the prompt will not be displayed and the close /// will proceed. Results in a call to CfxLifeSpanHandler.DoClose() if /// the event handler allows the close or if |forceClose| is true (1). See /// CfxLifeSpanHandler.DoClose() documentation for additional usage /// information. /// </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 void CloseBrowser(bool forceClose) { CfxApi.cfx_browser_host_close_browser(NativePtr, forceClose ? 1 : 0); }