From 41e12953dcbc05fd69304415ba7d6357642739fe Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 13 Aug 2012 22:54:18 +0100 Subject: Add scroll request message to content message system. --- content/content.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'content') 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 */ -- cgit v1.2.3