public abstract class CefJSDialogHandlerAdapter extends Object implements CefJSDialogHandler
CefJSDialogHandler.JSDialogType| 构造器和说明 |
|---|
CefJSDialogHandlerAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public 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)
CefJSDialogHandleronJSDialog 在接口中 CefJSDialogHandlerbrowser - 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.public boolean onBeforeUnloadDialog(CefBrowser browser, String message_text, boolean is_reload, CefJSDialogCallback callback)
CefJSDialogHandleronBeforeUnloadDialog 在接口中 CefJSDialogHandlerbrowser - 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.public void onResetDialogState(CefBrowser browser)
CefJSDialogHandleronResetDialogState 在接口中 CefJSDialogHandlerpublic void onDialogClosed(CefBrowser browser)
CefJSDialogHandleronDialogClosed 在接口中 CefJSDialogHandlerCopyright © 2017. All rights reserved.