summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-10-24 17:57:15 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-10-24 17:57:15 +0100
commitb27f3e5ac46bb85f605e27516c94d64a089c66c0 (patch)
treec65c5191b89bd718bd1a1b6ff736789fa7a559ba /content/content.h
parent197f6e34f8370b983411df93f539eb4fdf4295dd (diff)
downloadnetsurf-b27f3e5ac46bb85f605e27516c94d64a089c66c0.tar.gz
netsurf-b27f3e5ac46bb85f605e27516c94d64a089c66c0.tar.bz2
Open select menu via content msg, instead of breaking encapsulation.
Fixes bw deref and browser_private.h #include in render/
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/content.h b/content/content.h
index 752370034..45c9c0452 100644
--- a/content/content.h
+++ b/content/content.h
@@ -84,6 +84,7 @@ typedef enum {
CONTENT_MSG_SELECTION, /**< A selection made or cleared */
CONTENT_MSG_CARET, /**< Caret movement / hiding */
CONTENT_MSG_DRAG, /**< A drag started or ended */
+ CONTENT_MSG_SELECTMENU,/**< Create a select menu */
CONTENT_MSG_GADGETCLICK/**< A gadget has been clicked on (mainly for file) */
} content_msg;
@@ -197,6 +198,10 @@ union content_msg_data {
} type;
const struct rect *rect;
} drag;
+ /** CONTENT_MSG_SELECTMENU - Create select menu at pointer */
+ struct {
+ struct form_control *gadget;
+ } select_menu;
/** CONTENT_MSG_GADGETCLICK - User clicked on a form gadget */
struct {
struct form_control *gadget;