Re: Webkit2 porting



Robert Schroll <rschroll gmail com> writes:

On Wed, Oct 15, 2014 at 2:25 PM, Carlos Garcia Campos 
<carlosgc gnome org> wrote:
The DOM API is the same in WebKit1 and WebKit2.

Not as exposed to Vala, at least.  Compare:
WebKit1 
https://git.gnome.org/browse/vala/tree/vapi/webkit-1.0.vapi#n4632 [1]
WebKit2 
https://git.gnome.org/browse/vala/tree/vapi/webkit2gtk-web-extension-4.0.vapi#n2409

The v2 API has lost add_event_listener() and gained 
add_event_listener_with_closure() and 
remove_event_listener_with_closure().

All those methods are in the gir file generated by WebKit.

Robert

[1] Admittedly this is the -1.0.vapi, which is rather old.  But in 
Geary, we generate webkitgtk-3.0.vapi, and it has the same methods for 
EventTarget.


Are those VAPI files generated from the gir file?

-- 
Carlos Garcia Campos
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462

Attachment: pgpqNeZOnjmu3.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]