diff --git a/README.md b/README.md index fa117bbe..339b334b 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/docs/cef4delphi.chm b/docs/cef4delphi.chm index 6d26075d..013c204b 100644 Binary files a/docs/cef4delphi.chm and b/docs/cef4delphi.chm differ diff --git a/source/uCEFMiscFunctions.pas b/source/uCEFMiscFunctions.pas index ce730eef..eeefa417 100644 --- a/source/uCEFMiscFunctions.pas +++ b/source/uCEFMiscFunctions.pas @@ -796,7 +796,14 @@ function CefGetDataURI(aData : pointer; aSize : integer; const aMimeType : ustri function ValidCefWindowHandle(aHandle : TCefWindowHandle) : boolean; procedure InitializeWindowHandle(var aHandle : TCefWindowHandle); +/// +/// Returns a command line switch value if it exists. +/// function GetCommandLineSwitchValue(const aKey : string; var aValue : ustring) : boolean; +/// +/// Returns true if the command line switch has a "type" value. +/// +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. diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json index ec528a6d..33623f20 100644 --- a/update_CEF4Delphi.json +++ b/update_CEF4Delphi.json @@ -2,7 +2,7 @@ "UpdateLazPackages" : [ { "ForceNotify" : true, - "InternalVersion" : 554, + "InternalVersion" : 555, "Name" : "cef4delphi_lazarus.lpk", "Version" : "120.2.5" }