[webkit-help] Help understanding how WebCore/bindings/js files get generated

Nilesh Patil vniles at gmail.com
Wed Aug 17 01:43:09 PDT 2011


Hi

DOM event - Do you mean event something like '*onmouseover' *?
If Yes then - I think you can do following.
You will need to add a corresponding event listener in idl file. (
Element.idl, Document.idl)
You will probably need to modify HTMLAttributenames.in
Since its a completely new attribute/event, you will have to make parser
understand that there is something like 'yourevent' existing. You will need
to modify corresponding element source's
attribute parsing logic. If most of the elements need to support this you
can as well do it in HTMLElement::parseMappedAttribute().
Here you can create a corresponding eventlistener.

I suggest you dont modify anything under DerivedSources as most of source
documents are automatically generated by refering .idl files.

Hope this helps !!

Thanks & Regards
Nilesh

On Wed, Aug 17, 2011 at 12:04 AM, swaroop k.s <swaroop_ks at yahoo.com> wrote:

> Hi all,
>   I am trying to understand how the files in WebCore/bindings/js files get
> populated.
> I have a vague understanding that there are .idl files that control the
> generation of these files. But, if there is some sort of documentation
> describing how these are structured, how to approach writing a new file (for
> example, if I want to introduce a new DOM event), it will be really helpful.
>
> Please let me know of any pointers that will help.
>
> Thanks
> Swaroop
>
> _______________________________________________
> 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/20110817/bb37118f/attachment.html>


More information about the webkit-help mailing list