From bd39d108db34ccc78199c088c430870d4038b71f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 28 Aug 2013 14:23:22 +0100 Subject: Add a few functions for front ends to use. --- desktop/cookie_manager.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'desktop/cookie_manager.h') diff --git a/desktop/cookie_manager.h b/desktop/cookie_manager.h index 724923677..b84490726 100644 --- a/desktop/cookie_manager.h +++ b/desktop/cookie_manager.h @@ -90,7 +90,6 @@ void cookie_manager_redraw(int x, int y, struct rect *clip, */ void cookie_manager_mouse_action(browser_mouse_state mouse, int x, int y); - /** * Key press handling. * @@ -99,4 +98,18 @@ void cookie_manager_mouse_action(browser_mouse_state mouse, int x, int y); */ void cookie_manager_keypress(uint32_t key); +/** + * Determine whether there is a selection + * + * \return true iff there is a selection + */ +bool cookie_manager_has_selection(void); + +/** + * Find current height + * + * \return height in px + */ +int cookie_manager_get_height(void); + #endif -- cgit v1.2.3