News for hackers. Stuff that matters.
Re:MacGap: Desktop WebKit wrapper for HTML/CSS/JS applications by sjs382 on Monday January 09, 2012 @05:36PM (#3444647)
Does something like this exist for windows?
Re:MacGap: Desktop WebKit wrapper for HTML/CSS/JS applications by Dysiode on Monday January 09, 2012 @07:39PM (#3445075)
I've had more luck with the QtWebKit Bridge: http://doc.qt.nokia.com/4.7-snapshot/qtwebkit-bridge.html than other options (primarily Titanium).

It's a bit more complicated and requires you to get familiar with Qt's paradigms for things like resource management (I'm still struggling with how to access files outside a qrc), but it offers infinitely more flexibility by exposing the entirety of Qt (and C++) to you as needed.

For example, I wanted to write a frameless app with edge snapping. The two problems I ran across were:

- First, when expanding a window the mouse would leave the web widget and so Titanium would stop sending mouse events (as it should). To fix that I had to wrap my content and center it in a larger transparent <body> and then account for that in the movement code. Ugly, but do able.

- And then, edge snapping on the other hand is impossible. Titanium doesn't handle multiple monitors very well. In-order to get the dimensions of a desktop you've dragged into you have to drop it first and even then it's relative to the upper left corner of the primary display.

I realize these are very specific issues but they're trivial in Qt (I handle resizing and dragging in Qt so mouse position is no longer an issue, and QDesktop is extremely straightforward).

Furthermore, not every library is available in Javascript so it can be useful to fall back to C++. I'm still using mustache.js for templating but I won't be using Strophe.js for my jabber library, I can instead use quicker C++ power library (I'd like to use libpurple but that's a whole other mess itself).

See Also:

There's a few decent Dev Days videos about it: http://developer.qt.nokia.com/videos#c-87

For completeness the one I've watch primarily is: http://developer.qt.nokia.com/videos/watch/hybrid_developmen...

And also there's a growing number of usable examples like http://doc.qt.nokia.com/4.7-snapshot/webkit-imageanalyzer.ht...

Re:MacGap: Desktop WebKit wrapper for HTML/CSS/JS applications by rjd on Monday January 09, 2012 @06:05PM (#3444758)
You can easily embedd internet explorer frames in winforms and WPF. If you're using Visual studio its almost a drag and drop affair. To gain things like system wide notifications you will need to use interop to get to the win32 libs, but its fairly straight forward and well documented.

As far as I'm aware (and I'm speculating from articles I've read) is that full support for HTML apps is coming in Windows 8.

EDIT: or just use the other link provided in the other comment which has webkit support :)

Re:MacGap: Desktop WebKit wrapper for HTML/CSS/JS applications by taskstrike on Monday January 09, 2012 @06:04PM (#3444752)
Re:MacGap: Desktop WebKit wrapper for HTML/CSS/JS applications by jarek-foksa on Monday January 09, 2012 @10:21PM (#3445492)
There is also Mozilla Chromeless project (possibly dead) and CEF - Chromium Embedded Framework. Tweaking the test app from CEF should be a good starting point: http://code.google.com/p/chromiumembedded/source/browse/trun...
Re:MacGap: Desktop WebKit wrapper for HTML/CSS/JS applications by vena on Monday January 09, 2012 @06:29PM (#3444856)
appcelerator titanium, i'd guess - http://www.appcelerator.com/
Re:MacGap: Desktop WebKit wrapper for HTML/CSS/JS applications by kingofspain on Monday January 09, 2012 @07:33PM (#3445062)
Titanium desktop has the feel of being abandoned - even if not officially the case. For anything non-trivial, you're entering a world of hurt.
Re:MacGap: Desktop WebKit wrapper for HTML/CSS/JS applications by hdragomir on Monday January 09, 2012 @06:14PM (#3444789)
dare I say Adobe Air?

I does exist...