public interface CefJSDialogHandler
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
CefJSDialogHandler.JSDialogType
Supported JavaScript dialog types.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
onBeforeUnloadDialog(CefBrowser browser,
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,
String origin_url,
String accept_lang,
CefJSDialogHandler.JSDialogType dialog_type,
String message_text,
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 onJSDialog(CefBrowser browser, String origin_url, String accept_lang, CefJSDialogHandler.JSDialogType dialog_type, String message_text, String default_prompt_text, CefJSDialogCallback callback, BoolRef suppress_message)
browser - The corresponding browser.origin_url - The originating url.accept_lang - the accepted language.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.boolean onBeforeUnloadDialog(CefBrowser browser, 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 onResetDialogState(CefBrowser browser)
void onDialogClosed(CefBrowser browser)
Copyright © 2017. All rights reserved.