public abstract class CefMessageRouterHandlerAdapter extends CefNativeAdapter implements CefMessageRouterHandler
构造器和说明 |
---|
CefMessageRouterHandlerAdapter() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
onQuery(CefBrowser browser, CefFrame frame, long queryId, java.lang.String request, boolean persistent, CefQueryCallback callback)
Called when the browser receives a JavaScript query.
(当浏览器收到JavaScript查询时调用。)
|
void |
onQueryCanceled(CefBrowser browser, CefFrame frame, long queryId)
Called when a pending JavaScript query is canceled.
(取消待处理的JavaScript查询时调用。)
|
getNativeRef, setNativeRef
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNativeRef, setNativeRef
public boolean onQuery(CefBrowser browser, CefFrame frame, long queryId, java.lang.String request, boolean persistent, CefQueryCallback callback)
CefMessageRouterHandler
onQuery
在接口中
CefMessageRouterHandler
browser
- The corresponding browser.
(-相应的浏览器。)
frame
- The frame generating the event. Instance only valid within the scope of this method.
(-生成事件的框架。实例仅在此方法的范围内有效。)
queryId
- The unique ID for the query.
(-查询的唯一ID。)
persistent
- True if the query is persistent.
(-如果查询是持久的,则为true。)
callback
- Object used to continue or cancel the query asynchronously.
(-用于异步继续或取消查询的对象。)
public void onQueryCanceled(CefBrowser browser, CefFrame frame, long queryId)
CefMessageRouterHandler
onQueryCanceled
在接口中
CefMessageRouterHandler
browser
- The corresponding browser.
(-相应的浏览器。)
frame
- The frame generating the event. Instance only valid within the scope of this method.
(-生成事件的框架。实例仅在此方法的范围内有效。)
queryId
- The unique ID for the query.
(-查询的唯一ID。)