CEF4Delphi/demos/Lazarus_any_OS/BrowserWindow
Salvador Díaz Fau 43ab8ef953 Added TCEFTimerWorkScheduler
- Moved the GlobalCEFWorkScheduler creation after the GlobalCEFApp creation in all demos using it.
- Replaced TCEFWorkScheduler by TCEFTimerWorkScheduler in FMX demos for Linux and MacOS.
- Fixed context menu issue in FMXExternalPumpBrowser2 for Linux
- Fixed stability issues in FMXExternalPumpBrowser for MacOS
- Fixed 32bit build issues in TinyBrowser and ToolBoxBrowser2 demos.
- Added uCEFMacOSInterfaces and uCEFMacOSCustomCocoaTimer.
2021-06-04 15:10:40 +02:00
..
00-Delete.bat Added TCEFTimerWorkScheduler 2021-06-04 15:10:40 +02:00
BrowserWindow.ico Sample app BrowserWindow for new component 2021-03-01 01:26:21 +01:00
BrowserWindow.lpi Added NSPrincipalClass for Lazarus 2.1 2021-03-19 21:24:56 +01:00
BrowserWindow.lpr Sample app BrowserWindow for new component 2021-03-01 01:26:21 +01:00
BrowserWindow.res Added TCEFTimerWorkScheduler 2021-06-04 15:10:40 +02:00
cef.inc Sample app BrowserWindow for new component 2021-03-01 01:26:21 +01:00
create_mac_helper.sh Sample app BrowserWindow for new component 2021-03-01 01:26:21 +01:00
globalcefapplication.pas Demos: removed GlobalCEFApp.CheckCEFFiles := false; 2021-03-21 17:20:12 +01:00
initsubprocess.pas Sample app BrowserWindow for new component 2021-03-01 01:26:21 +01:00
README.txt Fix ReadMe files 2021-03-11 17:02:58 +01:00
uBrowserWindow.lfm Rename references in demos 2021-03-21 00:12:12 +01:00
uBrowserWindow.pas Rename references in demos 2021-03-21 00:12:12 +01:00

BrowserWindow

# ABOUT

This example uses 
  TLazarusBrowserWindow
  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 BrowserWindow.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 BrowserWindow, compile and run