[Java-gnome-developer] Webkit
Brought to you by:
afcowie
From: Niranjan R. <nh...@gm...> - 2012-10-10 16:22:41
|
Greetings! I need lot of functionality that other java browsers such SWT were not exporting. As far I know, java-gnome is also not exposing web kit bindings. So I spent couple of days trying to adapt java-gnome to use webkit library with some sucess. That is I am able to say new WebView() and windows does show browser which functions as expected. I wrote a simple code generator that parses gir files and generates defs files and java classes. As per my understanding current design there are plumbing classes in generated folder and concrete hand written classes in the src directory. Since def files are almost complete in terms of methods, this works nicely. Because of time constraint, currently I am generating compilable stubs for concrete clases in src directory and then adding methods that I need to appropriate classes. Questions: 1. Do we want webkit to be part of main library. I understand that not everyone needs webkit and right now current mechanism needs webkit libraries to build. 2. Is it possible to split java gnome libraries per module - e.g. glib.jar, gtk.jar, webkit.jar with version numbers. 3. What is recommended way to add java support for other GTK modules? I would like to submit my changes upstream after polishing and making sure its really submittable or make it available from other channel. Though number of FIXME in the generated code has gone down, I can't really say its zero. Especially if blocks compilation. There are couple of functions in generated c code where it returns FIXME which does not exist and I have to touch generated code to get it compile. Regards, Niranjan |