Exemple #1
0
        /// <summary>
        /// Create a new CefProcessMessage object with the specified name.
        /// </summary>
        public static CefProcessMessage Create(string name)
        {
            fixed(char *name_str = name)
            {
                var n_name = new cef_string_t(name_str, name != null ? name.Length : 0);

                return(CefProcessMessage.FromNative(
                           cef_process_message_t.create(&n_name)
                           ));
            }
        }
Exemple #2
0
        private int on_process_message_received(cef_render_process_handler_t *self, cef_browser_t *browser, CefProcessId source_process, cef_process_message_t *message)
        {
            CheckSelf(self);

            var m_browser = CefBrowser.FromNative(browser);
            var m_message = CefProcessMessage.FromNative(message);

            var result = OnProcessMessageReceived(m_browser, source_process, m_message);

            m_message.Dispose();

            return(result ? 1 : 0);
        }
Exemple #3
0
 /// <summary>
 /// Returns a writable copy of this object.
 /// </summary>
 public CefProcessMessage Copy()
 {
     return(CefProcessMessage.FromNative(
                cef_process_message_t.copy(_self)
                ));
 }