diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-16 20:20:49 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-16 20:20:49 +0100 |
commit | 1919c8e07168859cc6362c5283d47d0ced3a9bc2 (patch) | |
tree | e4f73cb11fe52209f7c7b662ef07901dd66c5051 /content | |
parent | 049d5097b8d625fc19f86cb9fb836de9a164b56b (diff) | |
download | netsurf-1919c8e07168859cc6362c5283d47d0ced3a9bc2.tar.gz netsurf-1919c8e07168859cc6362c5283d47d0ced3a9bc2.tar.bz2 |
Add message for content wanting wanting drag save to start.
Diffstat (limited to 'content')
-rw-r--r-- | content/content.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/content/content.h b/content/content.h index f1ff2a2c9..5ff40d00c 100644 --- a/content/content.h +++ b/content/content.h @@ -74,7 +74,8 @@ 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; /** RFC5988 metadata link */ @@ -128,6 +129,16 @@ 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; }; /** parameters to content redraw */ |