I:
Link of the previous article:
Develop a chrome core Browser Based on. NET [1]
II:
Related Resources:
Chrome frame:
It looks good to let ie have a chrome heart, but I didn't study it in depth.
Http://www.google.com/chromeframe? Hl = ZH-CN & quickenable = true
Https://developers.google.com/chrome/chrome-frame/
WebKit. net
No one has updated this open-source project for a while, and I have never studied it.
Http://sourceforge.net/projects/webkitdotnet/
CEF
I have studied a very good class library, but it is written in C and C ++.
Https://code.google.com/p/chromiumembedded/
Http://www.cnblogs.com/think/archive/2011/10/06/CEF-Introduce.html (Yuan You tan zhenlin write relatedArticle)
Xilium. cefglue
Based on CEF, it has been packaged with. net. It is very good. I will use this class library (xilium. cefglue/3)
Https://bitbucket.org/xilium/xilium.cefglue/wiki/Home
O. N. e
Developed by people in China, I have never studied it, and it seems to be charged.
Http://www.one-lab.net/
Node-WebKit
Developed by people in the garden,A very good idea. The combination of node and chromium, likes
Https://github.com/rogerwang/node-webkit/
Http://www.cnblogs.com/zhchbin/
Qt
I have spent a lot of time and energy in this regard. As a result, it is a pitfall followed by a pitfall, but I still cannot give up until now.
Http://qt-project.org/downloads
Open-WebKit-sharp
I have read about the introduction recommended by yuanyou. It looks good!
Https://code.google.com/p/open-webkit-sharp/
In addition
Many of the resources mentioned here are mentioned by park friends in the previous article.
Thank you.
III:
The CEF has two versions: cef1 and CeF3.
Cef1 is a single process that provides more features, less memory usage, and a more perfect combination with client applications. It uses WebKit APIs, however, flash cannot play normally in this framework. It does not support HTML5 audio and video, but only supports the npapi plug-in. For more information about the npapi plug-in, see here: http://developer.chrome.com/extensions/npapi.html (as if you want to flip the wall)
CeF3 is multi-process. It uses asynchronous messages to communicate with other processes (other processes may be WebKit or V8 parsing engine processes ), the official content presentation API of chromium is used. It supports the npapi and ppapi plug-ins. There is a separate process for debugging. Compared with cef1, although flash and other videos can be played, but there are still many problems that have not been solved,CommunityPeople in thought that cef1 is more stable, CeF3 issues list, see here: https://code.google.com/p/chromiumembedded/issues/list
We chose CeF3 and xilium. cefglue, and ium. cefglue for the. NET packaging of the CEF project.P/invoke method to call the CEF class library, see: https://bitbucket.org/xilium/xilium.cefglue/wiki/Home
There is also a cefsharp project that uses C ++/CLI to call the CEF class library, see: https://github.com/chillitom/CefSharp
IV:
Download the latest CEF Dynamic Link Library
For: http://xilium.bitbucket.org/cefglue/
Please download it on this page! Because only the dynamic link library provided on this page is supported by xilium. cefglue.
Currently, we see version 3.1353.1236 (I have not downloaded the debug version)
V:
Download the latest xilium. cefglueCode
: Https://bitbucket.org/xilium/xilium.cefglue/overview
Click "Download" on the right.
VI:
Decompress the two downloaded packages.
Copy the files in the \ cef_binary_3.1453.1236_windows_xilium \ release directory.
Paste the post to: \ xilium-xilium.cefglue-50e94efc4182 \ cefglue. Demo. winforms \ bin \ DEBUG directory
7:
Open the solution file under the \ xilium-xilium.cefglue-50e94efc4182 \ directory
Set cefglue. Demo. winforms as the startup project
Note:
1.
SetProgramSet cefglue. Demo. gtksharp to uninstall,
This Assembly is used by the mono platform. You can also uninstall the WPF-related assembly.
2.
Right-click the cefglue. Demo. winforms assembly, click Properties, and select debug,
Deselect"Enable Visual Studio to host Processes",
Because CeF3 is based on multi-process and VS is not capable of carrying, you must cancel this option.
3.
Right-click the cefglue. Demo. winforms assembly, click Properties, select generate, and change the target platform to x86.
(This item cannot be modified if it cannot be compiled)
8:
Compile and execute,
You can see the demo that cefglue wrote for you.
If you suspect that the code in this demo is complicated
You can also look at the cefglue. Client assembly.
This Assembly is a simple demo,
You can also run the demo following the steps above.
IX:
The demo above looks like this:
There are several simple examples in the samples menu of this demo.
This provides developers with convenience. Developers often read these demos when writing their own programs.
But there are too few demos.
10:
Open the project file in the cef_binary_3.1453.1236_windows_ium ium directory.
(This is the CEF project. Previously we talked about the cefglue project developed based on CEF)
Compile and run
You will see an interface similar to this:
In this demo, test in the main menu is a demo prepared for developers.
Obviously more than cefglue!
If you have some C and C ++ skills (not very high), you can understand the examples here.
11:
To be honest,There are still many pitfalls in this project. I have already met several.
Finally, I came up with the stumbling line. I shared my experience with yuanyou step by step.
Please keep an eye on my subsequent articles