[webkit-gtk] WebView signals

Carlos Garcia Campos cgarcia at igalia.com
Wed Jun 4 00:06:05 PDT 2014


El mar, 03-06-2014 a las 22:59 +0200, Pierre-Yves escribió:
> Hello,
> 
> I don’t find some WebKit2 equivalent for "user-changed-contents » WebView signal on WebKit1.
> I also looked at WebExtension parts but did not found neither.
> 
> Is there an equivalent?
> Use case is to detect changes in an editable page and act accordingly.

There's webkit_dom_html_text_area_element_is_edited and
webkit_dom_html_input_element_is_edited in the DOM bindings API. You can
iterate the DOM looking for text area/fields and query them. This is
what we do in ephy:

https://git.gnome.org/browse/epiphany/tree/lib/ephy-web-dom-utils.c#n27

> Regards
> Pierre-Yves
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-gtk
> 

-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20140604/34e042ca/attachment.sig>


More information about the webkit-gtk mailing list