1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-08-04 21:32:54 +02:00

Update to CEF 138.0.15
Some checks failed
Make / build (ubuntu-latest) (push) Has been cancelled

This commit is contained in:
Salvador Díaz Fau
2025-06-28 18:43:55 +02:00
parent 44d91fbc74
commit 92278a395b
26 changed files with 4494 additions and 3691 deletions

View File

@ -4246,9 +4246,11 @@ end;
function TCefApplicationCore.Load_cef_version_info_h : boolean;
begin
{$IFDEF FPC}Pointer({$ENDIF}cef_version_info{$IFDEF FPC}){$ENDIF} := GetProcAddress(FLibHandle, 'cef_version_info');
{$IFDEF FPC}Pointer({$ENDIF}cef_version_info{$IFDEF FPC}){$ENDIF} := GetProcAddress(FLibHandle, 'cef_version_info');
{$IFDEF FPC}Pointer({$ENDIF}cef_version_info_all{$IFDEF FPC}){$ENDIF} := GetProcAddress(FLibHandle, 'cef_version_info_all');
Result := assigned(cef_version_info);
Result := assigned(cef_version_info) and
assigned(cef_version_info_all);
end;
function TCefApplicationCore.Load_cef_id_mappers_h : boolean;

View File

@ -5522,7 +5522,7 @@ begin
aSettings.text_area_resize := FOptions.TextAreaResize;
aSettings.tab_to_links := FOptions.TabToLinks;
aSettings.local_storage := FOptions.LocalStorage;
aSettings.databases := FOptions.Databases;
aSettings.databases_deprecated := FOptions.Databases;
aSettings.webgl := FOptions.Webgl;
aSettings.background_color := FOptions.BackgroundColor;
aSettings.chrome_status_bubble := FOptions.ChromeStatusBubble;

View File

@ -104,6 +104,9 @@ type
/// Controls whether databases can be used. Also configurable using the
/// "disable-databases" command-line switch.
/// </summary>
/// <remarks>
/// <para>Deprecated since CEF 138</para>
/// </remarks>
property Databases : TCefState read FDatabases write FDatabases default STATE_DEFAULT;
/// <summary>
/// Controls whether WebGL can be used. Note that WebGL requires hardware

View File

