mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-12-04 09:26:52 +02:00
9e5b90303c
Remove unused uCEFSentinel references. Remove duplicated licenses.
40 lines
999 B
ObjectPascal
40 lines
999 B
ObjectPascal
program TabbedBrowser2;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
{$I ../../../source/cef.inc}
|
|
|
|
uses
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
cthreads,
|
|
{$ENDIF}{$ENDIF}
|
|
// "Interfaces" is a custom unit used to initialize the LCL WidgetSet
|
|
// We keep the same name to avoid a Lazarus warning.
|
|
Interfaces, // this includes the LCL widgetset
|
|
Forms,
|
|
uCEFApplication,
|
|
uMainForm in 'uMainForm.pas' {MainForm},
|
|
uBrowserFrame in 'uBrowserFrame.pas' {BrowserFrame: TFrame},
|
|
uBrowserTab in 'uBrowserTab.pas';
|
|
|
|
{.$R *.res}
|
|
|
|
begin
|
|
CreateGlobalCEFApp;
|
|
|
|
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(TMainForm, MainForm);
|
|
Application.Run;
|
|
CustomWidgetSetFinalization;
|
|
end;
|
|
|
|
DestroyGlobalCEFApp;
|
|
end.
|