Page 1 of 1

Update to CEF 3.3112.1656.g9ec3e42 and new demos

Posted: Sat Aug 12, 2017 2:41 pm
by salvadordf
Hi,

I just uploaded a new version of CEF4Delphi including CEF 3.3112.1656.g9ec3e42 and some new demos.

xpert13 shared the code to use the Eval function in the v8context without extensions so I created a new demo called JSEval with his code. Thanks xpert13! :D

The MiniBrowser demo included too many things and I had to split it in several smaller demos : DOMVisitor and SchemeRegistrationBrowser.

I'll add some demo descriptions in the CEF4Delphi page in a few hours.

The new CEF3 binaries are these :
32bit -> http://opensource.spotify.com/cefbuilds ... 32.tar.bz2
64bit -> http://opensource.spotify.com/cefbuilds ... 64.tar.bz2

Re: Update to CEF 3.3112.1656.g9ec3e42 and new demos

Posted: Sat Aug 12, 2017 6:38 pm
by salvadordf
I also added a new demo to test the Geolocation function. Right now it shows some location data but I need to read all the documentation to be sure I did it correctly.

Consider that demo as "pre-alfa".

Re: Update to CEF 3.3112.1656.g9ec3e42 and new demos

Posted: Mon Dec 18, 2017 7:21 pm
by salvadordf
Hi,

Please download the latest CEF4Delphi again. Now the DPR files in the demos have the minimum code needed to have a Chromium browser in your app.

Remember that CEF4Delphi is only the wrapper around the CEF3 libraries. CEF4Delphi can only do what CEF3 allows you to do.

Chromium is a large and complex project. It uses several processes for different tasks and the DOM and javascript are in a different process than main the browser process.

This architecture has many advantages but it makes DOM manipulation "tricky" (notice the quotes) ;)

You can only have direct DOM access in some situations and CEF3 has a limited API for that. In fact, it's recommended to use javascript to manipulate the DOM.

Read more about all this here :
https://www.briskbard.com/index.php?lang=en&pageid=cef
https://bitbucket.org/chromiumembedded/cef/wiki/

The DOMVisitor demo has only a few functions and it shows how to get the results back with process messages and writing in the log file with the CefLog function.

In general, most of the demos do one thing only with the simplest code to make it easier to understand.