示例#1
0
        public static void set_link_url(cef_drag_data_t *self, cef_string_t *url)
        {
            set_link_url_delegate d;
            var p = self->_set_link_url;

            if (p == _p11)
            {
                d = _d11;
            }
            else
            {
                d = (set_link_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_link_url_delegate));
                if (_p11 == IntPtr.Zero)
                {
                    _d11 = d; _p11 = p;
                }
            }
            d(self, url);
        }
示例#2
0
 public static void set_link_url(cef_drag_data_t* self, cef_string_t* url)
 {
     set_link_url_delegate d;
     var p = self->_set_link_url;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (set_link_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_link_url_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     d(self, url);
 }