public static void run_file_dialog(cef_browser_host_t *self, CefFileDialogMode mode, cef_string_t *title, cef_string_t *default_file_name, cef_string_list *accept_types, cef_run_file_dialog_callback_t *callback) { run_file_dialog_delegate d; var p = self->_run_file_dialog; if (p == _pd) { d = _dd; } else { d = (run_file_dialog_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(run_file_dialog_delegate)); if (_pd == IntPtr.Zero) { _dd = d; _pd = p; } } d(self, mode, title, default_file_name, accept_types, callback); }
public static void run_file_dialog(cef_browser_host_t* self, CefFileDialogMode mode, cef_string_t* title, cef_string_t* default_file_name, cef_string_list* accept_types, cef_run_file_dialog_callback_t* callback) { run_file_dialog_delegate d; var p = self->_run_file_dialog; if (p == _pd) { d = _dd; } else { d = (run_file_dialog_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(run_file_dialog_delegate)); if (_pd == IntPtr.Zero) { _dd = d; _pd = p; } } d(self, mode, title, default_file_name, accept_types, callback); }