[webkit-dev] Fwd: how to extend self-defined javascript in webkit using v8 on android

Volter Yen volter619 at gmail.com
Fri Dec 10 19:33:35 PST 2010


Hi all,
    I want to extend my javascript in webpage  on android, eg. "var myObj =
new MYOBJ(); myObj.x =3",
according to v8 guide and webkit sourcecode. the former guide us to write
standalone v8-based application,
and the later the target to extend. I found that the binding from domwindow
object to v8domwindow is auto generated by scripts,
  then I met problem when I try to add customized javascript to the webcore,
for example , In the webcore, DOM binding  will create a context , where
specified Frame related extensions and objecttemplate , it seems that I
could v8::RegisterExtension and add objecttemplate to the exisited  context
enviroment in order binding my customzied MYOBJ to v8,   is it the correct
idea?and how can I add my objecttemplate for  MYOBJ to the exisit on for
webcore's DOM,  please give me some hint  or example on this ,thank you!
Volter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20101211/54b78f51/attachment.html>


More information about the webkit-dev mailing list