[webkit-help] How does javascript call native code such as c/c++?

Ryosuke Niwa rniwa at webkit.org
Thu Mar 15 09:04:05 PDT 2012

That's done by "binding" code. You typically add new IDL file (.idl) for a
new class you're adding. Then the build script will automatically generate
JS*.cpp or V8*.cpp for you. You can also add a custom binding code (see
WebCore/bindings/) per attribute/method.

- Ryosuke

2012/3/15 wenmhappy <wenmhappy at 126.com>

> Hi,
>       I  want  let javascript call  native code(c/c++) to access native
> sources, but  I don`t  know how to do it.
> Thanks for any help,
> Best regards.
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120315/03810479/attachment.html>

More information about the webkit-help mailing list