mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-16 08:15:55 +01:00
9e5b90303c
Remove unused uCEFSentinel references. Remove duplicated licenses.
36 lines
954 B
ObjectPascal
36 lines
954 B
ObjectPascal
program MobileBrowser;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
cthreads,
|
|
{$ENDIF}{$ENDIF}
|
|
Interfaces, // this includes the LCL widgetset
|
|
Forms, uCEFApplication, uCEFConstants,
|
|
uMobileBrowser in 'uMobileBrowser.pas' {Form1};
|
|
|
|
{.$R *.res}
|
|
|
|
begin
|
|
CreateGlobalCEFApp;
|
|
|
|
// You *MUST* call GlobalCEFApp.StartMainProcess in a if..then clause
|
|
// with the Application initialization inside the begin..end.
|
|
// Read this https://www.briskbard.com/index.php?lang=en&pageid=cef
|
|
if GlobalCEFApp.StartMainProcess then
|
|
begin
|
|
// The LCL Widgetset must be initialized after the CEF initialization and
|
|
// only in the browser process.
|
|
CustomWidgetSetInitialization;
|
|
RequireDerivedFormResource:=True;
|
|
Application.Scaled:=True;
|
|
Application.Initialize;
|
|
Application.CreateForm(TForm1, Form1);
|
|
Application.Run;
|
|
CustomWidgetSetFinalization;
|
|
end;
|
|
|
|
DestroyGlobalCEFApp;
|
|
end.
|