summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorRob Kendrick <rjek@rjek.com>2014-01-05 16:04:35 +0000
committerRob Kendrick <rjek@rjek.com>2014-01-05 16:04:35 +0000
commit0d7f1cfc93008add9a082c2c54de8427ac0f1786 (patch)
tree73bfabddbd734eb5a705ed313c260be893637355 /content/content.h
parentd8ad3b8e7893630d3866bc56c90f6f7556ab1740 (diff)
downloadnetsurf-0d7f1cfc93008add9a082c2c54de8427ac0f1786.tar.gz
netsurf-0d7f1cfc93008add9a082c2c54de8427ac0f1786.tar.bz2
Add infrastructure for calling front ends to set file gadget filenames via clicking in addition to drag-and-drop
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/content/content.h b/content/content.h
index 467fa6055..91a6ae9df 100644
--- a/content/content.h
+++ b/content/content.h
@@ -83,7 +83,8 @@ typedef enum {
CONTENT_MSG_POINTER, /**< Wants a specific mouse pointer set */
CONTENT_MSG_SELECTION, /**< A selection made or cleared */
CONTENT_MSG_CARET, /**< Caret movement / hiding */
- CONTENT_MSG_DRAG /**< A drag started or ended */
+ CONTENT_MSG_DRAG, /**< A drag started or ended */
+ CONTENT_MSG_GADGETCLICK/**< A gadget has been clicked on (mainly for file) */
} content_msg;
/** RFC5988 metadata link */
@@ -190,6 +191,10 @@ union content_msg_data {
} type;
const struct rect *rect;
} drag;
+ /** CONTENT_MSG_GADGETCLICK - User clicked on a form gadget */
+ struct {
+ struct form_control *gadget;
+ } gadget_click;
};
/** parameters to content redraw */