Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern "C" fn file_dialog_dismissed(self_: *mut cef_run_file_dialog_callback_t, selected_accept_filter: ::std::os::raw::c_int, file_paths: cef_string_list_t) {
- //let this = std::mem::ManuallyDrop::into_inner(unsafe { <cef_run_file_dialog_callback_t as RefCounter>::Wrapper::make_temp(self_) });
- let this = make_fn_once();
- let files = if file_paths.is_null() {
- None
- } else {
- Some(from_string_list(file_paths))
- };
- this(selected_accept_filter as usize, files);
- }
- fn make_fn_once() -> Box<dyn FnOnce(usize, Option<Vec<std::path::PathBuf>>)> {
- Box::new(|a, b| {})
- }
- type cef_run_file_dialog_callback_t = *const std::ffi::c_void;
- type cef_string_list_t = *const std::ffi::c_void;
- fn from_string_list(list: cef_string_list_t) -> Vec<std::path::PathBuf> {
- Vec::new()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement