Commit Graph

63 Commits

Author SHA1 Message Date
Salvador Díaz Fau
132edb2e88 Added Multi-Browser mode to TChromium
MiniBrowser demo now has the Multi-browser mode enabled.
Added TChromium.MultiBrowserMode
Added TChromium.BrowserById
Added TChromium.BrowserCount
Added TChromium.BrowserIdByIndex
Added TChromium.SelectBrowser
Added TChromium.CloseAllBrowsers
Added TChromium.TryCloseBrowser
2020-05-07 11:46:48 +02:00
Salvador Díaz Fau
318318c85c Added Views Framework support #244
Added ToolBoxBrowser2 demo
Added TCEFBrowserViewComponent.
Added TCEFLabelButtonComponent.
Added TCEFMenuButtonComponent.
Added TCEFPanelComponent.
Added TCEFTextfieldComponent.
Added TCEFScrollViewComponent.
Added TCEFWindowComponent.
2020-05-05 18:10:33 +02:00
Salvador Díaz Fau
ccdb41b357 Update to CEF 81.3.1 2020-04-30 17:28:41 +02:00
Salvador Díaz Fau
ee831e85bd Update to CEF 81.2.25
- Work in progress : Added many more units, classes and types to support the Views Framewrok.
2020-04-29 19:14:44 +02:00
Salvador Díaz Fau
a34ae44cb0 Update to CEF 81.2.24
- Added code comments to the MediaRouter demo
- Added a Lazarus version of the MediaRouter demo
2020-04-25 15:57:11 +02:00
Salvador Díaz Fau
dce556683a Update to CEF 81.2.19 2020-04-21 13:27:34 +02:00
Salvador Díaz Fau
62c310a7b9 Update to CEF 81.2.17
- New MediaRouter demo (still buggy)
- Removed TCEFMediaObserverComponent and merged all the ICefMediaObserver methods and events into TChromium.
- Fixed some Media Observer parameters
- Added TChromium.RequestContext
- Added TChromium.MediaRouter
- Added TChromium.MediaObserver
- Added TChromium.Registration
2020-04-19 22:47:20 +02:00
Salvador Díaz Fau
3de53a0376 Update to CEF 81.2.15 2020-04-10 09:49:34 +02:00
Salvador Díaz Fau
c9b2af2a5e Issue #271 is fixed
Removed workaround from TBufferPanel, TFMXBufferPanel and demos.
2020-04-04 10:58:48 +02:00
Salvador Díaz Fau
7662b61778 Workaround for issue #271 2020-03-31 12:44:10 +02:00
Salvador Díaz Fau
1984ab16ba Update to CEF 80.1.2
- Added TCEFMediaObserverComponent
- Removed TBufferPanel.OnWrongSize
- Removed TFMXBufferPanel.OnWrongSize
2020-03-29 17:31:42 +02:00
Salvador Díaz Fau
beb287e22c Fix wrong SELECT size with multiple SELECT elements in OSR mode 2020-03-18 18:37:55 +01:00
Salvador Díaz Fau
5649b6e661 Added DevTools menu option to popup windows in MiniBrowser demo 2020-03-01 09:38:09 +01:00
Salvador Díaz Fau
feaeb772cb Update to CEF 80.0.4
- Added GlobalCEFApp.DisableNewBrowserInfoTimeout property
- Removed remaining TCEFSentinel from all the demos.
- Fixed mouse coordinates in FMX demos with OSR browsers before sending a mouse wheel event.
2020-02-26 13:28:29 +01:00
Salvador Díaz Fau
fa64d506b4 Added TabbedBrowser2 demo 2020-02-09 16:31:45 +01:00
Salvador Díaz Fau
e8d2db5b57 Added touch support for Windows 8,8.1,10 to FMXExternalPumpBrowser
- Removed GestureBrowser demo
- Added TBufferPanel.OnWrongSize event
- Added TFMXBufferPanel.OnWrongSize event
- More touch support fixes in SimpleOSRBrowser and KioskOSRBrowser.
2020-02-08 12:59:59 +01:00
Salvador Díaz Fau
e9601e4ee3 Fixed touch events in SimpleOSRBrowser and KioskOSRBrowser demo in Windows 7
- TChromium.AcceptLanguageList is now always updated
- Added GetDigitizerStatus and HasTouchOrPen functions to uCEFMiscFunctions
2020-02-05 14:40:22 +01:00
Salvador Díaz Fau
99efd21094 Fixed "error 217" in Lazarus with TCEFSentinel
- Removed TCEFSentinel from CookieVisitor and CustomResourceBrowser in Lazarus
2020-02-04 11:04:29 +01:00
Salvador Díaz Fau
1ca9ebf179 Added touch and pen support to SimpleOSRBrowser and KioskOSRBrowser demos
- Added TBufferPanel.OnCustomTouch
- Added TBufferPanel.OnPointerDown
- Added TBufferPanel.OnPointerUp
- Added TBufferPanel.OnPointerUpdate
- Added TFMXWindowParent.Touch
- Added TFMXWindowParent.OnGesture
- Removed the gesture manager from the KioskOSRBrowser demo
2020-02-03 12:02:30 +01:00
Salvador Díaz Fau
64d9393439 Added touch gestures to the KioskOSRBrowser demo
- Removed TCEFSentinel from the KioskOSRBrowser demo
- Added the -dUseCThreads compiler option to the Lazarus demos in Linux.
- Replaced panel by TLayout in the SimpleFMXBrowser demo.
2020-02-01 17:04:19 +01:00
Salvador Díaz Fau
b7a4cdd786 Update to CEF 79.1.35
- Added groups to the demos with a secondary subprocess project
- Added some conditional directives for MacOS (MACOS IS NOT SUPPORTED YET!)
- Removed some Windows dependencies in the FMXExternalPumpBrowser demo
- Added TChromium.ParentFormHandle property
2020-01-28 11:36:34 +01:00
Salvador Díaz Fau
e93fd29623 Update to CEF 79.1.10
- Added TCEFOAuth2Helper
- Added OAuth2Tester demo
- Added GetDefaultCEFUserAgent function to the uCEFMiscFunctions unit.
2020-01-13 15:39:44 +01:00
Salvador Díaz Fau
fd1e936198 Update to CEF 79.0.10
- Removed CEFSentinel from some demos because it's no longer necessary.
- Updated copyright year.
2020-01-01 12:48:10 +01:00
Salvador Díaz Fau
b57ba15ff6 Linux fixes made by pmamod
- Added 2 Linux demos in Lazarus : SimpleBrowser2 and SimpleOSRBrowser.
2019-12-18 15:10:30 +01:00
Salvador Díaz Fau
c99d14c8f0 Improved zoom handling
- Added TChromium.IncZoomPct procedure to increase the zoom percent value
- Added TChromium.DecZoomPct procedure to decrease the zoom percent value
- Added TChromium.ResetZoomLevel procedure to reset the zoom level value
- Added TChromium.ResetZoomPct procedure to reset the zoom percent value
- Added TChromium.ReadZoom procedure to trigger the TChromium.OnZoomPctAvailable event with the current zoom percent value.
- Added TChromium.OnZoomPctAvailable event.
- Added the new TChromium.OnZoomPctAvailable event to the MiniBrowser demo.
2019-12-10 16:49:07 +01:00
Salvador Díaz Fau
4231252493 New TChromium.AcceptLanguageList property
- New menu option to set the Accept Language List in MiniBrowser.
- CookieVisitor now blocks some cookies from a custom domain.
2019-12-03 12:12:19 +01:00
Salvador Díaz Fau
1d8773c42c Moved TChromium.InitializeDragAndDrop to TForm.OnShow in PopupBrowser 2019-11-26 10:59:04 +01:00
Salvador Díaz Fau
c455886d29 Fixes in string handling and CEF types
- Modified Cefv8Accessor and Cefv8Interceptor helper function declarations.
- Fixed and renamed ICefV8Interceptor parameters.
- Fixed and renamed ICefV8Accessor parameters.
- Modified ICefValue.SetBool parameter.
- Fixed ICefMenuModelDelegate.FormatLabel "label" parameter.
- Modified CefStringClearAndGet parameter.
- Added CefStringInitialize function.
- Fixed string handling in TCefRequestContextRef.SetPreference.
- Fixed string handling in TCefCustomResourceBundleHandler.GetLocalizedString.
- Fixed string handling in TCefResourceHandlerOwn.GetResponseHeaders.
- Fixed string handling in TCefResourceRequestHandlerOwn.OnResourceRedirect.
- Fixed string handling in TCefStringMapOwn.
- Fixed string handling in TCefStringMultimapOwn.
- Fixed and renamed ICefv8Handler.Execute parameters.
- Adapted JSWindowBindingWithObject demo to new Cefv8Accessor declaration.
2019-11-24 18:19:49 +01:00
Andreas Hausladen
f33417ca73 Fixed #190: Lazarus : access violation creating a TCefBinaryValueRef in 64 bits
Access violation was because of a memory overwrite. TStream.Read doesn't have a TBytes overload in FPC, so the stack was overwritten instead of the array's content.
2019-11-11 17:33:16 +01:00
Andreas Hausladen
eb0d04f1b5 FPC compatibility with all missing MSWINDOWS features (Drag&Drop, OnBrowserCompMsg/OnWidgetCompMsg/OnRenderCompMsg) that VCL/FMX already had
Some Linux support (compiles and can load the libcef.so but still crashes when calling CreateBrowser)
2019-11-10 21:41:13 +01:00
Salvador Díaz Fau
88950ed6d0 Modified JSWindowBindingSubProcess demos to use the new uCEFApplicationCore unit 2019-11-09 18:10:24 +01:00
Andreas Hausladen
4cdb8207c6 uCEFApplicationCore is a VCL-free implementation (no Controls/Forms units, no Application object).
The old uCEFApplication.pas is renamed to uCEFApplicationCore.pas and a new uCEFApplication.pas is created that only contains the Controls/Forms unit related code and is backward compatible to existing code.

