You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Merge branch 'master' of https://github.com/salvadordf/CEF4Delphi
This commit is contained in:
@@ -138,6 +138,7 @@ type
|
||||
FAppSettings : TCefSettings;
|
||||
FDeviceScaleFactor : single;
|
||||
FCheckDevToolsResources : boolean;
|
||||
FCheckExtensions : boolean;
|
||||
FDisableGPUCache : boolean;
|
||||
FStatus : TCefAplicationStatus;
|
||||
FMissingLibFiles : string;
|
||||
@@ -259,6 +260,7 @@ type
|
||||
function FindFlashDLL(var aFileName : string) : boolean;
|
||||
procedure ShowErrorMessageDlg(const aError : string); virtual;
|
||||
function ParseProcessType : TCefProcessType;
|
||||
procedure DisableExtensions;
|
||||
|
||||
public
|
||||
constructor Create;
|
||||
@@ -355,6 +357,7 @@ type
|
||||
property ReRaiseExceptions : boolean read FReRaiseExceptions write FReRaiseExceptions;
|
||||
property DeviceScaleFactor : single read FDeviceScaleFactor;
|
||||
property CheckDevToolsResources : boolean read FCheckDevToolsResources write FCheckDevToolsResources;
|
||||
property CheckExtensions : boolean read FCheckExtensions write FCheckExtensions;
|
||||
property LocalesRequired : ustring read FLocalesRequired write FLocalesRequired;
|
||||
property CustomFlashPath : ustring read FCustomFlashPath write FCustomFlashPath;
|
||||
property ProcessType : TCefProcessType read FProcessType;
|
||||
@@ -507,6 +510,7 @@ begin
|
||||
FSetCurrentDir := False;
|
||||
FGlobalContextInitialized := False;
|
||||
FCheckDevToolsResources := True;
|
||||
FCheckExtensions := True;
|
||||
FDisableGPUCache := True;
|
||||
FLocalesRequired := '';
|
||||
FProcessType := ParseProcessType;
|
||||
@@ -580,6 +584,12 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCefApplication.DisableExtensions;
|
||||
begin
|
||||
CheckExtensions := False;
|
||||
AddCustomCommandLine('--disable-extensions');
|
||||
end;
|
||||
|
||||
procedure TCefApplication.AfterConstruction;
|
||||
begin
|
||||
inherited AfterConstruction;
|
||||
@@ -814,7 +824,7 @@ begin
|
||||
end;
|
||||
|
||||
TempMissingFrm := not(CheckDLLs(FFrameworkDirPath, FMissingLibFiles));
|
||||
TempMissingRsc := not(CheckResources(FResourcesDirPath, FMissingLibFiles, FCheckDevToolsResources));
|
||||
TempMissingRsc := not(CheckResources(FResourcesDirPath, FMissingLibFiles, FCheckDevToolsResources, FCheckExtensions));
|
||||
TempMissingLoc := not(CheckLocales(FLocalesDirPath, FMissingLibFiles, FLocalesRequired));
|
||||
|
||||
if TempMissingFrm or TempMissingRsc or TempMissingLoc then
|
||||
@@ -855,6 +865,7 @@ begin
|
||||
if not(Is32BitProcess) then
|
||||
Result := True
|
||||
else
|
||||
|
||||
begin
|
||||
FStatus := asErrorDLLVersion;
|
||||
TempString := 'Wrong CEF3 binaries !' +
|
||||
|
||||
Reference in New Issue
Block a user