Embedding Chromium browser in Go applications - HTML 5 based GUI toolkit

6,345 views
Skip to first unread message

Czarek Tomczak

unread,
Feb 6, 2014, 9:12:24 AM2/6/14
to golan...@googlegroups.com
Hi there,

I'm happy to announce that there is initial release of cef2go. This project provides Go bindings for the Chromium Embedded Framework. Right now it allows for some basic embedding of Chromium browser in Go applications, along with a few configurable options. As of the moment it works only on Windows. Linux support should appear next. See the project site:


Best regards,
Czarek

Hǎiliàng

unread,
Feb 6, 2014, 10:55:25 AM2/6/14
to golan...@googlegroups.com
Cool!

Does "embedding" mean it supports off-screen rendering?
It would be great if it can support it, but last time when I check CEF, off-screen rendering does not work on Linux. (probably solved, see: http://code.google.com/p/chromiumembedded/issues/detail?id=518).

Hǎiliàng

Czarek Tomczak

unread,
Feb 6, 2014, 11:02:28 AM2/6/14
to golan...@googlegroups.com
Hi Hǎiliàng,


On Thursday, February 6, 2014 4:55:25 PM UTC+1, Hǎiliàng wrote:
Does "embedding" mean it supports off-screen rendering?
It would be great if it can support it, but last time when I check CEF, off-screen rendering does not work on Linux. (probably solved, see: http://code.google.com/p/chromiumembedded/issues/detail?id=518).

CEF now supports off-screen rendering on all platforms (Win/OSX/Linux). I have already used the off-screen rendering feature on Linux in the CEF Python project that I'm also working on. It was for the Kivy framework, see the kivy_.py example. The OSR support was not yet ported to cef2go, the example uses windowed rendering.

Best regards,
Czarek

Kevin D

unread,
Feb 6, 2014, 1:46:15 PM2/6/14
to golan...@googlegroups.com
Awesome! I could use this for a few projects.

Robert Lockwood

unread,
Feb 6, 2014, 10:37:29 PM2/6/14
to golan...@googlegroups.com
Can't wait for CefGo.

Good Job.

Stephen Gutekanst

unread,
Feb 6, 2014, 10:49:41 PM2/6/14
to golan...@googlegroups.com
Hi Czarek,

I saw you message to me on the CEF issue tracker (w/ regards to you working on a wrapper to CEF too). I eventually decided to retire my plans for using CEF3 in my current project due to a few various things, but I am glad to see you are working on this.

Like others here I am mostly interested in off-screen rendering (so that I can embed the browser inside an OpenGL game engine).

As a small complaint: one might ditch the build_win.bat script and make the package install-able using 'go get' and 'go install' commands.

Keep up the great work!

Stephen

Gustavo Niemeyer

unread,
Feb 7, 2014, 3:14:39 AM2/7/14
to Stephen Gutekanst, golan...@googlegroups.com
On Fri, Feb 7, 2014 at 1:49 AM, Stephen Gutekanst
<stephen....@gmail.com> wrote:
> Like others here I am mostly interested in off-screen rendering (so that I
> can embed the browser inside an OpenGL game engine).

For the record, you can easily use both OpenGL [1] and WebKit [2]
today with the qml package.

[1] Example at http://goo.gl/VVJktF
[2] Example at http://goo.gl/mlKNgn


gustavo @ http://niemeyer.net

Czarek Tomczak

unread,
Feb 10, 2014, 2:28:24 AM2/10/14
to golan...@googlegroups.com
On Thursday, February 6, 2014 3:12:24 PM UTC+1, Czarek Tomczak wrote:
I'm happy to announce that there is initial release of cef2go. This project provides Go bindings for the Chromium Embedded Framework. Right now it allows for some basic embedding of Chromium browser in Go applications, along with a few configurable options. As of the moment it works only on Windows. Linux support should appear next. See the project site:

Linux port was completed today. Build instructions and a binary example for Ubuntu are available.

Best regards,
Czarek

Daniel Theophanes

unread,
Feb 10, 2014, 3:54:28 PM2/10/14
to golan...@googlegroups.com
Hi Czarek,

Looks nice. In your mains, you've got two TODOs for getting the executable directory. I would suggest something like:

-Daniel

Czarek Tomczak

unread,
Feb 10, 2014, 5:39:24 PM2/10/14
to golan...@googlegroups.com
Hi Daniel,


On Monday, February 10, 2014 9:54:28 PM UTC+1, Daniel Theophanes wrote:
Looks nice. In your mains, you've got two TODOs for getting the executable directory. I would suggest something like:


Thanks. Added an issue to track this.

-Czarek 

Czarek Tomczak

unread,
Feb 14, 2014, 6:57:31 PM2/14/14
to golan...@googlegroups.com
On Thursday, February 6, 2014 3:12:24 PM UTC+1, Czarek Tomczak wrote:
I'm happy to announce that there is initial release of cef2go. This project provides Go bindings for the Chromium Embedded Framework. Right now it allows for some basic embedding of Chromium browser in Go applications, along with a few configurable options. As of the moment it works only on Windows. Linux support should appear next. See the project site:


CEF2go now supports all three platforms: Mac OSX, Linux and Windows. Instructions for Mac and a binary example are available, see the README file.

Best regards,
Czarek

Czarek Tomczak

unread,
Feb 15, 2014, 7:22:52 AM2/15/14
to golan...@googlegroups.com
On Saturday, February 15, 2014 12:57:31 AM UTC+1, Czarek Tomczak wrote:
CEF2go now supports all three platforms: Mac OSX, Linux and Windows. Instructions for Mac and a binary example are available, see the README file.

Some useful information, as not all might know that. It is already possible to communicate between Go and Javascript by running an internal http server and making XMLHttpRequests. I have added the http_server_windows.go example that embeds both an internal http server and a Chromium browser. To run it type "build.bat http_server". Added section "Communicate between Go and Javascript" to README.

Best regards,
Czarek

Chunlei Hou

unread,
Jul 4, 2014, 9:48:10 PM7/4/14
to golan...@googlegroups.com
hi, Czarek, great job!

but I use this framework to complie a project, in win7 x64,the gcc notice some error like bellow(gcc version: 4.8.2 x64,):



在 2014年2月15日星期六UTC+8下午8时22分52秒,Czarek Tomczak写道:

Peter Nguyen

unread,
Jul 6, 2014, 5:30:15 PM7/6/14
to golan...@googlegroups.com
Great alternative for cross platform GUI. Where in the roadmap is the native bindings?
Reply all
Reply to author
Forward
0 new messages