Re: Webkit2 porting



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().

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.



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