Web desktop Application Framework 2: A well-known web desktop application analysis

Source: Internet
Author: User

In the previous article, several Web desktop application development methods, including nw.js and Electron, were analyzed, and in fact there was one of the oldest ways to embed WebView.

The way you embed WebView and the whole program is different from the web window, only the part of the window that uses WebView, and the native UI or Directui in a way that combines.

This method of embedding WebView in a C + + program, because there is no universally accepted framework or method, is basically the most difficult and primitive way of reckless, or self-research platform, difficult to open. But there are a lot of great effects, very famous software. So let's count these desktop apps.

First, Htmlayout and Sciter

Htmlayout is a veteran of the Web desktop application platform. Not open source, very small, less than 1M size (should be shell compression, actual 3M more). Should be the author's original HTML engine. At first there were many restrictions, and the successor Sciter a great deal. 6M size. Support full platform development, including apps. Because do not open source, so the network impact is not very big, are enterprise user use.

Htmlayout and Sciter have a lot of famous users, the domestic Maxthon browser, Sohu and 360.

Second, QQ:

The latest version of QQ inside, with Libcef3.dll, less than 30M of volume, cut well. The control script is used by LUA.

The information was xml,html,lua in the bag. It appears to be directui and web hybrid development. Use WebCTRL in the page to mix.

<UI>
<window name= "Medalwall" config= "Medalwallwndconfig" location= "" clientareasize= "700,470" titleText= "[email Protected]:medalwallwndcaption "fixsize=" true "showmaxbutton=" false ">
<!--<webctrl config= "WebKit" sizeasparent= "true" Name= "Medalwallpage"/>-->
<frame size= "700,470" >
<background>
<brush clrfrom= "0xFFFFFFFF"/>
</background>
</Frame>
</Window>
</UI>

Three, pea pod

Pea clip with Libcef.dll, about 38M size, also with Lua51.dll, but now also 51 is not a bit outdated, lua5.2 5.3 have a great improvement.

Peas folder before the open source Onering project also did not have the following, the program also can not see the traces of onering, should be a makeover.

The resource has been hit by a packet. All of its pages do not support the right-click menu, and should all be Web-enabled. Although not using a mixed interface, but with the C + + program tightly, should also be some goods.

Four, Cool dog

Funny yes, cool dog's libcef.dll renamed to infra.dll,40m size

Cool dog resources packaged into standalone files, XML format, estimated to be directui and web-bound way

<Forms>
<onekeybackupprompt name= "onekeybackupprompt" relativeposition= "0,0,0,0" anchors= "Left,top,right,bottom" >
<image name= "Onekeybackuppromptbackground" anchors= "Left,top,right,bottom" relativeposition= " -20,-20,-20,-20" bitmap= "Playlistaddmark.png"/>
<image name= "Onekeybackuppromptlogo" anchors= "" relativeposition= "0,-34,122,70" bitmap= "Onekey_backup_ Animation.png "/>
<label name= "onekeybackupprompttips" anchors= "" relativeposition= " -30,27,90,16"/>
<label name= "Onekeybackuppromptcancel" anchors= "" relativeposition= "51,28,52,16"/>
</OnekeyBackupPrompt>
</Forms>

In the "Appdata\roaming\kugou8\webcache" directory, found the extracted resources, is indeed an HTML page, confirmed the use of web technology.

Just the various versions of the garbage resource information can be cleaned up, no wonder more and more big.

In the "Appdata\roaming\kugou8\appstore" directory found in the program has Sciter32.dll, it appears to be sciter users.

Wu, Duilib,soui2,duivision and Wke

Duilib,soui2,duivision is a well-known open source Directui Library with built-in Wke engine inside.

Wke is based on WebKit's simplicity, the advantage is small enough, 11M in size. But the disadvantage is old enough and a lot of bugs.

Because the Directui technology of the relevant open source Library is itself a technology similar to the Web desktop application, it is based on the XML development interface.

So few people use Wke to develop Web desktop applications, and Wke-based Web desktop applications are in a relatively primitive phase.

Wke Portal Github-blzfans/wke

and known as the smallest chromium kernel miniblink, has been open source, do not know how.

The author is more active, give a portal bar: github-weolar/miniblink49

Summarize:

Web desktop application framework in all, it's either hard or weak, or more restrictive.

Although the front-end has been advocating JS full stack, but I think the multi-lingual cooperation is more advantageous.

The ideal framework to do this: the core algorithm can be compiled + can be combined with the GUI framework +web only responsible for the interface part + open Source implementation

The new framework of golang+libui+cef+http+ may be a good combination.

Finish

Web desktop Application Framework 2: Well-known web desktop app Analytics

Related Article

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.