@ -2116,6 +2116,69 @@ const
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_errorcode_t)</see></para>
/// </remarks>
ERR_DNS_SECURE_PROBE_RECORD_INVALID = -814;
/// <summary>
/// The following errors are for mapped from a subset of invalid
/// storage::BlobStatus.
/// The construction arguments are invalid. This is considered a bad IPC.
/// </summary>
/// <remarks>
/// <para>TCefErrorCode value.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_errorcode_t)</see></para>
/// </remarks>
ERR_BLOB_INVALID_CONSTRUCTION_ARGUMENTS = -900;
/// <summary>
/// We don't have enough memory for the blob.
/// </summary>
/// <remarks>
/// <para>TCefErrorCode value.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_errorcode_t)</see></para>
/// </remarks>
ERR_BLOB_OUT_OF_MEMORY = -901;
/// <summary>
/// We couldn't create or write to a file. File system error, like a full disk.
/// </summary>
/// <remarks>
/// <para>TCefErrorCode value.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_errorcode_t)</see></para>
/// </remarks>
ERR_BLOB_FILE_WRITE_FAILED = -902;
/// <summary>
/// The renderer was destroyed while data was in transit.
/// </summary>
/// <remarks>
/// <para>TCefErrorCode value.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_errorcode_t)</see></para>
/// </remarks>
ERR_BLOB_SOURCE_DIED_IN_TRANSIT = -903;
/// <summary>
/// The renderer destructed the blob before it was done transferring, and there
/// were no outstanding references (no one is waiting to read) to keep the
/// blob alive.
/// </summary>
/// <remarks>
/// <para>TCefErrorCode value.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_errorcode_t)</see></para>
/// </remarks>
ERR_BLOB_DEREFERENCED_WHILE_BUILDING = -904;
/// <summary>
/// A blob that we referenced during construction is broken, or a browser-side
/// builder tries to build a blob with a blob reference that isn't finished
/// constructing.
/// </summary>
/// <remarks>
/// <para>TCefErrorCode value.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_errorcode_t)</see></para>
/// </remarks>
ERR_BLOB_REFERENCED_BLOB_BROKEN = -905;
/// <summary>
/// A file that we referenced during construction is not accessible to the
/// renderer trying to create the blob.
/// </summary>
/// <remarks>
/// <para>TCefErrorCode value.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_errorcode_t)</see></para>
/// </remarks>
ERR_BLOB_REFERENCED_FILE_UNAVAILABLE = -906;
/// <summary>
@ -2389,6 +2452,7 @@ const
IDC_CONTENT_CONTEXT_OPENLINKINPROFILE = 50108;
IDC_CONTENT_CONTEXT_OPENLINKBOOKMARKAPP = 50109;
IDC_CONTENT_CONTEXT_OPENLINKPREVIEW = 50110;
IDC_CONTENT_CONTEXT_OPENLINKSPLITVIEW = 50111;
IDC_CONTENT_CONTEXT_SAVEIMAGEAS = 50120;
IDC_CONTENT_CONTEXT_COPYIMAGELOCATION = 50121;
IDC_CONTENT_CONTEXT_COPYIMAGE = 50122;
@ -4453,7 +4517,7 @@ IDC_GLIC_TOGGLE_PIN = 53320;
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_resultcode_t)</see></para>
/// <para><see href="https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/chrome_result_codes.h">See chrome::ResultCode type.</see></para>
/// </remarks>
CEF_RESULT_CODE_BAD_PROCESS_TYPE = 6;
CEF_RESULT_CODE_BAD_PROCESS_TYPE = 6; {* CEF_API_ADDED(13800) *}
/// <summary>
/// A critical chrome file is missing.
/// </summary>
@ -4754,6 +4818,15 @@ IDC_GLIC_TOGGLE_PIN = 53320;
/// </remarks>
CEF_RESULT_CODE_SYSTEM_RESOURCE_EXHAUSTED = 37;
/// <summary>
/// The browser process exited because it was re-launched without elevation.
/// </summary>
/// <remarks>
/// <para>TCefResultCode value.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_resultcode_t)</see></para>
/// <para><see href="https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/chrome_result_codes.h">See chrome::ResultCode type.</see></para>
/// </remarks>
CEF_RESULT_CODE_NORMAL_EXIT_AUTO_DE_ELEVATED = 38; {* CEF_API_ADDED(13800) *}
/// <summary>
/// Last Chrome result code.
/// </summary>
/// <remarks>
@ -4761,7 +4834,7 @@ IDC_GLIC_TOGGLE_PIN = 53320;
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h">CEF source file: /include/internal/cef_types.h (cef_resultcode_t)</see></para>
/// <para><see href="https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/chrome_result_codes.h">See chrome::ResultCode type.</see></para>
/// </remarks>
CEF_RESULT_CODE_CHROME_LAST = 38;
CEF_RESULT_CODE_CHROME_LAST = 39;
/// <summary>
/// First Sandbox result code.
/// </summary>

View File

@ -34,6 +34,7 @@ var
// /include/cef_version_info.h
cef_version_info : function(entry: integer) : integer; cdecl;
cef_version_info_all : procedure(info: PCefVersionInfoEx); cdecl; {* CEF_API_ADDED(13800) *}
// /include/cef_id_mappers.h
cef_id_for_pack_resource_name : function(const name : PAnsiChar) : integer; cdecl;

View File

