gpui-component/crates/wef/cpp/file_dialog.cpp
Sunli b70b229370
wef: Added a new WebView component named "Wef" based on CEF. (#877)
Wef is a Rust library for embedding WebView functionality using Chromium
Embedded Framework (CEF3) with offscreen rendering support.
2025-06-17 18:57:44 +08:00

21 lines
No EOL
490 B
C++

#include "include/cef_dialog_handler.h"
#include "utils.h"
extern "C" {
void wef_file_dialog_callback_continue(
CefRefPtr<CefFileDialogCallback>* callback, const char* file_paths) {
(*callback)->Continue(split_string(file_paths, ";"));
}
void wef_file_dialog_callback_cancel(
CefRefPtr<CefFileDialogCallback>* callback) {
(*callback)->Cancel();
}
void wef_file_dialog_callback_destroy(
CefRefPtr<CefFileDialogCallback>* callback) {
delete callback;
}
} // extern "C"