Exemplo n.º 1
0
        public static int is_focused(cef_frame_t *self)
        {
            is_focused_delegate d;
            var p = self->_is_focused;

            if (p == _p13)
            {
                d = _d13;
            }
            else
            {
                d = (is_focused_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_focused_delegate));
                if (_p13 == IntPtr.Zero)
                {
                    _d13 = d; _p13 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 2
0
 public static int is_focused(cef_frame_t* self)
 {
     is_focused_delegate d;
     var p = self->_is_focused;
     if (p == _p13) { d = _d13; }
     else
     {
         d = (is_focused_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_focused_delegate));
         if (_p13 == IntPtr.Zero) { _d13 = d; _p13 = p; }
     }
     return d(self);
 }