[webkit-dev] pywebkitgtk - adding DOM javascript executing and evaluation; next step, addEventListener etc.

Luke Kenneth Casson Leighton lkcl at lkcl.net
Wed Aug 20 08:22:37 PDT 2008


in "WebCore/loader/ImageDocument.cpp", you have an example
addEventListener(), which adds a class listener resulting
in ImageListener::handleEvent() being called at line 334...

.. is it as simple as that??

if i write some functions which make it possible to add
event listeners to nodes (including e.g. document.window),
is that basically it?

the infrastructure already exists, in c-code (well... c++ anyway)
for event callbacks?




More information about the webkit-dev mailing list