Bump cefglue (#5585)

* Bump cefglue

* another bump

* Update build-test.yml

* Update to latest CEF natives and fix code to be compatible.

* Switch CEF CreateBrowserWindow to Alloy style

you will NOT open Chrome

* Update cefglue, again

---------

Co-authored-by: ike709 <ike709@github.com>
Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
This commit is contained in:
ike709
2025-01-07 19:32:24 -06:00
committed by GitHub
parent dfc4894c8b
commit 09c6a816e0
6 changed files with 12 additions and 4 deletions

View File

@@ -48,7 +48,7 @@
<PackageVersion Include="OpenToolkit.Graphics" Version="4.0.0-pre9.1" /> <PackageVersion Include="OpenToolkit.Graphics" Version="4.0.0-pre9.1" />
<PackageVersion Include="Pidgin" Version="3.3.0" /> <PackageVersion Include="Pidgin" Version="3.3.0" />
<PackageVersion Include="Robust.Natives" Version="0.1.1" /> <PackageVersion Include="Robust.Natives" Version="0.1.1" />
<PackageVersion Include="Robust.Natives.Cef" Version="120.1.9" /> <PackageVersion Include="Robust.Natives.Cef" Version="131.3.5" />
<PackageVersion Include="Robust.Shared.AuthLib" Version="0.1.2" /> <PackageVersion Include="Robust.Shared.AuthLib" Version="0.1.2" />
<PackageVersion Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.10" /> <PackageVersion Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.10" />
<PackageVersion Include="SQLitePCLRaw.provider.sqlite3" Version="2.1.10" /> <PackageVersion Include="SQLitePCLRaw.provider.sqlite3" Version="2.1.10" />

View File

@@ -64,6 +64,8 @@ internal abstract class BaseRobustCefClient : CefClient
string title, string title,
string defaultFilePath, string defaultFilePath,
string[] acceptFilters, string[] acceptFilters,
string[] acceptExtensions,
string[] acceptDescriptions,
CefFileDialogCallback callback) CefFileDialogCallback callback)
{ {
callback.Cancel(); callback.Cancel();

View File

@@ -44,6 +44,8 @@ namespace Robust.Client.WebView.Cef
//commandLine.AppendSwitch("--disable-gpu-compositing"); //commandLine.AppendSwitch("--disable-gpu-compositing");
//commandLine.AppendSwitch("--in-process-gpu"); //commandLine.AppendSwitch("--in-process-gpu");
commandLine.AppendSwitch("--off-screen-rendering-enabled");
commandLine.AppendSwitch("disable-threaded-scrolling", "1"); commandLine.AppendSwitch("disable-threaded-scrolling", "1");
commandLine.AppendSwitch("disable-features", "TouchpadAndWheelScrollLatching,AsyncWheelEvents"); commandLine.AppendSwitch("disable-features", "TouchpadAndWheelScrollLatching,AsyncWheelEvents");

View File

@@ -23,6 +23,7 @@ namespace Robust.Client.WebView.Cef
var info = CefWindowInfo.Create(); var info = CefWindowInfo.Create();
info.Bounds = new CefRectangle(0, 0, createParams.Width, createParams.Height); info.Bounds = new CefRectangle(0, 0, createParams.Width, createParams.Height);
info.SetAsPopup(mainHWnd, "ss14cef"); info.SetAsPopup(mainHWnd, "ss14cef");
info.RuntimeStyle = CefRuntimeStyle.Alloy;
var impl = new WebViewWindowImpl(this); var impl = new WebViewWindowImpl(this);

View File

@@ -587,8 +587,11 @@ namespace Robust.Client.WebView.Cef
} }
} }
protected override void OnAcceleratedPaint(CefBrowser browser, CefPaintElementType type, protected override void OnAcceleratedPaint(
CefRectangle[] dirtyRects, IntPtr sharedHandle) CefBrowser browser,
CefPaintElementType type,
CefRectangle[] dirtyRects,
in CefAcceleratedPaintInfo info)
{ {
// Unused, but we're forced to implement it so.. NOOP. // Unused, but we're forced to implement it so.. NOOP.
} }

Submodule cefglue updated: e89d3a86d4...bceff8482c