From c2fa6af0ff4098501560bd48f78dfbf9173f4021 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 10 Jul 2019 16:42:52 +0100 Subject: make content close check the content status itself make content handler open and close return error status --- 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 0101790d1..0358269f2 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -60,9 +60,9 @@ struct content_handler { bool (*redraw)(struct content *c, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx); - void (*open)(struct content *c, struct browser_window *bw, + nserror (*open)(struct content *c, struct browser_window *bw, struct content *page, struct object_params *params); - void (*close)(struct content *c); + nserror (*close)(struct content *c); void (*clear_selection)(struct content *c); char * (*get_selection)(struct content *c); nserror (*get_contextual_content)(struct content *c, int x, int y, -- cgit v1.2.3