This allows the creation of a SubProcess executable that doesn't initialize the VCL with all its problems (GlobalAtom leak in Delphi 6-XE, Application.Handle, OleInitialize and other unnecessary init-code).

ujCEFMiscFunctions.GefCursorToWindowsCursor is renamed to >>C<<efCursorToWindowsCursor and moved to uCEFApplication.pas to prevent the inclusion of the Controls unit in Delphi 7-XE.
2019-11-09 15:57:29 +01:00
Salvador Díaz Fau
427059dd9a Added TChromium.OnCookieVisitorDestroyed
- Removed TChromium.OnGetResourceRequestHandler
- Added TChromium.OnGetResourceRequestHandler_ReqHdlr
- Added TChromium.OnGetResourceRequestHandler_ReqCtxHdlr
- Modified the CookieVisitor demo to use TChromium.OnCookieVisitorDestroyed
2019-11-08 14:32:03 +01:00
Salvador Díaz Fau
172e7ba9e4 Update to CEF 78.3.1
- Added TChromium.LoadString using a DATA URL
- Added TChromium.LoadResource using a DATA URL
2019-11-07 11:01:25 +01:00
Salvador Díaz Fau
f180972f22 Update to CEF 78.2.14 2019-11-06 11:18:33 +01:00
Salvador Díaz Fau
3c54f655db Update to CEF 78.2.10
- CustomTitleBar demo moved to the Javascript directory
- Fixed issue #189
2019-11-03 11:17:09 +01:00
Salvador Díaz Fau
2fe89069a4 Added all TCefCookieManager functions to TChromium
- Added TChromium.VisitAllCookies
- Added TChromium.VisitURLCookies
- Added TChromium.SetCookie
- Added TChromium.OnCookiesVisited
- Added TChromium.OnCookieSet
- Removed unused constants.
- CookieVisitor demo adapted to the new TChromium functions and events.
2019-10-29 16:13:35 +01:00
Salvador Díaz Fau
1fa2f43b0c Update to CEF 77.1.18
- Modified CefPostTask and CefPostDelayedTask to return a boolean value.
- Added CefCurrentlyOn helper function.
- Replaced all "CEF3" mentions by "CEF".
2019-10-19 10:58:34 +02:00
Salvador Díaz Fau
ac75b5ba14
Merge branch 'master' into beta 2019-10-15 11:29:09 +02:00
Salvador Díaz Fau
4d994de2e9 Fixed the CustomResourceHandler demo
- Added TCEFSentinel to more demos
2019-10-14 15:39:27 +02:00
Salvador Díaz Fau
77121dc510 Added TCEFSentinel to more demos
- Check that all frames are valid before using them
- Added an error page to MiniBrowser.
2019-10-13 18:50:23 +02:00
Salvador Díaz Fau
9391d68ee0 Update to CEF 77.1.13
- Added TChromium.OnRequestContextInitialized
- Added TChromium.OnBeforePluginLoad
- Added TChromium.ReqContextHandler
- Removed GlobalCEFApp.ShutdownWaitTime
2019-10-11 17:51:16 +02:00
Salvador Díaz Fau
096b2c9a4b Added TCEFSentinel component
- Added TCEFSentinel to MiniBrowser, TabbedBrowser, ToolBoxBrowser and SimpleBrowser2.
2019-10-09 12:24:47 +02:00
Salvador Díaz Fau
7b82de6abe Fixed CookieAccessFilter events not being triggered
Fixed SimpleServer demo to call the updated ICefPostData function names
2019-10-04 16:49:53 +02:00
Salvador Díaz Fau
33213f25e4 Update to CEF 77.1.8 2019-10-04 15:13:24 +02:00
Salvador Díaz Fau
9f202b19c0 Update to CEF 77.1.3 2019-10-01 18:47:24 +02:00
Salvador Díaz Fau
437c3bf4c0 Bug fix #222
- Fixed ICEFPostData and TCefPostData declarations
- Fixed CustomAbsolutePath to convert the relative path to absolute path even when CustomPathCanonicalize fails.
- Added a POST example to the URLRequest demo.
- Updated the PostInspectorBrowser demo for the new ICEFPostData decalrations.
2019-09-25 17:23:16 +02:00
Salvador Díaz Fau
09685f56e1 Fixed crash with relative paths that have ".."
Fixed compilation bug in Delphi 7
2019-09-21 11:37:13 +02:00
Salvador Díaz Fau
5e5b775608 Removed all code comments about the GlobalCEFApp.cookies property and a separate cookies directory 2019-09-19 14:14:03 +02:00
Salvador Díaz Fau
c7b91264cb Added functions and events to flush the cookies easily.
- Added  TChromium.FlushCookieStore and TFMXChromium.FlushCookieStore functions.
- Added TChromium.OnCookiesFlushed and TFMXChromium.OnCookiesFlushed events
- Added a menu option in the MiniBrowser demo to test the new functions to flush the cookies.
2019-09-16 11:28:48 +02:00