diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-13 18:03:22 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-13 14:31:39 +0100 |
commit | 95e0a24fac2abc4cddaa91bf44304ebc3d776b17 (patch) | |
tree | 74fbe23b4f5f48c263453d4598888c6d0a5de784 /content/content.h | |
parent | f4e50b45c834b644caa6a82bd044faa82f6f4860 (diff) | |
download | netsurf-95e0a24fac2abc4cddaa91bf44304ebc3d776b17.tar.gz netsurf-95e0a24fac2abc4cddaa91bf44304ebc3d776b17.tar.bz2 |
use content messages to inform frontend of text search changes
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/content/content.h b/content/content.h index f68af538b..edf9ed2cc 100644 --- a/content/content.h +++ b/content/content.h @@ -242,6 +242,50 @@ union content_msg_data { struct { struct form_control *gadget; } gadget_click; + + /** + * CONTENT_MSG_TEXTSEARCH - Free text search action + */ + struct { + /** + * The type of text search operation + */ + enum { + /** + * Free text search find operation has started or finished + */ + CONTENT_TEXTSEARCH_FIND, + /** + * Free text search match state has changed + */ + CONTENT_TEXTSEARCH_MATCH, + /** + * Free text search back available state changed + */ + CONTENT_TEXTSEARCH_BACK, + /** + * Free text search forward available state changed + */ + CONTENT_TEXTSEARCH_FORWARD, + /** + * add a search query string to the recent searches + */ + CONTENT_TEXTSEARCH_RECENT + } type; + /** + * context passed to browser_window_search() + */ + void *ctx; + /** + * state for operation + */ + bool state; + /** + * search string + */ + const char *string; + } textsearch; + }; |