Commit Graph

234 Commits

Author SHA1 Message Date
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
Salvador Díaz Fau
b9e22bd870 Adapted ConsoleBrowser and DLLBrowser to use uCEFApplicationCore
- Added more comments to TChromiumCore.VisitAllCookies and TChromiumCore.VisitURLCookies
2019-11-11 11:38:01 +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
Salvador Díaz Fau
36bb84fcf6 Added uCEFApplicationCore.pas to project files
- Replaced response.GetHeader by response.GetHeaderByName in ResponseFilterBrowser demo
2019-11-09 17:31:59 +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
Greg
5e6c32b0ee - add Open Jpeg functionality 2019-11-02 20:51:21 +01:00
Greg
c6f412eabc - add demo for Custom Title Bar 2019-11-02 17:29:19 +01:00
Salvador Díaz Fau
f0106c20d7 Update to CEF 78.2.9 2019-10-30 10:26:48 +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
91615ff437 MiniBrowser demo : Added context menu option to show the ZoomPct value in the statusbar 2019-10-18 17:26:03 +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
Salvador Díaz Fau
8b948745ef Improved debug info in JS extension demos
Removed mutation observer from the JSRTTIExtension demo
2019-09-12 11:40:52 +02:00
Salvador Díaz Fau
f6973112aa Added JSWindowBindingWithArrayBuffer demo 2019-09-10 13:09:14 +02:00
Salvador Díaz Fau
be14dc6f33 Update to CEF 76.1.13
Added more code comments to the JSExtension demo
2019-08-31 17:17:55 +02:00
Salvador Díaz Fau
2507e0730b Fixed min, max and default value of TChromium.MaxConnectionsPerProxy 2019-08-29 12:52:11 +02:00
Salvador Díaz Fau
72ebe76989 Update to CEF 76.1.11
Added TChromium.MaxConnectionsPerProxy
2019-08-29 12:28:13 +02:00
Salvador Díaz Fau
0acd59b3d2 Update to CEF 76.1.10
- Added GlobalCEFApp.UseFakeUIForMediaStream
- Added overloaded TCefBaseRefCountedOwn.SameAs
2019-08-27 09:52:33 +02:00
Salvador Díaz Fau
24d3d5b672 Disabling some features to improve stability in the VCL SimpleBrowser and SimpleBrowser2 demos 2019-08-02 10:58:50 +02:00
Salvador Díaz Fau
a189468639 Update to CEF 76.1.5 2019-08-01 18:20:42 +02:00
Salvador Díaz Fau
43b0ec7e20 Update to CEF 75.1.4
- Fixed issue #179 : Added a new EditorBrowser demo.
- Fixed issue #195 : Added VizDisplayCompositor to the disabled features list
- Fixed issue #206 : Added a context menu option to show the DevTools in SimpleFMXBrowser. Added TCEFFMXChromium.ShowDevTools and TCEFFMXChromium.CloseDevTools.
- Added a new menu option to MiniBrowser to simulate key presses in normal mode.
2019-07-18 11:48:11 +02:00
Salvador Díaz Fau
0e08d66a1f Fixed issue #202
- Updated the OnBeforeClose event in all demos using TChromiumWindow to send a WM_CLOSE message instead of calling "close".
- Fixed all MDI demos. Now the demo will not close automatically when the last browser is closed manually.
2019-07-10 14:31:45 +02:00
Salvador Díaz Fau
5d36c422eb Update to CEF 75.0.13 2019-07-04 10:03:43 +02:00
Salvador Díaz Fau
6ad2c32243 Update to CEF 75.0.11 2019-06-20 10:41:45 +02:00
Salvador Díaz Fau
90aeb5e525 Update to CEF 75.0.8
- Restored the GlobalCEFApp.DeleteCookies property
- Fixed the issue with the arrow keys in OSR demos
- Fixed the default return values for TCustomCookieAccessFilter.CanSendCookie and TCustomCookieAccessFilter.CandSaveCookie
- TCustomResourceRequestHandler and TCustomCookieAccessFilterwill only be created if needed by the TChromium events.
2019-06-19 16:53:26 +02:00
Salvador Díaz Fau
52fca97884 Update to CEF 75.0.7 2019-06-16 10:31:13 +02:00
Salvador Díaz Fau
22f4a1d6d8 Fix #188
Set all "ShowCaption" properties to the default value for backwards compatibility
2019-05-23 11:36:33 +02:00
Salvador Díaz Fau
efeb876371 Update to CEF 74.1.19
- Converted almost all the demos to Lazarus thanks to avra
- Reorganized "demos" directory.
2019-05-19 16:08:15 +02:00
Salvador Díaz Fau
8e084c205f Fixed TChromium.OnClose event declaration in JSRTTIExtension demo 2019-05-16 16:56:05 +02:00
Salvador Díaz Fau
2173c94bf0 SchemeRegistrationBrowser demo improvements
- Added a local JavaScript file to show an alert dialog
- Added more comments to the demo.
2019-05-12 10:50:27 +02:00
Salvador Díaz Fau
59f3441b1e Update to CEF 74.1.16
- Copied the GlobalCEFApp_OnWebKitInitializedEvent fix for D2007 made by jepp to other demos.
- Added TChromium.DownloadImage and TChromium.OnDownloadImageFinished to download images
- Added a TChromium.DownloadImage example to the MiniBrowser demo.
- Modified some parameters in TCefImageRef
2019-05-11 15:40:19 +02:00
jepp
0d0912f125
GlobalCEFApp_OnWebKitInitializedEvent for D2007-
For Delphi 2007 and lower, the definition of TCefApplication.OnWebKitInitialized is a "procedure of object." The existing demo code uses a non-method procedure, which is only compatible with the definition of "reference to procedure" used for the Delphi 2009 conditional.
2019-05-10 16:54:26 -05:00
Salvador Díaz Fau
6f3920a052 Update to CEF 73.1.13 2019-04-21 11:10:39 +02:00
Salvador Díaz Fau
dbc4900358 Fix #119 : All units in the source folder start with "uCEF"
- Fixed TCustomAudioHandler creation in uCEFClient.pas
- Fixed "title" parsing in uCEFDragAndDropMgr.pas
2019-04-04 10:26:44 +02:00