Ejemplo n.º 1
0
        public static void start_download(cef_browser_host_t *self, cef_string_t *url)
        {
            start_download_delegate d;
            var p = self->_start_download;

            if (p == _pe)
            {
                d = _de;
            }
            else
            {
                d = (start_download_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(start_download_delegate));
                if (_pe == IntPtr.Zero)
                {
                    _de = d; _pe = p;
                }
            }
            d(self, url);
        }
Ejemplo n.º 2
0
 public static void start_download(cef_browser_host_t* self, cef_string_t* url)
 {
     start_download_delegate d;
     var p = self->_start_download;
     if (p == _pe) { d = _de; }
     else
     {
         d = (start_download_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(start_download_delegate));
         if (_pe == IntPtr.Zero) { _de = d; _pe = p; }
     }
     d(self, url);
 }