示例#1
0
        public static CefTransitionType get_transition_type(cef_request_t *self)
        {
            get_transition_type_delegate d;
            var p = self->_get_transition_type;

            if (p == _p12)
            {
                d = _d12;
            }
            else
            {
                d = (get_transition_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_transition_type_delegate));
                if (_p12 == IntPtr.Zero)
                {
                    _d12 = d; _p12 = p;
                }
            }
            return(d(self));
        }
 public static CefTransitionType get_transition_type(cef_request_t* self)
 {
     get_transition_type_delegate d;
     var p = self->_get_transition_type;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (get_transition_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_transition_type_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     return d(self);
 }
示例#3
0
 public static CefTransitionType get_transition_type(cef_navigation_entry_t* self)
 {
     get_transition_type_delegate d;
     var p = self->_get_transition_type;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (get_transition_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_transition_type_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self);
 }