@ -223,6 +223,7 @@ type
PCefAcceleratedPaintInfo = ^TCefAcceleratedPaintInfo;
PCefLinuxWindowProperties = ^TCefLinuxWindowProperties;
PCefTaskInfo = ^TCefTaskInfo;
PCefVersionInfoEx = ^TCefVersionInfoEx;
{$IFDEF FPC}
NativeInt = PtrInt;
@ -672,6 +673,7 @@ type
/// 600-699 <Obsolete: FTP errors>
/// 700-799 Certificate manager errors
/// 800-899 DNS resolver errors
/// 900-999 Blob errors
/// </code>
/// </summary>
/// <remarks>
@ -1028,6 +1030,28 @@ type
/// </summary>
TCefCustomInt64Array = array of int64;
/// <summary>
/// Structure representing all CEF version information.
/// </summary>
/// <remarks>
/// <para>CEF4Delphi already had a TCefVersionInfo type. This record has more information than TCefVersionInfo so we call it TCefVersionInfoEx.
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/cef_version_info.h">CEF source file: /include/cef_version_info.h (cef_version_info_t)</see></para>
/// </remarks>
TCefVersionInfoEx = record {* CEF_API_ADDED(13800) *}
/// <summary>
/// Size of this structure.
/// </summary>
size : NativeUInt;
cef_version_major : integer;
cef_version_minor : integer;
cef_version_patch : integer;
cef_commit_number : integer;
chrome_version_major : integer;
chrome_version_minor : integer;
chrome_version_build : integer;
chrome_version_patch : integer;
end;
{$IFDEF MSWINDOWS}
/// <summary>
/// Record used with GetGlobalMemoryStatusEx to get the memory status.
@ -3396,6 +3420,7 @@ type
CEF_CPAIT_OPTIMIZATION_GUIDE,
CEF_CPAIT_COLLABORATION_MESSAGING, {* CEF_API_ADDED(13304) *}
CEF_CPAIT_CHANGE_PASSWORD, {* CEF_API_ADDED(13400) *}
CEF_CPAIT_LENS_OVERLAY_HOMEWORK, {* CEF_API_ADDED(13800) *}
CEF_CPAIT_NUM_VALUES
);
@ -4447,7 +4472,7 @@ type
/// Controls whether databases can be used. Also configurable using the
/// "disable-databases" command-line switch.
/// </summary>
databases : TCefState;
databases_deprecated : TCefState; {* CEF_API_ADDED(13800) *}
/// <summary>
/// Controls whether WebGL can be used. Note that WebGL requires hardware
/// support and may not work on all systems even when enabled. Also
@ -5186,7 +5211,7 @@ type
/// See also: https://wicg.github.io/cors-rfc1918
/// Set through enterprise policies only.
/// </summary>
CEF_CONTENT_SETTING_TYPE_INSECURE_PRIVATE_NETWORK,
CEF_CONTENT_SETTING_TYPE_INSECURE_PRIVATE_NETWORK_DEPRECATED, {* CEF_API_ADDED(13800) *}
/// <summary>
/// Content setting which stores whether or not a site can access low-level
/// locally installed font data using the Local Fonts Access API.
@ -5505,6 +5530,22 @@ type
/// requests.
/// </summary>
CEF_CONTENT_SETTING_TYPE_LOCAL_NETWORK_ACCESS, {* CEF_API_ADDED(13600) *}
/// <summary>
/// Stores information on-device language packs for which a site has
/// installed using the Web Speech API.
/// </summary>
CEF_CONTENT_SETTING_TYPE_ON_DEVICE_SPEECH_RECOGNITION_LANGUAGES_DOWNLOADED, {* CEF_API_ADDED(13800) *}
/// <summary>
/// Stores which Translator API language packs the site has initialized.
/// </summary>
CEF_CONTENT_SETTING_TYPE_INITIALIZED_TRANSLATIONS, {* CEF_API_ADDED(13800) *}
/// <summary>
/// Stores a list of notification ids where content detection found the
/// notification to be suspicious and a warning has already been shown for the
/// site. Used for recovering notification contents from the database if the
/// user decides they would like to see all of these notifications.
/// </summary>
CEF_CONTENT_SETTING_TYPE_SUSPICIOUS_NOTIFICATION_IDS, {* CEF_API_ADDED(13800) *}
CEF_CONTENT_SETTING_TYPE_NUM_VALUES
);

View File

@ -1,22 +1,22 @@
CEF_SUPPORTED_VERSION_MAJOR = 137;
CEF_SUPPORTED_VERSION_MAJOR = 138;
CEF_SUPPORTED_VERSION_MINOR = 0;
CEF_SUPPORTED_VERSION_RELEASE = 19;
CEF_SUPPORTED_VERSION_RELEASE = 15;
CEF_SUPPORTED_VERSION_BUILD = 0;
CEF_CHROMEELF_VERSION_MAJOR = CEF_SUPPORTED_VERSION_MAJOR;
CEF_CHROMEELF_VERSION_MINOR = 0;
CEF_CHROMEELF_VERSION_RELEASE = 7151;
CEF_CHROMEELF_VERSION_BUILD = 121;
CEF_CHROMEELF_VERSION_RELEASE = 7204;
CEF_CHROMEELF_VERSION_BUILD = 50;
// values defined in cef_api_versions.json
CEF_API_VERSION_MIN = 13300;
CEF_API_VERSION_LAST = 13700;
CEF_API_VERSION_LAST = 13800;
CEF_API_VERSION = CEF_API_VERSION_LAST;
// value defined in /include/cef_api_hash.h
CEF_API_VERSION_EXPERIMENTAL = 999999;
// values defined in cef_api_versions.json
CEF_API_HASH_PLATFORM_LINUX = 'e5ac12b1bd88b9ece6ceaa57848aaba61ab85242';
CEF_API_HASH_PLATFORM_MAC = '9e84009c92c25aa80935727b5e4526b23439a575';
CEF_API_HASH_PLATFORM_WINDOWS = '65c7157dd3e8eba9bcc38db2bd7f26508c717f3e';
CEF_API_HASH_PLATFORM_LINUX = '72c83a1455706c0f964505a6edcbf00c4a00575d';
CEF_API_HASH_PLATFORM_MAC = '09110c1f3bbe0e8a8c26ddf6df3388d73a6593d1';
CEF_API_HASH_PLATFORM_WINDOWS = '1cde3ec27f93747ba42c0f2aa00467a5a16adfd4';