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

Added GlobalCEFApp.DisableReadingFromCanvas

Added GlobalCEFApp.HyperlinkAuditing
This commit is contained in:
Salvador Díaz Fau
2019-10-28 09:56:15 +01:00
parent 2f63378da4
commit d8ea60d8fd
2 changed files with 13 additions and 1 deletions

View File

@@ -183,6 +183,8 @@ type
FOverrideSpellCheckLang : string;
FEnablePrintPreview : boolean;
FTouchEvents : TCefState;
FDisableReadingFromCanvas : boolean;
FHyperlinkAuditing : boolean;
FMustCreateResourceBundleHandler : boolean;
FMustCreateBrowserProcessHandler : boolean;
@@ -426,6 +428,8 @@ type
property DisableSpellChecking : boolean read FDisableSpellChecking write FDisableSpellChecking; // --disable-spell-checking
property OverrideSpellCheckLang : string read FOverrideSpellCheckLang write FOverrideSpellCheckLang; // --override-spell-check-lang
property TouchEvents : TCefState read FTouchEvents write FTouchEvents; // --touch-events
property DisableReadingFromCanvas : boolean read FDisableReadingFromCanvas write FDisableReadingFromCanvas; // --disable-reading-from-canvas
property HyperlinkAuditing : boolean read FHyperlinkAuditing write FHyperlinkAuditing; // --no-pings
// Properties used during the CEF initialization
property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo;
@@ -668,6 +672,8 @@ begin
FOverrideSpellCheckLang := '';
FEnablePrintPreview := False;
FTouchEvents := STATE_DEFAULT;
FDisableReadingFromCanvas := False;
FHyperlinkAuditing := True;
FMustCreateResourceBundleHandler := False;
FMustCreateBrowserProcessHandler := True;
@@ -1586,6 +1592,12 @@ begin
STATE_DISABLED : commandLine.AppendSwitchWithValue('--touch-events', 'disabled');
end;
if FDisableReadingFromCanvas then
commandLine.AppendSwitch('--disable-reading-from-canvas');
if not(FHyperlinkAuditing) then
commandLine.AppendSwitch('--no-pings');
case FAutoplayPolicy of
appDocumentUserActivationRequired :
commandLine.AppendSwitchWithValue('--autoplay-policy', 'document-user-activation-required');

View File

@@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 49,
"InternalVersion" : 50,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "77.1.18.0"
}