예제 #1
0
        public static cef_domnode_t *get_current_target(cef_domevent_t *self)
        {
            get_current_target_delegate d;
            var p = self->_get_current_target;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (get_current_target_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_current_target_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            return(d(self));
        }
예제 #2
0
 public static cef_domnode_t* get_current_target(cef_domevent_t* self)
 {
     get_current_target_delegate d;
     var p = self->_get_current_target;
     if (p == _pa) { d = _da; }
     else
     {
         d = (get_current_target_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_current_target_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     return d(self);
 }