Has anyone successfully built an CEF application with wxGTK?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
winvdk
Knows some wx things
Knows some wx things
Posts: 29
Joined: Fri Jun 01, 2012 1:30 am
Location: Taiwan

Has anyone successfully built an CEF application with wxGTK?

Post by winvdk »

Hi,
I'm learning Chromium Embedded Framework (CEF), and tried to build some simple examples written by myself for practice. I followed this tutorial chromiumembedded / cef / wiki / GeneralUsage — Bitbucket, but it doesn't actually work. It really is not as simple as the tutorial describes. The main problem is the integration between CEF and wxGTK (I haven't tried wxMSW yet). There are some articles on the Internet teaching the topic, but they are either on Windows or using GTK+ 2. I haven't tried GTK+ 2 myself, but did try GTK+ 3 and it still didn't work. I think it is doable with GTK+ 3 (and its wxGTK front end), because I did have successfully built and run the example in the directory test/cefsimple/ that comes with the pre-built binary downloaded from CEF Automated Builds. The cefsimple uses X11 directly, so there must be a way for GTK+ 3 to integrate with CEF. Does any one know how? Any hints or links would be highly appreciated.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: Has anyone successfully built an CEF application with wxGTK?

Post by PB »

Do you know about wxWebViewChromium? For some reason, it has been long unmerged but perhaps it can serve as an inspiration:
https://github.com/wxWidgets/wxWidgets/pull/706

However, IIRC wxWebViewChromium structure (implementation of CEF classes) is kinda different from the CEF examples.
winvdk
Knows some wx things
Knows some wx things
Posts: 29
Joined: Fri Jun 01, 2012 1:30 am
Location: Taiwan

Re: Has anyone successfully built an CEF application with wxGTK?

Post by winvdk »

Thanks for the reply, and yes I did check the source codes of wxWebViewChromium before asking the question. As far as I know, it is removed from version 3.1.2 of wxWidgets. I actually doubt if it is completed. For example, while creating a CefBrowser object it does not setup the CefWindowInfo object at all on all platforms except Windows. How will CEF know where to put the newly-created browser window if the code doesn't specify a container window? Weird. Maybe the wxWebViewChromium project is not completed yet.
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2409
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: Has anyone successfully built an CEF application with wxGTK?

Post by evstevemd »

Did you try to build webviewsample_chromium to get the feel and see how to use it?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Post Reply