public static CefContextMenuMediaType get_media_type(cef_context_menu_params_t *self)
        {
            get_media_type_delegate d;
            var p = self->_get_media_type;

            if (p == _pd)
            {
                d = _dd;
            }
            else
            {
                d = (get_media_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_media_type_delegate));
                if (_pd == IntPtr.Zero)
                {
                    _dd = d; _pd = p;
                }
            }
            return(d(self));
        }
Ejemplo n.º 2
0
 public static CefContextMenuMediaType get_media_type(cef_context_menu_params_t* self)
 {
     get_media_type_delegate d;
     var p = self->_get_media_type;
     if (p == _pd) { d = _dd; }
     else
     {
         d = (get_media_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_media_type_delegate));
         if (_pd == IntPtr.Zero) { _dd = d; _pd = p; }
     }
     return d(self);
 }