cef_jsdialog_handler_t.on_before_unload_dialog

Called to run a dialog asking the user if they want to leave a page. Return false (0) to use the default dialog implementation. Return true (1) if the application will use a custom dialog or if the callback has been executed immediately. Custom dialogs may be either modal or modeless. If a custom dialog is used the application must execute |callback| once the custom dialog is dismissed.

struct cef_jsdialog_handler_t
extern (System)
int function(cef_jsdialog_handler_t* self, cef_browser_t* browser, const(cef_string_t)* message_text, int is_reload, cef_jsdialog_callback_t* callback) nothrow on_before_unload_dialog;

Meta