Example #1
0
        public static cef_string_userfree *get_url(cef_download_item_t *self)
        {
            get_url_delegate d;
            var p = self->_get_url;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (get_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_url_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self));
        }
Example #2
0
        public static cef_string_userfree *get_url(cef_request_t *self)
        {
            get_url_delegate d;
            var p = self->_get_url;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (get_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_url_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self));
        }
        public static cef_string_userfree *get_url(cef_navigation_entry_t *self)
        {
            get_url_delegate d;
            var p = self->_get_url;

            if (p == _p5)
            {
                d = _d5;
            }
            else
            {
                d = (get_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_url_delegate));
                if (_p5 == IntPtr.Zero)
                {
                    _d5 = d; _p5 = p;
                }
            }
            return(d(self));
        }
 public static cef_string_userfree* get_url(cef_request_t* self)
 {
     get_url_delegate d;
     var p = self->_get_url;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (get_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_url_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }
 public static cef_string_userfree* get_url(cef_download_item_t* self)
 {
     get_url_delegate d;
     var p = self->_get_url;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_url_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self);
 }