Esempio n. 1
0
        public static cef_string_userfree *get_base_url(cef_domdocument_t *self)
        {
            get_base_url_delegate d;
            var p = self->_get_base_url;

            if (p == _p11)
            {
                d = _d11;
            }
            else
            {
                d = (get_base_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_base_url_delegate));
                if (_p11 == IntPtr.Zero)
                {
                    _d11 = d; _p11 = p;
                }
            }
            return(d(self));
        }
Esempio n. 2
0
 public static cef_string_userfree* get_base_url(cef_domdocument_t* self)
 {
     get_base_url_delegate d;
     var p = self->_get_base_url;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (get_base_url_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_base_url_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     return d(self);
 }