protected override void OnIpcMessageReceived(IpcMessageReceivedEventArgs e) { base.OnIpcMessageReceived(e); if (!e.Message.IsValid) { return; } var title = e.Message.Payload.ToUtf8String(); if (_window.InvokeRequired) { _window.BeginInvoke(new Action(() => _window.Text = title)); } else { _window.Text = title; } }
protected internal virtual void OnIpcMessageReceived(IpcMessageReceivedEventArgs e) { var handler = IpcMessageReceived; if (handler != null) { handler(this, e); } }
private int OnProcessMessageReceived(IntPtr self, IntPtr browser, CefProcessId sourceprocess, IntPtr message) { var e = new IpcMessageReceivedEventArgs { Browser = Browser.FromHandle(browser), SourceProcess = (ProcessType) sourceprocess, Message = IpcMessage.FromHandle(message) }; _delegate.OnIpcMessageReceived(e); return e.IsHandled ? 1 : 0; }