public interface CefLifeSpanHandler
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
doClose(CefBrowser browser)
Called when a browser has received a request to close.
|
void |
onAfterCreated(CefBrowser browser)
Handle creation of a new browser window.
|
void |
onBeforeClose(CefBrowser browser)
Called just before a browser is destroyed.
|
boolean |
onBeforePopup(CefBrowser browser,
String target_url,
String target_frame_name)
Called on the IO thread before a new popup window is created.
|
boolean |
runModal(CefBrowser browser)
Called when a modal window is about to display and the modal loop should
begin running.
|
boolean onBeforePopup(CefBrowser browser, String target_url, String target_frame_name)
browser - The source of the popup request.frame - The source of the popup request.target_url - May be empty if none is specified with the request.target_frame_name - May be empty if none is specified with the request.target_disposition - Indicates where the user intended to open
the popup (e.g. current tab, new tab, etc).user_gesture - Will be true if the popup was opened via explicit user
gesture (e.g. clicking a link) or false if the popup opened automatically
(e.g. via the DomContentLoaded event).popupFeatures - Contains information about the requested popup windowwindowInfo - Can be modified.client - Can be modified.settings - Can be modified.no_javascript_access - Can be modified.void onAfterCreated(CefBrowser browser)
browser - The browser generating the event.boolean runModal(CefBrowser browser)
browser - The browser generating the event.boolean doClose(CefBrowser browser)
browser - The browser generating the event.void onBeforeClose(CefBrowser browser)
browser - The browser generating the event.Copyright © 2017. All rights reserved.