コード例 #1
0
        public static cef_browser_t *get_browser(cef_frame_t *self)
        {
            get_browser_delegate d;
            var p = self->_get_browser;

            if (p == _p18)
            {
                d = _d18;
            }
            else
            {
                d = (get_browser_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_browser_delegate));
                if (_p18 == IntPtr.Zero)
                {
                    _d18 = d; _p18 = p;
                }
            }
            return(d(self));
        }
コード例 #2
0
 public static cef_browser_t* get_browser(cef_browser_host_t* self)
 {
     get_browser_delegate d;
     var p = self->_get_browser;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (get_browser_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_browser_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     return d(self);
 }