1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-06-22 22:17:48 +02:00
Files
CEF4Delphi/demos/Delphi_FMX_Mac/FMXExternalPumpBrowser/uCEFLoader.pas

29 lines
525 B
ObjectPascal
Raw Normal View History

unit uCEFLoader;
{$I ..\..\..\source\cef.inc}
interface
uses
uCEFApplicationCore;
implementation
procedure StartCEFSubprocess;
begin
GlobalCEFApp := TCefApplicationCore.Create;
GlobalCEFApp.WindowlessRenderingEnabled := True;
GlobalCEFApp.ExternalMessagePump := True;
GlobalCEFApp.MultiThreadedMessageLoop := False;
GlobalCEFApp.InitLibLocationFromArgs;
GlobalCEFApp.StartSubProcess;
end;
initialization
StartCEFSubprocess;
finalization
DestroyGlobalCEFApp;
end.