mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-02 21:57:37 +02:00
parent
c88ec15bd4
commit
0bc8f373f8
16
README.md
16
README.md
@ -3,16 +3,16 @@ 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 94.4.1 which includes Chromium 94.0.4606.54.
|
CEF4Delphi uses CEF 94.4.2 which includes Chromium 94.0.4606.61.
|
||||||
|
|
||||||
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_94.4.1%2Bg4b61a8c%2Bchromium-94.0.4606.54_windows32.tar.bz2)
|
* [Windows 32 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.2%2Bg6a963ca%2Bchromium-94.0.4606.61_windows32.tar.bz2)
|
||||||
* [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.1%2Bg4b61a8c%2Bchromium-94.0.4606.54_windows64.tar.bz2)
|
* [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.2%2Bg6a963ca%2Bchromium-94.0.4606.61_windows64.tar.bz2)
|
||||||
* [Linux x86 32 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.1%2Bg4b61a8c%2Bchromium-94.0.4606.54_linux32.tar.bz2)
|
* [Linux x86 32 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.2%2Bg6a963ca%2Bchromium-94.0.4606.61_linux32.tar.bz2)
|
||||||
* [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.1%2Bg4b61a8c%2Bchromium-94.0.4606.54_linux64.tar.bz2)
|
* [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.2%2Bg6a963ca%2Bchromium-94.0.4606.61_linux64.tar.bz2)
|
||||||
* [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.1%2Bg4b61a8c%2Bchromium-94.0.4606.54_linuxarm.tar.bz2)
|
* [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.2%2Bg6a963ca%2Bchromium-94.0.4606.61_linuxarm.tar.bz2)
|
||||||
* [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.1%2Bg4b61a8c%2Bchromium-94.0.4606.54_linuxarm64.tar.bz2)
|
* [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.2%2Bg6a963ca%2Bchromium-94.0.4606.61_linuxarm64.tar.bz2)
|
||||||
* [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.1%2Bg4b61a8c%2Bchromium-94.0.4606.54_macosx64.tar.bz2)
|
* [MacOS x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_94.4.2%2Bg6a963ca%2Bchromium-94.0.4606.61_macosx64.tar.bz2)
|
||||||
|
|
||||||
CEF4Delphi was developed and tested on Delphi 11.0 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 10.2, Delphi 10.3, Delphi 10.4 and Lazarus 2.0.12/FPC 3.2.0. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components.
|
CEF4Delphi was developed and tested on Delphi 11.0 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 10.2, Delphi 10.3, Delphi 10.4 and Lazarus 2.0.12/FPC 3.2.0. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components.
|
||||||
|
|
||||||
|
@ -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="94" Minor="4" Release="1"/>
|
<Version Major="94" Minor="4" Release="2"/>
|
||||||
<Files Count="203">
|
<Files Count="203">
|
||||||
<Item1>
|
<Item1>
|
||||||
<Filename Value="..\source\uCEFAccessibilityHandler.pas"/>
|
<Filename Value="..\source\uCEFAccessibilityHandler.pas"/>
|
||||||
|
@ -66,13 +66,13 @@ uses
|
|||||||
const
|
const
|
||||||
CEF_SUPPORTED_VERSION_MAJOR = 94;
|
CEF_SUPPORTED_VERSION_MAJOR = 94;
|
||||||
CEF_SUPPORTED_VERSION_MINOR = 4;
|
CEF_SUPPORTED_VERSION_MINOR = 4;
|
||||||
CEF_SUPPORTED_VERSION_RELEASE = 1;
|
CEF_SUPPORTED_VERSION_RELEASE = 2;
|
||||||
CEF_SUPPORTED_VERSION_BUILD = 0;
|
CEF_SUPPORTED_VERSION_BUILD = 0;
|
||||||
|
|
||||||
CEF_CHROMEELF_VERSION_MAJOR = 94;
|
CEF_CHROMEELF_VERSION_MAJOR = 94;
|
||||||
CEF_CHROMEELF_VERSION_MINOR = 0;
|
CEF_CHROMEELF_VERSION_MINOR = 0;
|
||||||
CEF_CHROMEELF_VERSION_RELEASE = 4606;
|
CEF_CHROMEELF_VERSION_RELEASE = 4606;
|
||||||
CEF_CHROMEELF_VERSION_BUILD = 54;
|
CEF_CHROMEELF_VERSION_BUILD = 61;
|
||||||
|
|
||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
LIBCEF_DLL = 'libcef.dll';
|
LIBCEF_DLL = 'libcef.dll';
|
||||||
|
@ -431,10 +431,17 @@ type
|
|||||||
procedure DestroyExtensionHandler;
|
procedure DestroyExtensionHandler;
|
||||||
procedure DestroyAllHandlersAndObservers;
|
procedure DestroyAllHandlersAndObservers;
|
||||||
|
|
||||||
procedure CreateResourceRequestHandler;
|
procedure CreateResourceRequestHandler; virtual;
|
||||||
procedure CreateMediaObserver;
|
procedure CreateMediaObserver; virtual;
|
||||||
procedure CreateDevToolsMsgObserver;
|
procedure CreateDevToolsMsgObserver; virtual;
|
||||||
procedure CreateExtensionHandler;
|
procedure CreateExtensionHandler; virtual;
|
||||||
|
procedure CreateRequestContextHandler; virtual;
|
||||||
|
procedure CreateOptionsClasses; virtual;
|
||||||
|
procedure CreateSyncObjects; virtual;
|
||||||
|
procedure CreateBrowserInfoList; virtual;
|
||||||
|
{$IFDEF MSWINDOWS}
|
||||||
|
procedure CreateWindowWithWndProc; virtual;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
procedure InitializeEvents;
|
procedure InitializeEvents;
|
||||||
procedure InitializeSettings(var aSettings : TCefBrowserSettings);
|
procedure InitializeSettings(var aSettings : TCefBrowserSettings);
|
||||||
@ -1607,28 +1614,56 @@ begin
|
|||||||
FResourceRequestHandler := TCustomResourceRequestHandler.Create(self);
|
FResourceRequestHandler := TCustomResourceRequestHandler.Create(self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TChromiumCore.CreateOptionsClasses;
|
||||||
|
begin
|
||||||
|
if (Owner = nil) or not(csDesigning in ComponentState) then
|
||||||
|
begin
|
||||||
|
FOptions := TChromiumOptions.Create;
|
||||||
|
FFontOptions := TChromiumFontOptions.Create;
|
||||||
|
FPDFPrintOptions := TPDFPrintOptions.Create;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TChromiumCore.CreateSyncObjects;
|
||||||
|
begin
|
||||||
|
if (Owner = nil) or not(csDesigning in ComponentState) then
|
||||||
|
begin
|
||||||
|
FZoomStepCS := TCriticalSection.Create;
|
||||||
|
FBrowsersCS := TCriticalSection.Create;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TChromiumCore.CreateRequestContextHandler;
|
||||||
|
begin
|
||||||
|
if (Owner = nil) or not(csDesigning in ComponentState) then
|
||||||
|
FReqContextHandler := TCustomRequestContextHandler.Create(self);
|
||||||
|
end;
|
||||||
|
|
||||||
|
{$IFDEF MSWINDOWS}
|
||||||
|
procedure TChromiumCore.CreateWindowWithWndProc;
|
||||||
|
begin
|
||||||
|
if (Owner = nil) or not(csDesigning in ComponentState) then
|
||||||
|
FCompHandle := AllocateHWnd({$IFDEF FPC}@{$ENDIF}WndProc);
|
||||||
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
procedure TChromiumCore.CreateBrowserInfoList;
|
||||||
|
begin
|
||||||
|
if (Owner = nil) or not(csDesigning in ComponentState) then
|
||||||
|
FBrowsers := TBrowserInfoList.Create;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TChromiumCore.AfterConstruction;
|
procedure TChromiumCore.AfterConstruction;
|
||||||
begin
|
begin
|
||||||
inherited AfterConstruction;
|
inherited AfterConstruction;
|
||||||
|
|
||||||
try
|
CreateOptionsClasses;
|
||||||
if not(csDesigning in ComponentState) then
|
CreateSyncObjects;
|
||||||
begin
|
{$IFDEF MSWINDOWS}
|
||||||
{$IFDEF MSWINDOWS}
|
CreateWindowWithWndProc;
|
||||||
FCompHandle := AllocateHWnd({$IFDEF FPC}@{$ENDIF}WndProc);
|
{$ENDIF}
|
||||||
{$ENDIF}
|
CreateBrowserInfoList;
|
||||||
FBrowsers := TBrowserInfoList.Create;
|
CreateRequestContextHandler;
|
||||||
FOptions := TChromiumOptions.Create;
|
|
||||||
FFontOptions := TChromiumFontOptions.Create;
|
|
||||||
FPDFPrintOptions := TPDFPrintOptions.Create;
|
|
||||||
FZoomStepCS := TCriticalSection.Create;
|
|
||||||
FBrowsersCS := TCriticalSection.Create;
|
|
||||||
FReqContextHandler := TCustomRequestContextHandler.Create(self);
|
|
||||||
end;
|
|
||||||
except
|
|
||||||
on e : exception do
|
|
||||||
if CustomExceptionHandler('TChromiumCore.AfterConstruction', e) then raise;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TChromiumCore.CreateClientHandler(aIsOSR : boolean) : boolean;
|
function TChromiumCore.CreateClientHandler(aIsOSR : boolean) : boolean;
|
||||||
|
@ -607,7 +607,7 @@ begin
|
|||||||
Result.year := TempYear;
|
Result.year := TempYear;
|
||||||
Result.month := TempMonth;
|
Result.month := TempMonth;
|
||||||
Result.day_of_week := DayOfWeek(dt);
|
Result.day_of_week := DayOfWeek(dt);
|
||||||
Result.day_of_month := TempMonth;
|
Result.day_of_month := TempDay;
|
||||||
Result.hour := TempHour;
|
Result.hour := TempHour;
|
||||||
Result.minute := TempMin;
|
Result.minute := TempMin;
|
||||||
Result.second := TempSec;
|
Result.second := TempSec;
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 322,
|
"InternalVersion" : 323,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "94.4.1.0"
|
"Version" : "94.4.2.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpdatePackageData" : {
|
"UpdatePackageData" : {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user