You've already forked CEF4Delphi
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:
@@ -183,6 +183,8 @@ type
|
|||||||
FOverrideSpellCheckLang : string;
|
FOverrideSpellCheckLang : string;
|
||||||
FEnablePrintPreview : boolean;
|
FEnablePrintPreview : boolean;
|
||||||
FTouchEvents : TCefState;
|
FTouchEvents : TCefState;
|
||||||
|
FDisableReadingFromCanvas : boolean;
|
||||||
|
FHyperlinkAuditing : boolean;
|
||||||
|
|
||||||
FMustCreateResourceBundleHandler : boolean;
|
FMustCreateResourceBundleHandler : boolean;
|
||||||
FMustCreateBrowserProcessHandler : boolean;
|
FMustCreateBrowserProcessHandler : boolean;
|
||||||
@@ -426,6 +428,8 @@ type
|
|||||||
property DisableSpellChecking : boolean read FDisableSpellChecking write FDisableSpellChecking; // --disable-spell-checking
|
property DisableSpellChecking : boolean read FDisableSpellChecking write FDisableSpellChecking; // --disable-spell-checking
|
||||||
property OverrideSpellCheckLang : string read FOverrideSpellCheckLang write FOverrideSpellCheckLang; // --override-spell-check-lang
|
property OverrideSpellCheckLang : string read FOverrideSpellCheckLang write FOverrideSpellCheckLang; // --override-spell-check-lang
|
||||||
property TouchEvents : TCefState read FTouchEvents write FTouchEvents; // --touch-events
|
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
|
// Properties used during the CEF initialization
|
||||||
property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo;
|
property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo;
|
||||||
@@ -668,6 +672,8 @@ begin
|
|||||||
FOverrideSpellCheckLang := '';
|
FOverrideSpellCheckLang := '';
|
||||||
FEnablePrintPreview := False;
|
FEnablePrintPreview := False;
|
||||||
FTouchEvents := STATE_DEFAULT;
|
FTouchEvents := STATE_DEFAULT;
|
||||||
|
FDisableReadingFromCanvas := False;
|
||||||
|
FHyperlinkAuditing := True;
|
||||||
|
|
||||||
FMustCreateResourceBundleHandler := False;
|
FMustCreateResourceBundleHandler := False;
|
||||||
FMustCreateBrowserProcessHandler := True;
|
FMustCreateBrowserProcessHandler := True;
|
||||||
@@ -1586,6 +1592,12 @@ begin
|
|||||||
STATE_DISABLED : commandLine.AppendSwitchWithValue('--touch-events', 'disabled');
|
STATE_DISABLED : commandLine.AppendSwitchWithValue('--touch-events', 'disabled');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if FDisableReadingFromCanvas then
|
||||||
|
commandLine.AppendSwitch('--disable-reading-from-canvas');
|
||||||
|
|
||||||
|
if not(FHyperlinkAuditing) then
|
||||||
|
commandLine.AppendSwitch('--no-pings');
|
||||||
|
|
||||||
case FAutoplayPolicy of
|
case FAutoplayPolicy of
|
||||||
appDocumentUserActivationRequired :
|
appDocumentUserActivationRequired :
|
||||||
commandLine.AppendSwitchWithValue('--autoplay-policy', 'document-user-activation-required');
|
commandLine.AppendSwitchWithValue('--autoplay-policy', 'document-user-activation-required');
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 49,
|
"InternalVersion" : 50,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "77.1.18.0"
|
"Version" : "77.1.18.0"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user