1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-02-02 10:25:26 +02:00

Added IsCEFSubprocess

Added more XML documentation.
This commit is contained in:
salvadordf 2024-01-15 17:11:40 +01:00
parent 805be3e780
commit a3b19dd290
4 changed files with 16 additions and 2 deletions

View File

@ -15,7 +15,7 @@ The CEF binaries used by CEF4Delphi are available for download at Spotify :
CEF4Delphi was developed and tested on Delphi 12.0 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 11 and Lazarus 3.0/FPC 3.2.2. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components.
CEF4Delphi demos have been tested in Windows 10, Windows 11, Linux Mint 21.2 and Raspberry Pi OS.
CEF4Delphi demos have been tested in Windows 10, Windows 11, Linux Mint 21.3 and Raspberry Pi OS.
## Links
* [Installation instructions and more information about CEF4Delphi](https://www.briskbard.com/index.php?lang=en&pageid=cef)

Binary file not shown.

View File

@ -796,7 +796,14 @@ function CefGetDataURI(aData : pointer; aSize : integer; const aMimeType : ustri
function ValidCefWindowHandle(aHandle : TCefWindowHandle) : boolean;
procedure InitializeWindowHandle(var aHandle : TCefWindowHandle);
/// <summary>
/// Returns a command line switch value if it exists.
/// </summary>
function GetCommandLineSwitchValue(const aKey : string; var aValue : ustring) : boolean;
/// <summary>
/// Returns true if the command line switch has a "type" value.
/// </summary>
function IsCEFSubprocess : boolean;
implementation
@ -3359,4 +3366,11 @@ begin
dec(i);
end;
function IsCEFSubprocess : boolean;
var
TempValue : ustring;
begin
Result := GetCommandLineSwitchValue('type', TempValue) and (length(TempValue) > 0);
end;
end.

View File

@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 554,
"InternalVersion" : 555,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "120.2.5"
}