cef_jsdialog_handler_t.on_jsdialog

passed to the CefFormatUrlForSecurityDisplay function to retrieve a secure and user-friendly display string. The |default_prompt_text| value will be specified for prompt dialogs only. Set |suppress_message| to true (1) and return false (0) to suppress the message (suppressing messages is preferable to immediately executing the callback as this is used to detect presumably malicious behavior like spamming alert messages in onbeforeunload). Set |suppress_message| to false (0) and return false (0) to use the default implementation (the default implementation will show one modal dialog at a time and suppress any additional dialog requests until the displayed dialog is dismissed). 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)* origin_url, cef_jsdialog_type_t dialog_type, const(cef_string_t)* message_text, const(cef_string_t)* default_prompt_text, cef_jsdialog_callback_t* callback, int* suppress_message) nothrow on_jsdialog;

Meta