summaryrefslogtreecommitdiff
path: root/desktop/page-info.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-08 20:39:53 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-08 20:39:53 +0100
commitb42662325858d98d66e81a92f5730915f3263b65 (patch)
tree3d5aa62e0fbd18c804a354a917d327deec8aa3be /desktop/page-info.h
parentb39db1dac4873fc56d6f7dbe191ec571c383a321 (diff)
downloadnetsurf-b42662325858d98d66e81a92f5730915f3263b65.tar.gz
netsurf-b42662325858d98d66e81a92f5730915f3263b65.tar.bz2
page-info: Provide support to indicate if action did something
Some mouse actions perform a positive action (such as opening the SSL certificate viewer). As such, provide an out param which will be set to true if the action did something. This parameter is not touched in the case of nothing happening in case it is used in alternating logic in the caller. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'desktop/page-info.h')
-rw-r--r--desktop/page-info.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/page-info.h b/desktop/page-info.h
index d4437fd2e..4504e578b 100644
--- a/desktop/page-info.h
+++ b/desktop/page-info.h
@@ -106,13 +106,15 @@ nserror page_info_redraw(
* \param[in] mouse The current mouse state
* \param[in] x The current mouse X coordinate
* \param[in] y The current mouse Y coordinate
+ * \param[out] did_something Set to true if this resulted in some action
* \return NSERROR_OK on success, appropriate error code otherwise.
*/
nserror page_info_mouse_action(
struct page_info *pi,
enum browser_mouse_state mouse,
int x,
- int y);
+ int y,
+ bool *did_something);
/**
* Key press handling.