mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-15 15:55:56 +01:00
Added the GlobalCEFApp.BlinkSettings property
This commit is contained in:
parent
b118999a56
commit
8a28f9fea9
@ -142,6 +142,7 @@ type
|
||||
FDisableFeatures : ustring;
|
||||
FEnableBlinkFeatures : ustring;
|
||||
FDisableBlinkFeatures : ustring;
|
||||
FBlinkSettings : ustring;
|
||||
FForceFieldTrials : ustring;
|
||||
FForceFieldTrialParams : ustring;
|
||||
FChromeVersionInfo : TFileVersionInfo;
|
||||
@ -405,6 +406,7 @@ type
|
||||
property DisableFeatures : ustring read FDisableFeatures write FDisableFeatures; // --disable-features
|
||||
property EnableBlinkFeatures : ustring read FEnableBlinkFeatures write FEnableBlinkFeatures; // --enable-blink-features
|
||||
property DisableBlinkFeatures : ustring read FDisableBlinkFeatures write FDisableBlinkFeatures; // --disable-blink-features
|
||||
property BlinkSettings : ustring read FBlinkSettings write FBlinkSettings; // --blink-settings
|
||||
property ForceFieldTrials : ustring read FForceFieldTrials write FForceFieldTrials; // --force-fieldtrials
|
||||
property ForceFieldTrialParams : ustring read FForceFieldTrialParams write FForceFieldTrialParams; // --force-fieldtrial-params
|
||||
property SmoothScrolling : TCefState read FSmoothScrolling write FSmoothScrolling; // --enable-smooth-scrolling
|
||||
@ -674,6 +676,7 @@ begin
|
||||
FDisableBlinkFeatures := '';
|
||||
FForceFieldTrials := '';
|
||||
FForceFieldTrialParams := '';
|
||||
FBlinkSettings := '';
|
||||
FSupportedSchemes := nil;
|
||||
FDisableNewBrowserInfoTimeout := False;
|
||||
FDevToolsProtocolLogFile := '';
|
||||
@ -1842,6 +1845,11 @@ begin
|
||||
if (length(FDisableBlinkFeatures) > 0) then
|
||||
AppendSwitch(aKeys, aValues, '--disable-blink-features', FDisableBlinkFeatures);
|
||||
|
||||
// The list of Blink settings you can modify is here :
|
||||
// https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/settings.json5
|
||||
if (length(FBlinkSettings) > 0) then
|
||||
ReplaceSwitch(aKeys, aValues, '--blink-settings', FBlinkSettings);
|
||||
|
||||
// https://source.chromium.org/chromium/chromium/src/+/master:base/base_switches.cc
|
||||
if (length(FForceFieldTrials) > 0) then
|
||||
ReplaceSwitch(aKeys, aValues, '--force-fieldtrials', FForceFieldTrials);
|
||||
|
@ -2,7 +2,7 @@
|
||||
"UpdateLazPackages" : [
|
||||
{
|
||||
"ForceNotify" : true,
|
||||
"InternalVersion" : 193,
|
||||
"InternalVersion" : 194,
|
||||
"Name" : "cef4delphi_lazarus.lpk",
|
||||
"Version" : "86.0.18.0"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user