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 |
onAfterParentChanged(CefBrowser browser)
Called after a browser's native parent window has changed.
(在浏览器的本机父窗口更改后调用。)
|
void |
onBeforeClose(CefBrowser browser)
Called just before a browser is destroyed.
(在浏览器被销毁之前调用。)
|
boolean |
onBeforePopup(CefBrowser browser, CefFrame frame, java.lang.String target_url, java.lang.String target_frame_name)
Called on the IO thread before a new popup window is created.
(在创建新的弹出窗口之前在IO线程上调用。)
|
boolean doClose(CefBrowser browser)
browser
- The browser generating the event.
(-浏览器生成事件。)
void onAfterCreated(CefBrowser browser)
browser
- The browser generating the event.
(-浏览器生成事件。)
void onAfterParentChanged(CefBrowser browser)
browser
- The browser generating the event.
(-浏览器生成事件。)
void onBeforeClose(CefBrowser browser)
browser
- The browser generating the event.
(-浏览器生成事件。)
boolean onBeforePopup(CefBrowser browser, CefFrame frame, java.lang.String target_url, java.lang.String target_frame_name)
browser
- The source of the popup request.
(-弹出请求的来源。)
frame
- The source of the popup request. Instance only valid within the scope of this method.
(-弹出请求的来源。实例仅在此方法的范围内有效。)
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.
(-如果请求中未指定任何内容,则可以为空。)