diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-13 22:54:18 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-13 22:54:18 +0100 |
commit | 41e12953dcbc05fd69304415ba7d6357642739fe (patch) | |
tree | e63ffe7ffada881969d3c989ff01f18c7992a00b /content/content.h | |
parent | cc6c3a7c707878cbb0598476c1f8185d6a2557d5 (diff) | |
download | netsurf-41e12953dcbc05fd69304415ba7d6357642739fe.tar.gz netsurf-41e12953dcbc05fd69304415ba7d6357642739fe.tar.bz2 |
Add scroll request message to content message system.
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/content.h b/content/content.h index 98879f8a5..ab569dd64 100644 --- a/content/content.h +++ b/content/content.h @@ -74,6 +74,7 @@ typedef enum { CONTENT_MSG_DOWNLOAD, /**< download, not for display */ CONTENT_MSG_LINK, /**< RFC5988 link */ CONTENT_MSG_GETCTX, /**< Javascript context */ + CONTENT_MSG_SCROLL /**< Request to scroll content */ } content_msg; /** RFC5988 metadata link */ @@ -115,6 +116,14 @@ union content_msg_data { struct content_rfc5988_link *rfc5988_link; /** CONTENT_MSG_GETCTX - Javascript context */ struct jscontext **jscontext; + /** CONTENT_MSG_SCROLL - Part of content to scroll to show */ + struct { + /** if true, scroll to show area given by (x0, y0) and (x1,y1). + * if false, scroll point (x0, y0) to top left of viewport */ + bool area; + int x0, y0; + int x1, y1; + } scroll; }; /** parameters to content redraw */ |