You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
Added IsCEFSubprocess
Added more XML documentation.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user