Using CefGlue or CefSharp

1,858 views
Skip to first unread message

farooq

unread,
Apr 7, 2013, 10:04:33 PM4/7/13
to cef...@googlegroups.com
Hi,

I have just started here. Can you please explain to me if CefGue and CefSharp can both be used in .net on windows platform? If yes which one is better and why? In short, which one to use?

Thanks. 

James Scheidt

unread,
Apr 7, 2013, 10:25:02 PM4/7/13
to cef...@googlegroups.com
I think you either pick one or the other. Don't try to mix them. Each uses a different approach to loading the native CEF binaries. CefGlue uses PInvoke and CefSharp uses a mixed-mode, cpp assembly. I had linker problems with CefSharp, but the CefGlue samples were easier to get up and running so that's the one I'm trying first.

farooq

unread,
Apr 7, 2013, 10:44:56 PM4/7/13
to cef...@googlegroups.com
HI,

Also Xillium.CefGlue is based on latest CEF 3. I am not sure about CefSharp. Thats a plus too of using CefGlue, i think.

Thanks.

Dmitry Azaraev

unread,
Apr 8, 2013, 4:31:32 AM4/8/13
to cef...@googlegroups.com
Hi.
We have two CefGlue project:
CefGlue 1 ( https://bitbucket.org/fddima/cefglue ) latest sources updated to be compatible with CEF 1.1364.1123. This version at not active development, but i'm open to accept pull requirests from community.

Xilium.CefGlue (v3) ( https://bitbucket.org/xilium/xilium.cefglue ) latest sources compatible with CEF 3.1453.1181.

CefGlue 1 is more like to CefSharp, it is also provide easy CLR<>JS interaction.

Xilium.CefGlue it is mainly just wrapper around CEF3, so it is probably requires some experience with CEF. Xilium.CefGlue not aimed just now to creating any controls, it bundled with some samples (WinForms, using off screen rendering mode with WPF, GTK#), samples doesn't cover all situations, but all of them is good starting point to integrate CEF in your's application.

In other side, CefGlue more aimed to use standard CEF binaries (at this time is possible), and doesn't require touch C++/CLI at all. As result Xilium.CefGlue can be used on Linux under mono, for example.

Current status of CefSharp i'm doesn't know, but as i know, last time most active maintaining of CefSharp doing by ataranto ( https://github.com/ataranto/CefSharp ).

So it is hard to make decision with wrapper is better without knowledge of application requirements.



--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best regards,
   Dmitry

Danjo

unread,
Jan 8, 2014, 1:48:07 AM1/8/14
to cef...@googlegroups.com

For off screen rendering, and the need to utilize java script integration, and the most up to date CEF version. Should I go with CEFGlue or CEFSharp?

Dmitry Azaraev

unread,
Jan 8, 2014, 9:45:22 AM1/8/14
to cef...@googlegroups.com
There are no difference OSR or not OSR mode is used.
I recommend using custom scheme handler and call you code via XMLHttpRequest.
Calling javascript are possible via CefFrame.ExecuteJavaScript.
There are exist other ways to do this (V8 integration), but there is are more complex. Read CEF's wiki pages, to learn more about CEF possibilities.


On Wed, Jan 8, 2014 at 8:48 AM, Danjo <dan....@gmail.com> wrote:

For off screen rendering, and the need to utilize java script integration, and the most up to date CEF version. Should I go with CEFGlue or CEFSharp?
--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards,
   Dmitry
Reply all
Reply to author
Forward
0 new messages