public static int can_go_forward(cef_browser_t *self)
        {
            can_go_forward_delegate d;
            var p = self->_can_go_forward;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (can_go_forward_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(can_go_forward_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self));
        }
Example #2
0
 public static int can_go_forward(cef_browser_t* self)
 {
     can_go_forward_delegate d;
     var p = self->_can_go_forward;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (can_go_forward_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(can_go_forward_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self);
 }