From c31c4babe172ab581a3196536d47fc2558a01acd Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 2 Nov 2014 15:46:42 +0000 Subject: Change contextual content retrieval to browser features. Update the API which allows frontends to acquire the page features (images, link urls or form elements) present at the given coordinates within a browser window. By making this an explicit browser_window API and using the browser.h header for the associated data structure with a more appropriate API naming the usage is much more obvious and contained. Additionally the link url is now passed around as a nsurl stopping it being converted from nsurl to text and back again several times. --- content/content_protected.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/content_protected.h') diff --git a/content/content_protected.h b/content/content_protected.h index 7d51e1b8c..84b401f00 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -67,8 +67,8 @@ struct content_handler { void (*close)(struct content *c); void (*clear_selection)(struct content *c); char * (*get_selection)(struct content *c); - void (*get_contextual_content)(struct content *c, int x, int y, - struct contextual_content *data); + nserror (*get_contextual_content)(struct content *c, int x, int y, + struct browser_window_features *data); bool (*scroll_at_point)(struct content *c, int x, int y, int scrx, int scry); bool (*drop_file_at_point)(struct content *c, int x, int y, -- cgit v1.2.3