Sunday, December 28, 2008

JS --> C++ call APIs polishing.

It has been around 2 weeks I am polishing the APIs of JavaScript to C++ calls. The main crux of the project is to provide a simple but very versatile and easy to use APIs for the plugin developers.

I have created MCruxJSObject class which is responsible for putting the first object in the global JavaScriptContext. This object (rather namespace) is named "mcrux". The Object will be the key-point to access various "MCrux" functionalities.

On the other side I started with the sample application "MChat". The "MChat" application is a separate Application which uses the MCrux.dll to create the WebView and only renders a "hello world " page. I will be implementing various features of IM Client one by one. "MChat" would be driving the development of MCrux in its initial phases.

Friday, December 12, 2008

start with JavaScript to C++ calls examples

WebKit takes decent amount of time to learn various APIs provided. lots of classes to understand. This is more of understanding the work flow along with learning the APIs.

There is a decent amount of documentation there on apple's website, but the problem with that documentation is that it only describes implementation on MAC port. All the other port differs slightly from that documentation. The APIs are same but the default behavior differs. Taking example, In mac port the "alert()" method pops a message box with the given content, but in windows(Cairo) port the default behavior is not display anything.

I got a start with the JavaScript to C++ calls working. I will be checking in the same example soon in the repository. I am able to call "mcrux.someFunction();" from within JavaScript and it calls my registered call back function "void SomeFunction()" in my c++ code. All the WebKit developers are very helpful. Thank you for your valuable support.

Saturday, November 29, 2008

got WebKit compiled with Cairo on Windows !!!

Finally the train has started moving a bit! I am able to compile the WebKit using Cairo. It has taken around 2 more weeks of time because is no proper documentation and there are patches attached on the Bugzilla which needs to be applied in terms of making it compile in Cairo build. WebKit developers are trying to commit all those patches to the repository as soon as possible.

Apart from them there are set of libraries which are required. the complete list is now available at Building Cairo on Windows
I am starting off with some basic examples of usages of WebKit. Soon I will be posting various sample codes for WebKit.

Saturday, November 15, 2008

Got started with WebKit.

I have been trying to build WebKit (The open source browser engine(http://webkit.org/)) since last two weeks. I thought that the process would be too simple. just downloading the source and compiling it, but things were not that simple.
The compilation requires a set of CygWin libraries as a prerequisite. Code should only be downloaded from CygWin shell which again should have *nix style line breaks.
Apart from them one need to download WebKitSupportLibraries as well as run the update-webkit command to update the source to latest trunk version and get the latest axillary libraries.
I was then ready to compile the source. I had taken around one week to resolve all these prerequisite issues. I want to give special thanks to A. Roben.(aroben) and B. Fulgham.(bfulgham) only by help of them I am able to reach this step.
I had started compiling the source. I came to know from aroben that I am the first one who is trying to build Cairo build of WebKit. The Trunk version has some compile time errors. I found one Include file error and conveyed the same. The patch has been committed to the trunk version of WebKit. This is the smallest one but my first contribution to WebKit.
I am still finding some of the compile time problems. I will be trying to collaborate with WebKit Developers to solve these problems and get the cairo build of WebKit up and running. :)