You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
.github
bin
demos
Delphi_FMX_Linux
Delphi_FMX_Mac
Delphi_FMX_Windows
Delphi_VCL
Lazarus_Linux_Console
Lazarus_Linux_GTK2
Lazarus_Linux_GTK3
Lazarus_Mac
Lazarus_Windows
ConsoleBrowser2
CookieVisitor
CustomResourceBrowser
DOMVisitor
EditorBrowser
ExternalPumpBrowser
FullScreenBrowser
JavaScript
JSDialog
JSEval
JSExecutingFunctions
JSExtension
JSExtensionSubProcess
JSExtensionWithFunction
JSExtensionWithObjectParameter
JSSharedMemoryProcMessage
JSSimpleExtension
JSSimpleWindowBinding
JSWindowBindingSubProcess
JSWindowBindingWithArrayBuffer
JSWindowBindingWithFunction
JSWindowBindingWithObject
00-Delete.bat
JSWindowBindingWithObject.lpi
JSWindowBindingWithObject.lpr
JSWindowBindingWithObject.res
uJSWindowBindingWithObject.lfm
uJSWindowBindingWithObject.pas
uMyV8Accessor.pas
MediaRouter
MiniBrowser
MobileBrowser
NetworkTrackerBrowser
OAuth2Tester
OSRExternalPumpBrowser
PopupBrowser
PopupBrowser2
PostInspectorBrowser
ResponseFilterBrowser
SchemeRegistrationBrowser
SchemeRegistrationBrowser_subprocess
SimpleBrowser
SimpleBrowser2
SimpleExternalPumpBrowser
SimpleOSRBrowser
SimpleOSRBrowser2
SimpleServer
SubProcess
TabbedBrowser
TabbedBrowser2
TinyBrowser
TinyBrowser2
ToolBoxBrowser
ToolBoxBrowser2
URLRequest
VirtualUIBrowser
WebpageSnapshot
Lazarus_any_OS
docs
packages
source
tools
.gitignore
Delphinus.Info.json
Delphinus.Install.json
LICENSE.md
README.md
update_CEF4Delphi.json
43 lines
1.0 KiB
ObjectPascal
43 lines
1.0 KiB
ObjectPascal
program JSWindowBindingWithObject;
|
|
|
|
{$MODE Delphi}
|
|
|
|
{$I ..\..\..\..\source\cef.inc}
|
|
|
|
uses
|
|
{$IFDEF DELPHI16_UP}
|
|
Vcl.Forms,
|
|
WinApi.Windows,
|
|
{$ELSE}
|
|
Forms,
|
|
LCLIntf, LCLType, LMessages, Interfaces,
|
|
{$ENDIF }
|
|
uCEFApplication,
|
|
uJSWindowBindingWithObject in 'uJSWindowBindingWithObject.pas' {JSWindowBindingWithObjectFrm},
|
|
uMyV8Accessor in 'uMyV8Accessor.pas';
|
|
|
|
{.$R *.res}
|
|
|
|
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
{$SetPEFlags $20}
|
|
|
|
{$R *.res}
|
|
|
|
begin
|
|
// GlobalCEFApp creation and initialization moved to a different unit to fix the memory leak described in the bug #89
|
|
// https://github.com/salvadordf/CEF4Delphi/issues/89
|
|
CreateGlobalCEFApp;
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
begin
|
|
Application.Initialize;
|
|
{$IFDEF DELPHI11_UP}
|
|
Application.MainFormOnTaskbar := True;
|
|
{$ENDIF}
|
|
Application.CreateForm(TJSWindowBindingWithObjectFrm, JSWindowBindingWithObjectFrm);
|
|
Application.Run;
|
|
end;
|
|
|
|
DestroyGlobalCEFApp;
|
|
end.
|