Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Update to CEF 3.3112.1656.g9ec3e42 and new demos

Post Reply
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to CEF 3.3112.1656.g9ec3e42 and new demos

Post 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
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3112.1656.g9ec3e42 and new demos

Post 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".
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3112.1656.g9ec3e42 and new demos

Post 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.
Post Reply