public static cef_media_source_t *get_source(cef_media_router_t *self, cef_string_t *urn)
        {
            get_source_delegate d;
            var p = self->_get_source;

            if (p == _p5)
            {
                d = _d5;
            }
            else
            {
                d = (get_source_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_source_delegate));
                if (_p5 == IntPtr.Zero)
                {
                    _d5 = d; _p5 = p;
                }
            }
            return(d(self, urn));
        }
Exemplo n.º 2
0
        public static void get_source(cef_frame_t *self, cef_string_visitor_t *visitor)
        {
            get_source_delegate d;
            var p = self->_get_source;

            if (p == _pc)
            {
                d = _dc;
            }
            else
            {
                d = (get_source_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_source_delegate));
                if (_pc == IntPtr.Zero)
                {
                    _dc = d; _pc = p;
                }
            }
            d(self, visitor);
        }
Exemplo n.º 3
0
 public static void get_source(cef_frame_t* self, cef_string_visitor_t* visitor)
 {
     get_source_delegate d;
     var p = self->_get_source;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (get_source_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_source_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     d(self, visitor);
 }