summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-18 16:26:56 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-18 16:26:56 +0100
commit19d2a0c01185451d2e2903f116f792e591b8ff5f (patch)
tree9b3a790d659effcefcc175c1eb1abd2cc43e61ca /content/content.h
parent8e4819e450f5922cde793477c634df9c82c21fb6 (diff)
parenteb35a576c1b5845d4aa6b2b77d8039f49f048edc (diff)
downloadnetsurf-19d2a0c01185451d2e2903f116f792e591b8ff5f.tar.gz
netsurf-19d2a0c01185451d2e2903f116f792e591b8ff5f.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/content/content.h b/content/content.h
index f1ff2a2c9..d0b525c85 100644
--- a/content/content.h
+++ b/content/content.h
@@ -74,7 +74,10 @@ 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_SCROLL, /**< Request to scroll content */
+ CONTENT_MSG_DRAGSAVE, /**< Allow drag saving of content */
+ CONTENT_MSG_SAVELINK, /**< Allow URL to be saved */
+ CONTENT_MSG_POINTER /**< Wants a specific mouse pointer set */
} content_msg;
/** RFC5988 metadata link */
@@ -128,6 +131,23 @@ union content_msg_data {
int x0, y0;
int x1, y1;
} scroll;
+ /** CONTENT_MSG_DRAGSAVE - Drag save a content */
+ struct {
+ enum {
+ CONTENT_SAVE_ORIG,
+ CONTENT_SAVE_NATIVE,
+ CONTENT_SAVE_COMPLETE,
+ CONTENT_SAVE_SOURCE
+ } type;
+ struct hlcache_handle *content;
+ } dragsave;
+ /** CONTENT_MSG_SAVELINK - Save a URL */
+ struct {
+ const char *url;
+ const char *title;
+ } savelink;
+ /** CONTENT_MSG_POINTER - Mouse pointer to set */
+ browser_pointer_shape pointer;
};
/** parameters to content redraw */