diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/browser.c | 14 | ||||
-rw-r--r-- | desktop/browser.h | 14 |
2 files changed, 23 insertions, 5 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index f7acec491..528fb1fe5 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -736,11 +736,19 @@ void browser_window_set_gadget_filename(struct browser_window *bw, nserror browser_window_debug_dump(struct browser_window *bw, FILE *f, enum content_debug op) { - if (bw->current_content == NULL) { - return NSERROR_OK; + if (bw->current_content != NULL) { + return content_debug_dump(bw->current_content, f, op); } + return NSERROR_OK; +} - return content_debug_dump(bw->current_content, f, op); +/* exported interface, documented in browser.h */ +nserror browser_window_debug(struct browser_window *bw, enum content_debug op) +{ + if (bw->current_content != NULL) { + return content_debug(bw->current_content, op); + } + return NSERROR_OK; } /** slow script handler 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 |