summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-16 23:26:05 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-16 23:26:05 +0100
commit402de7572d76686dd65a5ee71274a690a421cc8f (patch)
tree31344508aed1e1caa650be5496a6df40e1eb8ea2 /content
parenta548275fa238870075fc3c9a5076a731d3d11a9e (diff)
downloadnetsurf-402de7572d76686dd65a5ee71274a690a421cc8f.tar.gz
netsurf-402de7572d76686dd65a5ee71274a690a421cc8f.tar.bz2
Use new content message for saving of hyperlink target URL.
Diffstat (limited to 'content')
-rw-r--r--content/content.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/content/content.h b/content/content.h
index 5ff40d00c..f3a443868 100644
--- a/content/content.h
+++ b/content/content.h
@@ -75,7 +75,8 @@ typedef enum {
CONTENT_MSG_LINK, /**< RFC5988 link */
CONTENT_MSG_GETCTX, /**< Javascript context */
CONTENT_MSG_SCROLL, /**< Request to scroll content */
- CONTENT_MSG_DRAGSAVE /**< Allow drag saving of content */
+ CONTENT_MSG_DRAGSAVE, /**< Allow drag saving of content */
+ CONTENT_MSG_SAVELINK /**< Allow URL to be saved */
} content_msg;
/** RFC5988 metadata link */
@@ -139,6 +140,11 @@ union content_msg_data {
} type;
struct hlcache_handle *content;
} dragsave;
+ /** CONTENT_MSG_SAVELINK - Save a URL */
+ struct {
+ const char *url;
+ const char *title;
+ } savelink;
};
/** parameters to content redraw */