public interface CefJSDialogHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
CefJSDialogHandler.JSDialogType
Supported JavaScript dialog types.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
onBeforeUnloadDialog(CefBrowser browser,
java.lang.String message_text,
boolean is_reload,
CefJSDialogCallback callback)
Called to run a dialog asking the user if they want to leave a page.
|
void |
onDialogClosed(CefBrowser browser)
Called when the default implementation dialog is closed.
|
boolean |
onJSDialog(CefBrowser browser,
java.lang.String origin_url,
CefJSDialogHandler.JSDialogType dialog_type,
java.lang.String message_text,
java.lang.String default_prompt_text,
CefJSDialogCallback callback,
BoolRef suppress_message)
Called to run a JavaScript dialog.
|
void |
onResetDialogState(CefBrowser browser)
Called to cancel any pending dialogs and reset any saved dialog state.
|
boolean onBeforeUnloadDialog(CefBrowser browser, java.lang.String message_text, boolean is_reload, CefJSDialogCallback callback)
browser - The corresponding browser.message_text - The text to be displayed.is_reload - true if the page is reloaded.callback - execute callback once the custom dialog is dismissed.void onDialogClosed(CefBrowser browser)
boolean onJSDialog(CefBrowser browser, java.lang.String origin_url, CefJSDialogHandler.JSDialogType dialog_type, java.lang.String message_text, java.lang.String default_prompt_text, CefJSDialogCallback callback, BoolRef suppress_message)
browser - The corresponding browser.origin_url - The originating url.dialog_type - the dialog type.message_text - the text to be displayed.default_prompt_text - value will be specified for prompt dialogs only.callback - execute callback once the custom dialog is dismissed.suppress_message - set to true to suppress displaying the message.void onResetDialogState(CefBrowser browser)