summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-02-08 13:22:53 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-02-08 13:22:53 +0000
commit4747bbbfb21d645f950149bbe173a2618cd3eba9 (patch)
tree531e65e9dab07fbd25f827bea1fc43f7c0e7f7de /content/content.h
parent9ec663f3a95242fe42718d105c478f19be554fd3 (diff)
downloadnetsurf-4747bbbfb21d645f950149bbe173a2618cd3eba9.tar.gz
netsurf-4747bbbfb21d645f950149bbe173a2618cd3eba9.tar.bz2
HTML drags now go via content msg.
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/content/content.h b/content/content.h
index 7781ba9b8..2ae0b38be 100644
--- a/content/content.h
+++ b/content/content.h
@@ -78,7 +78,8 @@ typedef enum {
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_POINTER, /**< Wants a specific mouse pointer set */
+ CONTENT_MSG_DRAG /**< A drag started or ended */
} content_msg;
/** RFC5988 metadata link */
@@ -152,14 +153,15 @@ union content_msg_data {
} savelink;
/** CONTENT_MSG_POINTER - Mouse pointer to set */
browser_pointer_shape pointer;
- /** CONTENT_MSG_PASTE - Content requests that clipboard is pasted */
+ /** CONTENT_MSG_DRAG - Drag start or end */
struct {
- /* TODO: Get rid of these coords.
- * browser_window_paste_text doesn't take coords, but
- * RISC OS front end is doing something different. */
- int x;
- int y;
- } paste;
+ enum {
+ CONTENT_DRAG_NONE,
+ CONTENT_DRAG_SCROLL,
+ CONTENT_DRAG_SELECTION
+ } type;
+ const struct rect *rect;
+ } drag;
};
/** parameters to content redraw */