]> git.eshelyaron.com Git - emacs.git/commit
xwidget: Pass JavaScript return value to optional callback procedure
authorRicardo Wurmus <rekado@elephly.net>
Wed, 26 Oct 2016 06:00:35 +0000 (23:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Oct 2016 06:07:13 +0000 (23:07 -0700)
commit623deaf406a85d8262bc1735009b3ee0535cc688
treeae248862709bdfed77a25a6bcd542467500a1a3d
parentd781662873f228b110a128f7a2b6583a4d5e0a3a
xwidget: Pass JavaScript return value to optional callback procedure

* lisp/xwidget.el (xwidget-webkit-execute-script): Accept optional
callback argument.
(xwidget-webkit-callback): Handle "javascript-callback" event type.
* src/xwidget.c (xwidget-webkit-execute-script): Accept optional
argument FUN, a Lisp procedure to execute on the JavaScript return
value.
(store_xwidget_js_callback_event, webkit_javascript_finished_cb,
webkit_js_to_lisp): New procedures.
lisp/xwidget.el
src/xwidget.c