1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-08-14 21:42:50 +02:00

Update to CEF 102.0.9

Added the fix for the resize issue #402 in macOS made by uniho
This commit is contained in:
salvadordf
2022-05-28 17:56:06 +02:00
parent 4d0de750c8
commit 983ed5d1d2
5 changed files with 34 additions and 17 deletions

View File

@@ -3,15 +3,15 @@ CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chro
CEF4Delphi is based on DCEF3 and fpCEF3. The original license of those projects still applies to CEF4Delphi. Read the license terms in the first lines of any *.pas file. CEF4Delphi is based on DCEF3 and fpCEF3. The original license of those projects still applies to CEF4Delphi. Read the license terms in the first lines of any *.pas file.
CEF4Delphi uses CEF 102.0.8 which includes Chromium 102.0.5005.61. CEF4Delphi uses CEF 102.0.9 which includes Chromium 102.0.5005.63.
The CEF binaries used by CEF4Delphi are available for download at Spotify : The CEF binaries used by CEF4Delphi are available for download at Spotify :
* [Windows 32 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.8%2Bg60bd108%2Bchromium-102.0.5005.61_windows32.tar.bz2) * [Windows 32 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.9%2Bg1c5e658%2Bchromium-102.0.5005.63_windows32.tar.bz2)
* [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.8%2Bg60bd108%2Bchromium-102.0.5005.61_windows64.tar.bz2) * [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.9%2Bg1c5e658%2Bchromium-102.0.5005.63_windows64.tar.bz2)
* [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.8%2Bg60bd108%2Bchromium-102.0.5005.61_linux64.tar.bz2) * [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.9%2Bg1c5e658%2Bchromium-102.0.5005.63_linux64.tar.bz2)
* [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.8%2Bg60bd108%2Bchromium-102.0.5005.61_linuxarm.tar.bz2) * [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.9%2Bg1c5e658%2Bchromium-102.0.5005.63_linuxarm.tar.bz2)
* [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.8%2Bg60bd108%2Bchromium-102.0.5005.61_linuxarm64.tar.bz2) * [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.9%2Bg1c5e658%2Bchromium-102.0.5005.63_linuxarm64.tar.bz2)
* [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.8%2Bg60bd108%2Bchromium-102.0.5005.61_macosx64.tar.bz2) * [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_102.0.9%2Bg1c5e658%2Bchromium-102.0.5005.63_macosx64.tar.bz2)
CEF4Delphi was developed and tested on Delphi 11.1 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 10.2, Delphi 10.3, Delphi 10.4 and Lazarus 2.2.2/FPC 3.2.2. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components. CEF4Delphi was developed and tested on Delphi 11.1 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 10.2, Delphi 10.3, Delphi 10.4 and Lazarus 2.2.2/FPC 3.2.2. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components.

View File

@@ -21,7 +21,7 @@
</CompilerOptions> </CompilerOptions>
<Description Value="CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC."/> <Description Value="CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC."/>
<License Value="MPL 1.1"/> <License Value="MPL 1.1"/>
<Version Major="102" Release="8"/> <Version Major="102" Release="9"/>
<Files Count="202"> <Files Count="202">
<Item1> <Item1>
<Filename Value="..\source\uCEFAccessibilityHandler.pas"/> <Filename Value="..\source\uCEFAccessibilityHandler.pas"/>

View File

@@ -68,13 +68,13 @@ uses
const const
CEF_SUPPORTED_VERSION_MAJOR = 102; CEF_SUPPORTED_VERSION_MAJOR = 102;
CEF_SUPPORTED_VERSION_MINOR = 0; CEF_SUPPORTED_VERSION_MINOR = 0;
CEF_SUPPORTED_VERSION_RELEASE = 8; CEF_SUPPORTED_VERSION_RELEASE = 9;
CEF_SUPPORTED_VERSION_BUILD = 0; CEF_SUPPORTED_VERSION_BUILD = 0;
CEF_CHROMEELF_VERSION_MAJOR = 101; CEF_CHROMEELF_VERSION_MAJOR = 101;
CEF_CHROMEELF_VERSION_MINOR = 0; CEF_CHROMEELF_VERSION_MINOR = 0;
CEF_CHROMEELF_VERSION_RELEASE = 5005; CEF_CHROMEELF_VERSION_RELEASE = 5005;
CEF_CHROMEELF_VERSION_BUILD = 61; CEF_CHROMEELF_VERSION_BUILD = 63;
{$IFDEF MSWINDOWS} {$IFDEF MSWINDOWS}
LIBCEF_DLL = 'libcef.dll'; LIBCEF_DLL = 'libcef.dll';

View File

@@ -56,9 +56,7 @@ uses
{$IFDEF MSWINDOWS}WinApi.Windows, WinApi.Messages,{$ENDIF} System.Classes, Vcl.Controls, Vcl.Graphics, {$IFDEF MSWINDOWS}WinApi.Windows, WinApi.Messages,{$ENDIF} System.Classes, Vcl.Controls, Vcl.Graphics,
{$ELSE} {$ELSE}
{$IFDEF MSWINDOWS}Windows, Messages,{$ENDIF} Classes, Controls, {$IFDEF MSWINDOWS}Windows, Messages,{$ENDIF} Classes, Controls,
{$IFDEF FPC} {$IFDEF FPC}{$IFDEF MACOSX}CocoaAll,{$ENDIF}LCLProc, LCLType, LCLIntf,{$ENDIF}
LCLProc, LCLType, LCLIntf,
{$ENDIF}
{$ENDIF} {$ENDIF}
uCEFTypes, uCEFInterfaces, uCEFWinControl, uCEFChromium; uCEFTypes, uCEFInterfaces, uCEFWinControl, uCEFChromium;
@@ -161,14 +159,33 @@ end;
{$ENDIF} {$ENDIF}
procedure TCEFLinkedWinControlBase.UpdateSize; procedure TCEFLinkedWinControlBase.UpdateSize;
{$IFDEF MACOSX}{$IFDEF FPC}
var
TempSize: NSSize;
{$ENDIF}{$ENDIF}
begin begin
{$IFDEF MSWINDOWS}
inherited UpdateSize;
{$ENDIF}
{$IFDEF LINUX} {$IFDEF LINUX}
if not(csDesigning in ComponentState) and if not(csDesigning in ComponentState) and
(Chromium <> nil) and (Chromium <> nil) and
Chromium.Initialized then Chromium.Initialized then
Chromium.UpdateBrowserSize(Left, Top, Width, Height); Chromium.UpdateBrowserSize(Left, Top, Width, Height);
{$ELSE} {$ENDIF}
inherited UpdateSize;
{$IFDEF MACOSX}
{$IFDEF FPC}
if not(csDesigning in ComponentState) and
(Chromium <> nil) and
Chromium.Initialized then
begin
TempSize.width:= Width;
TempSize.height:= Height;
NSView(Chromium.WindowHandle).setFrameSize(TempSize);
end;
{$ENDIF}
{$ENDIF} {$ENDIF}
end; end;

View File

@@ -2,9 +2,9 @@
"UpdateLazPackages" : [ "UpdateLazPackages" : [
{ {
"ForceNotify" : true, "ForceNotify" : true,
"InternalVersion" : 396, "InternalVersion" : 397,
"Name" : "cef4delphi_lazarus.lpk", "Name" : "cef4delphi_lazarus.lpk",
"Version" : "102.0.8.0" "Version" : "102.0.9.0"
} }
], ],
"UpdatePackageData" : { "UpdatePackageData" : {