Beispiel #1
0
        public static int has_selection(cef_domdocument_t *self)
        {
            has_selection_delegate d;
            var p = self->_has_selection;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (has_selection_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_selection_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            return(d(self));
        }
Beispiel #2
0
 public static int has_selection(cef_domdocument_t* self)
 {
     has_selection_delegate d;
     var p = self->_has_selection;
     if (p == _pa) { d = _da; }
     else
     {
         d = (has_selection_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_selection_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     return d(self);
 }