Developing Chrome Core Browser "II" based on. Net

Source: Internet
Author: User
Tags hosting

Original: "Two" chrome core browser based on. NET development

One:

Link to previous article:

Developing Chrome Core Browser "one" based on. Net

Two:

Introduction of related resources:

Chrome Frame:

Let IE have a chrome heart, looks good, but I did not delve into this thing.

Http://www.google.com/chromeframe?hl=zh-CN&quickenable=true

https://developers.google.com/chrome/chrome-frame/

Webkit.net

It's been a while since no one has updated this open source project, and has not studied

http://sourceforge.net/projects/webkitdotnet/

Cef

Well researched, very good class library, but written in C and C + +

https://code.google.com/p/chromiumembedded/

Http://www.cnblogs.com/think/archive/2011/10/06/CEF-Introduce.html (related articles written by Tan Zhenlin, a friend of the park)

Xilium.cefglue

Based on CEF, wrapped in. NET, very good, I use this class library (XILIUM.CEFGLUE/3)

Https://bitbucket.org/xilium/xilium.cefglue/wiki/Home

O.n.e

Domestic people developed, did not study, seemingly charges.

http://www.one-lab.net/

Node-webkit

  The people in the Garden developed, very good ideas, the combination of node and chromium, praise

https://github.com/rogerwang/node-webkit/

http://www.cnblogs.com/zhchbin/

Qt

I spent a lot of time and energy on this, and the result is a pit followed by a pit, but still can't bear to give up now

Http://qt-project.org/downloads

Open-webkit-sharp

Garden Friends recommended, I probably looked at the introduction, feel very good look!

https://code.google.com/p/open-webkit-sharp/

Other than that

Many of the resources mentioned here are from the friends of the park in the previous article.

Thank you.

Three:

CEF has two versions, CEF1 and CEF3

CEF1 is a single process, with more features, less memory usage, and a more perfect combination with client applications, using the WebKit API, but Flash cannot play properly in this framework, does not support HTML5 audio and video, only supports NPAPI plugins. For NPAPI plug-in knowledge, see here: http://developer.chrome.com/extensions/npapi.html (as if to FQ)

CEF3 is multi-process, using asynchronous messaging to complete communication between the main process and other processes (other processes may be webkit, or V8 parsing engine processes), using Chromium's official content rendering API to support NPAPI and Ppapi plugins, There is a separate process for debugging, in contrast to CEF1, although can play Flash and other video, but there are many problems not disposed of, the community people think CEF1 more stable, CEF3 issues list, see here: https:// Code.google.com/p/chromiumembedded/issues/list

We chose CEF3 and Xilium.cefglue,xilium.cefglue as the. NET wrapper for the CEF project, which is a p/invoke way to invoke the CEF class library, see: https://bitbucket.org/ Xilium/xilium.cefglue/wiki/home

There is also a CEFSHARP project that calls the CEF class library in C + +/CLI, see: Https://github.com/chillitom/CefSharp

Four:

Download the latest version of the CEF dynamic link library

is: http://xilium.bitbucket.org/cefglue/

Be sure to download it on this page! Because only the dynamic link library given by this page is xilium.cefglue supported.

What we see now is 3.1353.1236 version (I did not download the debug version)

Five:

Download the latest Xilium.cefglue code

: Https://bitbucket.org/xilium/xilium.cefglue/overview

On the right, click "Download" to do it.

Six:

Unzip the downloaded two compressed packets

Copy the files in the \cef_binary_3.1453.1236_windows_xilium\release directory.

Paste to: \xilium-xilium.cefglue-50e94efc4182\cefglue.demo.winforms\bin\debug directory

Seven:

Open the solution file under the \xilium-xilium.cefglue-50e94efc4182\ directory

Set the CefGlue.Demo.WinForms as the startup project

Precautions:

1.

Unload the Assembly CefGlue.Demo.GtkSharp,

This assembly is for the mono platform, and you can also uninstall WPF-related assemblies

2.

Right-click the CefGlue.Demo.WinForms assembly, point properties, select Debug,

Uncheck " enable Visual Studio hosting process ",

Because CEF3 is based on multiple processes, VS is not capable of hosting, so only cancel this option

3.

Right-click CefGlue.Demo.WinForms assembly, point properties, select Build, change target platform to X86

(This is not a hindrance if the compilation does not have to be modified)

Eight:

Compile and Execute,

You can see the demo that Cefglue wrote for you.

If you suspect the code in this demo is more complicated,

You can also see cefglue.client this Assembly

This assembly is a relatively simple demo,

You can also follow the above steps to get this demo running.

Nine:

The demo above looks something like this:

There are a few simple examples in this demo's Samples menu

This is handy for developers, who often look at these demos when writing their own programs.

But a few demos are too few.

Ten:

Open a project file in the Cef_binary_3.1453.1236_windows_xilium directory

(This is the CEF project, which says the Cefglue project based on the CEF development)

Compile and run

You'll see an interface like this:

In this demo, the test in the main menu is the demo for the developer

Obviously more than Cefglue!

If you have some C and C + + skills (not very high) can also read the example here

Eleven:

To tell the truth, the project still has a lot of pits, I have met several .

Stumbled at last, I have to share my experience with my friends at a step-by-step

Keep your eye on my follow-up articles

Developing Chrome Core Browser "II" based on. Net

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.