Beispiel #1
0
 public static int add_ref(cef_process_message_t* self)
 {
     add_ref_delegate d;
     var p = self->_base._add_ref;
     if (p == _p0) { d = _d0; }
     else
     {
         d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate));
         if (_p0 == IntPtr.Zero) { _d0 = d; _p0 = p; }
     }
     return d(self);
 }
        private int on_process_message_received(cef_client_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_browser.Dispose();
            m_message.Dispose();

            return result ? 1 : 0;
        }
Beispiel #3
0
 public static int release(cef_process_message_t* self)
 {
     release_delegate d;
     var p = self->_base._release;
     if (p == _p1) { d = _d1; }
     else
     {
         d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate));
         if (_p1 == IntPtr.Zero) { _d1 = d; _p1 = p; }
     }
     return d(self);
 }
Beispiel #4
0
 public static cef_list_value_t* get_argument_list(cef_process_message_t* self)
 {
     get_argument_list_delegate d;
     var p = self->_get_argument_list;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (get_argument_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_argument_list_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }
Beispiel #5
0
 public static cef_process_message_t* copy(cef_process_message_t* self)
 {
     copy_delegate d;
     var p = self->_copy;
     if (p == _p5) { d = _d5; }
     else
     {
         d = (copy_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(copy_delegate));
         if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; }
     }
     return d(self);
 }
Beispiel #6
0
 public static cef_string_userfree* get_name(cef_process_message_t* self)
 {
     get_name_delegate d;
     var p = self->_get_name;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (get_name_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_name_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self);
 }
Beispiel #7
0
 public static int is_valid(cef_process_message_t* self)
 {
     is_valid_delegate d;
     var p = self->_is_valid;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (is_valid_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_valid_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     return d(self);
 }
Beispiel #8
0
 public static int is_read_only(cef_process_message_t* self)
 {
     is_read_only_delegate d;
     var p = self->_is_read_only;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (is_read_only_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_read_only_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }
Beispiel #9
0
 public static int get_refct(cef_process_message_t* self)
 {
     get_refct_delegate d;
     var p = self->_base._get_refct;
     if (p == _p2) { d = _d2; }
     else
     {
         d = (get_refct_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_refct_delegate));
         if (_p2 == IntPtr.Zero) { _d2 = d; _p2 = p; }
     }
     return d(self);
 }
Beispiel #10
0
 public static int send_process_message(cef_browser_t* self, CefProcessId target_process, cef_process_message_t* message)
 {
     send_process_message_delegate d;
     var p = self->_send_process_message;
     if (p == _p17) { d = _d17; }
     else
     {
         d = (send_process_message_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(send_process_message_delegate));
         if (_p17 == IntPtr.Zero) { _d17 = d; _p17 = p; }
     }
     return d(self, target_process, message);
 }
Beispiel #11
0
 internal static CefProcessMessage FromNativeOrNull(cef_process_message_t* ptr)
 {
     if (ptr == null) return null;
     return new CefProcessMessage(ptr);
 }
Beispiel #12
0
 internal static CefProcessMessage FromNative(cef_process_message_t* ptr)
 {
     return new CefProcessMessage(ptr);
 }
Beispiel #13
0
 private CefProcessMessage(cef_process_message_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }