Example #1
0
        public static void stop_finding(cef_browser_host_t *self, int clearSelection)
        {
            stop_finding_delegate d;
            var p = self->_stop_finding;

            if (p == _p11)
            {
                d = _d11;
            }
            else
            {
                d = (stop_finding_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(stop_finding_delegate));
                if (_p11 == IntPtr.Zero)
                {
                    _d11 = d; _p11 = p;
                }
            }
            d(self, clearSelection);
        }
 public static void stop_finding(cef_browser_host_t* self, int clearSelection)
 {
     stop_finding_delegate d;
     var p = self->_stop_finding;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (stop_finding_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(stop_finding_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     d(self, clearSelection);
 }