Use JBCefBrowserBase in JBCefJSQuery

GitOrigin-RevId: 4ad06ec0e982136225c51f7ba0f852428f1e4a8b
This commit is contained in:
Anton Tarasov
2020-12-18 15:46:12 +00:00
committed by intellij-monorepo-bot
parent 08b8783881
commit 7acaa814c1
@@ -29,7 +29,7 @@ public final class JBCefJSQuery implements JBCefDisposable {
@NotNull private final Map<Function<? super String, ? extends Response>, CefMessageRouterHandler> myHandlerMap = Collections.synchronizedMap(new HashMap<>());
private JBCefJSQuery(@NotNull JBCefBrowser browser, @NotNull JBCefJSQuery.JSQueryFunc func) {
private JBCefJSQuery(@NotNull JBCefBrowserBase browser, @NotNull JBCefJSQuery.JSQueryFunc func) {
myFunc = func;
myCefClient = browser.getJBCefClient().getCefClient();
Disposer.register(browser.getJBCefClient(), this);
@@ -49,7 +49,7 @@ public final class JBCefJSQuery implements JBCefDisposable {
* @see JBCefClient#JBCEFCLIENT_JSQUERY_POOL_SIZE_PROP
* @param browser the associated cef browser
*/
public static JBCefJSQuery create(@NotNull JBCefBrowser browser) {
public static JBCefJSQuery create(@NotNull JBCefBrowserBase browser) {
Function<Void, JBCefJSQuery> create = (v) -> {
return new JBCefJSQuery(browser, new JSQueryFunc(browser.getJBCefClient()));
};