You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +02:00
Added the Lazarus_Linux_Console\LibraryBrowser demo
This commit is contained in:
36
demos/Lazarus_Linux_Console/LibraryBrowser/custombrowser.lpr
Normal file
36
demos/Lazarus_Linux_Console/LibraryBrowser/custombrowser.lpr
Normal file
@ -0,0 +1,36 @@
|
||||
library custombrowser;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
uses
|
||||
{$IFDEF UNIX}
|
||||
cthreads, cmem,
|
||||
{$ENDIF}
|
||||
Classes,
|
||||
{ you can add units after this }
|
||||
uencapsulatedbrowser;
|
||||
|
||||
procedure InitializeCEF4Delphi; cdecl;
|
||||
begin
|
||||
InitializeEncapsulatedBrowser;
|
||||
end;
|
||||
|
||||
procedure FinalizeCEF4Delphi; cdecl;
|
||||
begin
|
||||
FinalizeEncapsulatedBrowser;
|
||||
end;
|
||||
|
||||
procedure TakeSnapshot; cdecl;
|
||||
begin
|
||||
CaptureScreenshot('https://www.google.com');
|
||||
end;
|
||||
|
||||
exports
|
||||
InitializeCEF4Delphi,
|
||||
FinalizeCEF4Delphi,
|
||||
TakeSnapshot;
|
||||
|
||||
begin
|
||||
//
|
||||
end.
|
||||
|
Reference in New Issue
Block a user