1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2024-11-24 08:02:15 +02:00
CEF4Delphi/demos/Lazarus_any_OS/ExternalPumpBrowser
2021-03-01 01:18:02 +01:00
..
00-Delete.bat Make same app run on Win, Linux and Mac / Folder Lazarus_any_OS 2021-02-16 23:12:06 +01:00
cef.inc Make same app run on Win, Linux and Mac / Folder Lazarus_any_OS 2021-02-16 23:12:06 +01:00
create_mac_helper.sh CrAppProtocol for cocoa / Add Cocoa CloseChildHandle 2021-03-01 01:18:02 +01:00
ExternalPumpBrowser.ico Make same app run on Win, Linux and Mac / Folder Lazarus_any_OS 2021-02-16 23:12:06 +01:00
ExternalPumpBrowser.lpi Make same app run on Win, Linux and Mac / Folder Lazarus_any_OS 2021-02-16 23:12:06 +01:00
ExternalPumpBrowser.lpr Ensure all units have {$I cef.inc} 2021-02-21 22:57:18 +01:00
ExternalPumpBrowser.res Make same app run on Win, Linux and Mac / Folder Lazarus_any_OS 2021-02-16 23:12:06 +01:00
globalcefapplication.pas Add Headers to all units 2021-02-23 17:37:39 +01:00
initsubprocess.pas Ensure all units have {$I cef.inc} 2021-02-21 22:57:18 +01:00
README.txt Make same app run on Win, Linux and Mac / Folder Lazarus_any_OS 2021-02-16 23:12:06 +01:00
uExternalPumpBrowser.lfm Url Dropdown 2021-02-19 02:04:33 +01:00
uExternalPumpBrowser.pas CrAppProtocol for cocoa / Add Cocoa CloseChildHandle 2021-03-01 01:18:02 +01:00

ExternalPumpBrowser

# ABOUT

This example uses 
  TCEFLinkedWindowParent
  TCEFWorkScheduler 

TCEFWorkScheduler feeds the CEF messageloop by calling DoMessageLoopWork(). On Mac this is currently the only way to run the CEF messageloop.


# SETUP

** Windows
1) Download the CEF framework and place the content of the "Release" folder into the same folder as your exe.
  Alternatively you can point "GlobalCEFApp.FrameworkDirPath" to the location with the libraries.
2) Run the project

** Linux
1) Download the CEF framework and place the content of the "Release" folder into the same folder as your exe.
  Alternatively you can point "GlobalCEFApp.FrameworkDirPath" to the location with the libraries.
2) Run the project

Note:
- For your own Linux project you must modify the project source (lpr) and add "InitSubProcess" to the "uses" clause, so that it is in the list *before* the unit "Interfaces".
- The call to "DestroyGlobalCEFApp" must be in a unit *not* used by "unit InitSubProcess" (including not used in any nested way).


** Mac
1) Go to "project options" and create the "App Bundle"
2) Download the CEF framework and place the content of the "Release" folder into ExternalPumpBrowser.app/Contents/Frameworks/Chromium Embedded Framework.framework
You should have:
  Chromium Embedded Framework
  Libraries/*
  Resources/*
3) Open project "AppHelper", create App Bundle and compile the AppHelper.
   Run create_mac_helper.sh
4) Open project ExternalPumpBrowser, compile and run