public static void set_focus(cef_browser_host_t *self, int focus) { set_focus_delegate d; var p = self->_set_focus; if (p == _p5) { d = _d5; } else { d = (set_focus_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_focus_delegate)); if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; } } d(self, focus); }
public static void set_focus(cef_browser_host_t* self, int focus) { set_focus_delegate d; var p = self->_set_focus; if (p == _p5) { d = _d5; } else { d = (set_focus_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_focus_delegate)); if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; } } d(self, focus); }