diff --git a/platform/platform-api/src/com/intellij/ui/jcef/JBCefBrowserBase.java b/platform/platform-api/src/com/intellij/ui/jcef/JBCefBrowserBase.java index 093c9dd56d0e..f25b69cb526e 100644 --- a/platform/platform-api/src/com/intellij/ui/jcef/JBCefBrowserBase.java +++ b/platform/platform-api/src/com/intellij/ui/jcef/JBCefBrowserBase.java @@ -91,7 +91,6 @@ public abstract class JBCefBrowserBase implements JBCefDisposable { } private static final Logger LOG = Logger.getInstance(JBCefBrowserBase.class); - private static final boolean IS_REMOTE_ENABLED = JBCefApp.isRemoteEnabled(); protected static final @NotNull String BLANK_URI = "about:blank"; private static final @NotNull Icon ERROR_PAGE_ICON = AllIcons.General.ErrorDialog; @@ -349,19 +348,6 @@ public abstract class JBCefBrowserBase implements JBCefDisposable { }, myCefBrowser); } - private @NotNull CefBrowser createOsrBrowser(@NotNull JBCefOSRHandlerFactory factory, - @NotNull CefClient client, - @Nullable String url, - @Nullable CefRequestContext context, - // not-null parentBrowser creates a DevTools browser for it - @Nullable CefBrowser parentBrowser, - @Nullable Point inspectAt, - boolean isMouseWheelEventEnabled, - CefBrowserSettings settings) { - return CefOsrBrowserFactory.getInstance() - .createOsrBrowser(factory, client, url, context, parentBrowser, inspectAt, isMouseWheelEventEnabled, settings); - } - /** * Creates the native browser. *

diff --git a/platform/platform-impl/src/com/intellij/ui/jcef/JBCefNativeOsrHandler.java b/platform/platform-impl/src/com/intellij/ui/jcef/JBCefNativeOsrHandler.java index 77fe40084cea..9939f524505f 100644 --- a/platform/platform-impl/src/com/intellij/ui/jcef/JBCefNativeOsrHandler.java +++ b/platform/platform-impl/src/com/intellij/ui/jcef/JBCefNativeOsrHandler.java @@ -96,6 +96,7 @@ class JBCefNativeOsrHandler extends JBCefOsrHandler implements CefNativeRenderHa }); } + @Override protected Dimension getCurrentFrameSize() { SharedMemory.WithRaster frame = myCurrentFrame; return frame == null ? null : new Dimension(frame.getWidth(), frame.getHeight()); diff --git a/platform/platform-impl/src/com/intellij/ui/jcef/JBCefOsrHandler.java b/platform/platform-impl/src/com/intellij/ui/jcef/JBCefOsrHandler.java index e4e473dc0045..d2d98aa10cc2 100644 --- a/platform/platform-impl/src/com/intellij/ui/jcef/JBCefOsrHandler.java +++ b/platform/platform-impl/src/com/intellij/ui/jcef/JBCefOsrHandler.java @@ -1,4 +1,4 @@ -// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.ui.jcef; import com.intellij.openapi.util.registry.RegistryManager;