From 0aa4ac493acbde4ea32b1b7994a5d02d9ac01987 Mon Sep 17 00:00:00 2001 From: Eric Grange Date: Fri, 22 Jan 2021 17:43:17 +0100 Subject: [PATCH] Updated for CEF 88.1.4 (Chromium 88.0.4324.96) --- cefHtmlSnapshot.dpr | 8 ++++++++ cefHtmlSnapshot.dproj | 3 ++- cefHtmlSnapshot.res | Bin 117224 -> 117228 bytes uCEFSnapshotParameters.pas | 6 +++--- uEncapsulatedBrowser.pas | 9 +++++---- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/cefHtmlSnapshot.dpr b/cefHtmlSnapshot.dpr index a1ac483..cd02041 100644 --- a/cefHtmlSnapshot.dpr +++ b/cefHtmlSnapshot.dpr @@ -39,6 +39,8 @@ program cefHtmlSnapshot; {$I cef.inc} +{.$define USE_BUNDLE} + {$APPTYPE CONSOLE} {$IFDEF WIN32} @@ -58,6 +60,7 @@ uses SysUtils, {$ENDIF } uCEFApplication, uCEFApplicationCore, + {$ifdef USE_BUNDLE} UChromiumBundle,{$endif} uEncapsulatedBrowser in 'uEncapsulatedBrowser.pas', uCEFBrowserThread in 'uCEFBrowserThread.pas', uCEFSnapshotParameters in 'uCEFSnapshotParameters.pas'; @@ -134,7 +137,12 @@ begin end; try try + {$ifdef USE_BUNDLE} + vChromiumBundleQuickCheck := True; + CreateGlobalCEFApp(parameters, ChromiumUnBundledPath); + {$else} CreateGlobalCEFApp(parameters); + {$endif} if WaitForMainAppEvent then WriteResult; except diff --git a/cefHtmlSnapshot.dproj b/cefHtmlSnapshot.dproj index 3d00d6c..8dcd62e 100644 --- a/cefHtmlSnapshot.dproj +++ b/cefHtmlSnapshot.dproj @@ -95,7 +95,8 @@ true 0 1 - CompanyName=delphitools.info;FileDescription=$(MSBuildProjectName);FileVersion=0.1.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments= + CompanyName=delphitools.info;FileDescription=$(MSBuildProjectName);FileVersion=0.1.88.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments= + 88 false diff --git a/cefHtmlSnapshot.res b/cefHtmlSnapshot.res index 75d5418459fc658fabd184cbc7605e22d33e3b65..30c43ae2f8cb3c17fbd508fa88cd1456ff481132 100644 GIT binary patch delta 60 zcmaDcnf=XV_6Z7%ITID-frO(eW5mRARmL+D=PEO