internal RenderProcessHandler(RenderProcess remoteProcess) { this.remoteProcess = remoteProcess; this.OnContextCreated += RenderProcessHandler_OnContextCreated; this.OnBrowserCreated += RenderProcessHandler_OnBrowserCreated; }
internal static int RenderProcessMain() { try { var rp = new RenderProcess(); HtmlUILauncher.RaiseRemoteProcessCreated(rp.processHandler); return rp.RemoteMain(); } catch(CfxRemotingException) { return -1; } }
internal static int RenderProcessMain() { try { var rp = new RenderProcess(); HtmlUILauncher.RaiseRemoteProcessCreated(rp.processHandler); return(rp.RemoteMain()); } catch (CfxRemotingException) { return(-1); } }
public void SetRemoteBrowser(CfrBrowser remoteBrowser, RenderProcess remoteProcess) { this.remoteBrowser = remoteBrowser; this.remoteProcess = remoteProcess; remoteProcess.OnExit += new Action<RenderProcess>(remoteProcess_OnExit); var h = RemoteBrowserCreated; if (h != null) { var e = new RemoteBrowserCreatedEventArgs(remoteBrowser); if (RemoteCallbacksWillInvoke && InvokeRequired) { RenderThreadInvoke(() => { h(this, e); }); } else { h(this, e); } } }
void remoteProcess_OnExit(RenderProcess process) { if (process == this.remoteProcess) { this.remoteBrowser = null; this.remoteProcess = null; } }