gpui-component/crates/wef/cpp/js_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

15 lines
No EOL
399 B
C++

#include "include/cef_jsdialog_handler.h"
#include "utils.h"
extern "C" {
void wef_js_dialog_callback_continue(CefRefPtr<CefJSDialogCallback>* callback,
bool success, const char* user_input) {
(*callback)->Continue(success, user_input);
}
void wef_js_dialog_callback_destroy(CefRefPtr<CefJSDialogCallback>* callback) {
delete callback;
}
} // extern "C"