[webkit-help] JavaScript C++ bindings in webkit

Wadii Guedria wadii.gd at gmail.com
Thu Jun 10 01:43:21 PDT 2010


Hi,

I have a question about javascript/C++ bindings in webkit.
For example, I have an extern C++ class (attributes+methodes)
My objective is to access to this class from javascript like this:

var object = new mycpluplusclass();
object.getattribute;
object.mycplusplusfunction;

....

I know that I need to use JSClassDefinition and set the JSStaticFunction.
But I dont know how to define my C++ constructor in
JSObjectCallAsConstructorCallback
Same thing for get/set  Property(C++ attribute).
Any suggestions are welcome.

Regards,
Wadii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20100610/f3e8ac51/attachment.html>


More information about the webkit-help mailing list