From b27f3e5ac46bb85f605e27516c94d64a089c66c0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 24 Oct 2014 17:57:15 +0100 Subject: Open select menu via content msg, instead of breaking encapsulation. Fixes bw deref and browser_private.h #include in render/ --- content/content.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content/content.h') 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; -- cgit v1.2.3