From 8c2cfecfb5e83d023609914dd101c23777fd2906 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 6 Nov 2014 22:51:46 +0000 Subject: Allow content handlers to have debug values set through API Previously content handler debugging features were accessed by global variables. This allows the setting of debugging parameters via a content API giving per content control over debugging features. Currently only used by the html content handler to toggle global redraw debugging. --- desktop/browser.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'desktop/browser.h') diff --git a/desktop/browser.h b/desktop/browser.h index c384c7f65..b24885d4f 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -668,9 +668,19 @@ int browser_get_dpi(void); /** * Dump debug info concerning the browser window's contents to file * - * \param bw The browser window - * \param f The file to dump to + * \param bw The browser window. + * \param f The file to dump to. + * \param op The debug operation type to dump. + * \return NSERROR_OK on success or error code on faliure. */ nserror browser_window_debug_dump(struct browser_window *bw, FILE *f, enum content_debug op); +/** + * set debug options on a window + * \param bw The browser window. + * \param op The debug operation type. + * \return NSERROR_OK on success or error code on faliure. + */ +nserror browser_window_debug(struct browser_window *bw, enum content_debug op); + #endif -- cgit v1.2.3