Skip to content

Commit

Permalink
Updated to latest DCEF & Chromium 112
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Grange committed Apr 14, 2023
1 parent dbd1d9d commit cd27863
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 116 deletions.
18 changes: 10 additions & 8 deletions cefHtmlSnapshot.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,14 @@ uses

procedure RunAsSubProcess;
begin
GlobalCEFApp := TCefApplicationCore.Create;
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.EnableHighDPISupport := True;
GlobalCEFApp.ShowMessageDlg := False;
GlobalCEFApp.BlinkSettings := 'hideScrollbars';
GlobalCEFApp.StartSubProcess;
DestroyGlobalCEFApp;
GlobalCEFApp := TCefApplicationCore.Create;
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.ShowMessageDlg := False;
GlobalCEFApp.BlinkSettings := 'hideScrollbars';
GlobalCEFApp.NoSandbox := False;

GlobalCEFApp.StartSubProcess;
DestroyGlobalCEFApp;
end;

var
Expand Down Expand Up @@ -155,6 +156,7 @@ begin
Writeln(E.ClassName, ': ', E.Message);
end;
finally
DestroyGlobalCEFApp;
// just let windows kill the subprocess, it's dirty but faster
// DestroyGlobalCEFApp;
end;
end.
12 changes: 11 additions & 1 deletion cefHtmlSnapshot.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,16 @@
<DCC_Optimize>true</DCC_Optimize>
<DCC_GenerateStackFrames>false</DCC_GenerateStackFrames>
<DCC_MapFile>3</DCC_MapFile>
<Debugger_RunParams>D:\GC\cefHtmlSnapshot\test\report_4.mhtml test\snapshot4.txt</Debugger_RunParams>
<Debugger_RunParams>D:\GC\cefHtmlSnapshot\test\report_4.mhtml test\snapshot4.bmp</Debugger_RunParams>
<DCC_DebugInfoInTds>true</DCC_DebugInfoInTds>
<Icon_MainIcon>cefHtmlSnapshot_Icon.ico</Icon_MainIcon>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_MajorVer>0</VerInfo_MajorVer>
<VerInfo_MinorVer>8</VerInfo_MinorVer>
<VerInfo_Keys>CompanyName=delphitools.info;FileDescription=$(MSBuildProjectName);FileVersion=0.8.104.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
<VerInfo_Release>104</VerInfo_Release>
<PostBuildEvent><![CDATA["C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe" sign /n "Eric Grange" /tr http://timestamp.sectigo.com?td=sha256 /du https://delphitools.info/ /fd sha256 /td sha256 /v $(OUTPUTPATH)
$(PostBuildEvent)]]></PostBuildEvent>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''">
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
Expand Down Expand Up @@ -935,4 +937,12 @@
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
<Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/>
<PropertyGroup Condition="'$(Config)'=='Debug' And '$(Platform)'=='Win32'">
<PreBuildEvent/>
<PreBuildEventIgnoreExitCode>False</PreBuildEventIgnoreExitCode>
<PreLinkEvent/>
<PreLinkEventIgnoreExitCode>False</PreLinkEventIgnoreExitCode>
<PostBuildEvent>&quot;C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe&quot; sign /n &quot;Eric Grange&quot; /tr http://timestamp.sectigo.com?td=sha256 /du https://delphitools.info/ /fd sha256 /td sha256 /v $(OUTPUTPATH)</PostBuildEvent>
<PostBuildEventIgnoreExitCode>False</PostBuildEventIgnoreExitCode>
</PropertyGroup>
</Project>
Loading

0 comments on commit cd27863

Please sign in to comment.