diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 22:00:00 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:00:08 +0100 |
commit | a8c540ea597fb17426c5458fa464f9c505c3bda8 (patch) | |
tree | ff85eff8288d5c1584d82ef6719b3c87ce7e5f48 /content/content_protected.h | |
parent | cfe57002febe0f58dfc87f0173ad42126f1362f4 (diff) | |
download | netsurf-a8c540ea597fb17426c5458fa464f9c505c3bda8.tar.gz netsurf-a8c540ea597fb17426c5458fa464f9c505c3bda8.tar.bz2 |
move content specific selection end to content handlers
Diffstat (limited to 'content/content_protected.h')
-rw-r--r-- | content/content_protected.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/content_protected.h b/content/content_protected.h index 02bc8614d..b855c7701 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -131,6 +131,15 @@ struct content_handler { nserror (*textselection_copy)(struct content *c, unsigned start_idx, unsigned end_idx, struct selection_string *selstr); /** + * get maximum index of text section. + * + * \param[in] c The content to measure + * \param[out] end_idx pointer to value to recive result + * \return NSERROR_OK and \a end_idx updated else error code + */ + nserror (*textselection_get_end)(struct content *c, unsigned *end_idx); + + /** * create a selection object */ nserror (*create_selection)(struct content *c, struct selection **sel_out); |