summaryrefslogtreecommitdiff
path: root/frontends/riscos/cookies.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-12-09 14:04:55 +0000
committerVincent Sanders <vince@kyllikki.org>2016-12-28 15:25:57 +0000
commit05a35725d19f9b5a2c8e347d638fb00dff21962f (patch)
tree394c157e32d0a990d8f2b07c1cc1fb3cc7559c54 /frontends/riscos/cookies.h
parente2bad05338d5575bf485fbb509d496c5de012a64 (diff)
downloadnetsurf-05a35725d19f9b5a2c8e347d638fb00dff21962f.tar.gz
netsurf-05a35725d19f9b5a2c8e347d638fb00dff21962f.tar.bz2
Update RISC OS cookie window to use core window interface
Diffstat (limited to 'frontends/riscos/cookies.h')
-rw-r--r--frontends/riscos/cookies.h49
1 files changed, 37 insertions, 12 deletions
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 <http://www.gnu.org/licenses/>.
*/
-/** \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 */