summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/content.h9
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 */