summaryrefslogtreecommitdiff
path: root/desktop/local_history.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-02 20:59:08 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-02 20:59:08 +0100
commit1ee32fe96275798c465375cf1d990c11749c63af (patch)
tree6b3f3cd23a549cd69b907386821f85c0ecc5414b /desktop/local_history.h
parentad67eeff4bfe15c2aaf2c6b537a8327825687411 (diff)
downloadnetsurf-1ee32fe96275798c465375cf1d990c11749c63af.tar.gz
netsurf-1ee32fe96275798c465375cf1d990c11749c63af.tar.bz2
local_history: Add concept of a cursor to the local history
So that we can eventually navigate around local history by keyboard, add the concept of a history cursor to the local history core window. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'desktop/local_history.h')
-rw-r--r--desktop/local_history.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/local_history.h b/desktop/local_history.h
index 7f85a633e..d0d9209a1 100644
--- a/desktop/local_history.h
+++ b/desktop/local_history.h
@@ -140,5 +140,12 @@ nserror local_history_get_size(struct local_history_session *session, int *width
*/
nserror local_history_get_url(struct local_history_session *session, int x, int y, struct nsurl **url_out);
+/**
+ * Scroll the local history window to ensure the current cursor is shown.
+ *
+ * \param session The local history session
+ */
+nserror local_history_scroll_to_cursor(struct local_history_session *session);
+
#endif