From 05a35725d19f9b5a2c8e347d638fb00dff21962f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 9 Dec 2016 14:04:55 +0000 Subject: Update RISC OS cookie window to use core window interface --- frontends/riscos/cookies.h | 49 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 12 deletions(-) (limited to 'frontends/riscos/cookies.h') diff --git a/frontends/riscos/cookies.h b/frontends/riscos/cookies.h index b7313393e..1b07d2122 100644 --- a/frontends/riscos/cookies.h +++ b/frontends/riscos/cookies.h @@ -17,22 +17,47 @@ * along with this program. If not, see . */ -/** \file - * Cookies (interface). +/** + * \file + * Interface to riscos cookie viewing using riscos core window. + * + * The interface assumes there is only a single cookie window which is + * presented (shown) when asked for and hidden by usual toolkit + * mechanics. + * + * The destructor is called once during browser shutdown */ -#ifndef _NETSURF_RISCOS_COOKIES_H_ -#define _NETSURF_RISCOS_COOKIES_H_ +#ifndef NETSURF_RISCOS_COOKIES_H +#define NETSURF_RISCOS_COOKIES_H -#include "riscos/menus.h" +/** + * initialise the cookies window template ready for subsequent use. + */ +void ro_gui_cookies_initialise(void); -void ro_gui_cookies_preinitialise(void); -void ro_gui_cookies_postinitialise(void); -void ro_gui_cookies_destroy(void); -bool ro_gui_cookies_check_window(wimp_w window); -bool ro_gui_cookies_check_menu(wimp_menu *menu); +/** + * make the cookie window visible. + * + * \return NSERROR_OK on success else appropriate error code on faliure. + */ +nserror ro_gui_cookies_present(void); -void ro_gui_cookies_open(void); +/** + * Free any resources allocated for the cookie window. + * + * \return NSERROR_OK on success else appropriate error code on faliure. + */ +nserror ro_gui_cookies_finalise(void); -#endif +/** + * check if window handle is for the cookies window + */ +bool ro_gui_cookies_check_window(wimp_w window); + +/** + * check if menu handle is for the cookies menu + */ +bool ro_gui_cookies_check_menu(wimp_menu *menu); +#endif /* NETSURF_RISCOS_COOKIES_H */ -- cgit v1.2.3