diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-06 18:11:10 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-06 18:11:10 +0000 |
commit | 57da2b3af19406f5736a2b3941c8d0223b098553 (patch) | |
tree | 983ba5b691efa8b92e735c843a4356d530da8cd5 /desktop/browser.h | |
parent | 6167cc8508b7b3add594396c468bca7d8f25d6de (diff) | |
download | netsurf-57da2b3af19406f5736a2b3941c8d0223b098553.tar.gz netsurf-57da2b3af19406f5736a2b3941c8d0223b098553.tar.bz2 |
Expose contextual content request API to front ends, via browser window layer.
svn path=/trunk/netsurf/; revision=12755
Diffstat (limited to 'desktop/browser.h')
-rw-r--r-- | desktop/browser.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/browser.h b/desktop/browser.h index 3d289767a..cb3b22bb0 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -229,6 +229,19 @@ void browser_window_reformat(struct browser_window *bw, bool background, int width, int height); void browser_window_set_scale(struct browser_window *bw, float scale, bool all); +/** + * Get access to any content, link URLs and objects (images) currently + * at the given (x, y) coordinates. + * + * \param bw browser window to look inside + * \param x x-coordinate of point of interest + * \param y y-coordinate of point of interest + * \param data pointer to contextual_content struct. Its fields are updated + * with pointers to any relevent content, or set to NULL if none. + */ +void browser_window_get_contextual_content(struct browser_window *bw, + int x, int y, struct contextual_content *data); + void browser_window_refresh_url_bar(struct browser_window *bw, const char *url, const char *frag); |