unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/6] xwidget webkit: Use WebKit2 API.
@ 2016-09-21 11:50 Ricardo Wurmus
  2016-09-21 11:50 ` [PATCH 1/6] xwidget: " Ricardo Wurmus
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Ricardo Wurmus @ 2016-09-21 11:50 UTC (permalink / raw)
  To: emacs-devel; +Cc: Ricardo Wurmus

O fellow humans on emacs-devel!

I noticed that for the embedding of a WebKit widget in Emacs an old
version of WebKitGtk is needed, because the code in "src/xwidget.c"
targets the WebKit1 API.  As far as I know, only the latest version of
WebKitGtk is actively maintained, so it seems like a good idea to make
Emacs work with the latest version.

The first patch in this series adjusts the code such that the WebKit2
API is used instead, which allows users to build Emacs with the latest
version of WebKit(2)Gtk.  Due to process separation in WebKit2Gtk,
scrolling is now supposed to be done in the UI process.  This is what
the second patch does; it implements scrolling by executing JavaScript
in the WebKit view.  (Maybe the first two commits should be squashed?)

The other patches are simple changes to make interacting with the
WebKit widget a little easier.

If these patches are okay I'd like to continue by removing the title
hack, which is currently used to get a stringified return value from
JavaScript.  This is no longer needed when using the WebKit2 API as it
supports passing a callback to process any JS return values.

~~ Ricardo

PS: I did copyright assigment for GNU Guile already, but I'm not sure
if copyright assignment is on file for Emacs already.

Ricardo Wurmus (6):
  xwidget: Use WebKit2 API
  Remove scrolled window container around WebKit widget
  Implement zoom for WebKit widget.
  xwidget: Bind "beginning-of-buffer" and "end-of-buffer"
  Let initial WebKit view fill window
  xwidget: Map "previous-line" and "next-line" to scroll

 configure.ac    |   4 +-
 lisp/xwidget.el |  56 +++++++++---
 src/xwidget.c   | 270 ++++++++++++++++++++++----------------------------------
 src/xwidget.h   |   3 -
 4 files changed, 151 insertions(+), 182 deletions(-)

-- 
2.10.0





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-09-21 19:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-21 11:50 [PATCH 0/6] xwidget webkit: Use WebKit2 API Ricardo Wurmus
2016-09-21 11:50 ` [PATCH 1/6] xwidget: " Ricardo Wurmus
2016-09-21 11:50 ` [PATCH 2/6] Remove scrolled window container around WebKit widget Ricardo Wurmus
2016-09-21 11:50 ` [PATCH 3/6] Implement zoom for " Ricardo Wurmus
2016-09-21 11:50 ` [PATCH 4/6] xwidget: Bind "beginning-of-buffer" and "end-of-buffer" Ricardo Wurmus
2016-09-21 11:50 ` [PATCH 5/6] Let initial WebKit view fill window Ricardo Wurmus
2016-09-21 11:50 ` [PATCH 6/6] xwidget: Map "previous-line" and "next-line" to scroll Ricardo Wurmus
2016-09-21 12:05 ` [PATCH 0/6] xwidget webkit: Use WebKit2 API joakim
2016-09-21 14:51 ` Eli Zaretskii
2016-09-21 18:47   ` Ricardo Wurmus
2016-09-21 19:12     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).