Example #1
0
        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;
            }
        }
Example #2
0
 protected internal virtual void OnIpcMessageReceived(IpcMessageReceivedEventArgs e)
 {
     var handler = IpcMessageReceived;
     if (handler != null) {
         handler(this, e);
     }
 }
Example #3
0
 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;
 }