[webkit-gtk] Exposing GObjects in a Webview JS context

Alexandre Mazari scaroo at gmail.com
Thu Mar 11 09:12:03 PST 2010


I just submited a patch against Seed allowing its initialization within an
existing JSGlobalContext.
The main usecase is to give a Webview js context access to Seed-binded
GObject libraries.
This way, it will be possible to fully define our UIs in HTML5/JS/CSS3 on
top of our rich ecosystem of libraries and daemons.

As a proof of concept, a small app is also provided in bugzilla, binding
within th HTML file a DOM event to a native GObject call (for instance, a
call to libnotify).
The actual Seed initialization happens at the Webview
"window-object-cleared" signal reception, giving us a hold on a
JSGlobalContext reference.
So any comment, remark on the patch and the design is appreciated :)

"If you open your mind too much, you brain will fall out"
Tim Minchin

Alexandre Mazari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20100311/84d19b8d/attachment.html>

More information about the webkit-gtk mailing list