1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-11-23 21:34:53 +02:00

Update to CEF 127.3.1

This commit is contained in:
Salvador Díaz Fau
2024-08-08 12:53:31 +02:00
parent b7f0c51ee6
commit 14e64f556e
16 changed files with 293 additions and 188 deletions

View File

@@ -505,4 +505,22 @@
{$ELSE}
{$DEFINE LINUXFMX}
{$ENDIF}
{$ENDIF}
{$ENDIF}
// OS_POSIX is defined for AIX, ANDROID, ASMJS, CHROMEOS, FREEBSD, IOS, LINUX,
// MAC, NACL, NETBSD, OPENBSD, QNX and SOLARIS in /include/base/cef_build.h
{$IFDEF FPC}
{$IF DEFINED(AIX) OR
DEFINED(ANDROID) OR
DEFINED(BSD) OR
DEFINED(LINUX) OR
DEFINED(DARWIN) OR
DEFINED(QNX) OR
DEFINED(SOLARIS)}
{$DEFINE OS_POSIX}
{$IFEND}
{$ELSE}
{$IFDEF POSIX}
{$DEFINE OS_POSIX}
{$ENDIF}
{$ENDIF}

View File

@@ -97,6 +97,9 @@ type
FCookieableSchemesExcludeDefaults : boolean;
FChromePolicyId : ustring;
FChromeAppIconId : integer;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
FDisableSignalHandlers : boolean;
{$IFEND}
// Fields used to set command line switches
FSingleProcess : boolean;
@@ -161,6 +164,7 @@ type
FAutoAcceptCamAndMicCapture : boolean;
FUIColorMode : TCefUIColorMode;
FDisableHangMonitor : boolean;
FHideCrashRestoreBubble : boolean;
// Fields used during the CEF initialization
@@ -756,6 +760,12 @@ type
/// runtime on Windows.
/// </summary>
property ChromeAppIconId : integer read FChromeAppIconId write FChromeAppIconId;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
/// <summary>
/// Specify whether signal handlers must be disabled on POSIX systems.
/// </summary>
property DisableSignalHandlers : boolean read FDisableSignalHandlers write FDisableSignalHandlers;
{$IFEND}
/// <summary>
/// Runs the renderer and plugins in the same process as the browser.
/// </summary>
@@ -1241,6 +1251,13 @@ type
/// </remarks>
property DisableHangMonitor : boolean read FDisableHangMonitor write FDisableHangMonitor;
/// <summary>
/// Does not show the "Restore pages" popup bubble after incorrect shutdown.
/// </summary>
/// <remarks>
/// <para><see href="https://peter.sh/experiments/chromium-command-line-switches/">Uses the following command line switch: --hide-crash-restore-bubble</see></para>
/// </remarks>
property HideCrashRestoreBubble : boolean read FHideCrashRestoreBubble write FHideCrashRestoreBubble;
/// <summary>
/// Ignores certificate-related errors.
/// </summary>
/// <remarks>
@@ -1842,6 +1859,9 @@ begin
FCookieableSchemesExcludeDefaults := False;
FChromePolicyId := '';
FChromeAppIconId := 0;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
FDisableSignalHandlers := False;
{$IFEND}
// Fields used to set command line switches
FSingleProcess := False;
@@ -1906,6 +1926,7 @@ begin
FAutoAcceptCamAndMicCapture := False;
FUIColorMode := uicmSystemDefault;
FDisableHangMonitor := False;
FHideCrashRestoreBubble := True;
// Fields used during the CEF initialization
FWindowsSandboxInfo := nil;
@@ -2824,6 +2845,9 @@ begin
aSettings.cookieable_schemes_exclude_defaults := Ord(FCookieableSchemesExcludeDefaults);
aSettings.chrome_policy_id := CefString(FChromePolicyId);
aSettings.chrome_app_icon_id := FChromeAppIconId;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
aSettings.disable_signal_handlers := ord(FDisableSignalHandlers);
{$IFEND}
end;
function TCefApplicationCore.InitializeLibrary(const aApp : ICefApp) : boolean;
@@ -3384,6 +3408,9 @@ begin
if FDisableHangMonitor then
ReplaceSwitch(aKeys, aValues, '--disable-hang-monitor');
if FHideCrashRestoreBubble then
ReplaceSwitch(aKeys, aValues, '--hide-crash-restore-bubble');
if FNetLogEnabled then
begin
ReplaceSwitch(aKeys, aValues, '--log-net-log', FNetLogFile);

View File

@@ -3598,6 +3598,12 @@ type
/// runtime on Windows.
/// </summary>
chrome_app_icon_id : Integer;
{$IF DEFINED(OS_POSIX) AND NOT(DEFINED(ANDROID))}
/// <summary>
/// Specify whether signal handlers must be disabled on POSIX systems.
/// </summary>
disable_signal_handlers : Integer;
{$IFEND}
end;
/// <summary>

View File

@@ -1,9 +1,9 @@
CEF_SUPPORTED_VERSION_MAJOR = 127;
CEF_SUPPORTED_VERSION_MINOR = 1;
CEF_SUPPORTED_VERSION_RELEASE = 9;
CEF_SUPPORTED_VERSION_MINOR = 3;
CEF_SUPPORTED_VERSION_RELEASE = 1;
CEF_SUPPORTED_VERSION_BUILD = 0;
CEF_CHROMEELF_VERSION_MAJOR = CEF_SUPPORTED_VERSION_MAJOR;
CEF_CHROMEELF_VERSION_MINOR = 0;
CEF_CHROMEELF_VERSION_RELEASE = 6533;
CEF_CHROMEELF_VERSION_BUILD = 89;
CEF_CHROMEELF_VERSION_BUILD = 100;