From 972392ef662611abb77a35bb2df65a147ec15c20 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 30 Oct 2005 21:22:19 +0000 Subject: [project @ 2005-10-30 21:22:19 by bursa] Add index parameter to content_open(). svn path=/import/netsurf/; revision=1872 --- content/content.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index 1d6e32a8b..9259e952d 100644 --- a/content/content.c +++ b/content/content.c @@ -163,7 +163,8 @@ struct handler_entry { int clip_x0, int clip_y0, int clip_x1, int clip_y1, float scale, unsigned long background_colour); void (*open)(struct content *c, struct browser_window *bw, - struct content *page, struct box *box, + struct content *page, unsigned int index, + struct box *box, struct object_params *params); void (*close)(struct content *c); /** There must be one content per user for this type. */ @@ -928,18 +929,26 @@ void content_stop_check(struct content *c) /** * A window containing the content has been opened. * + * \param c content that has been opened + * \param bw browser window containing the content + * \param page content of type CONTENT_HTML containing c, or 0 if not an + * object within a page + * \param index index in page->data.html.object, or 0 if not an object + * \param box box containing c, or 0 if not an object + * \param params object parameters, or 0 if not an object + * * Calls the open function for the content. */ void content_open(struct content *c, struct browser_window *bw, - struct content *page, struct box *box, + struct content *page, unsigned int index, struct box *box, struct object_params *params) { assert(c != 0); assert(c->type < CONTENT_UNKNOWN); LOG(("content %s", c->url)); if (handler_map[c->type].open) - handler_map[c->type].open(c, bw, page, box, params); + handler_map[c->type].open(c, bw, page, index, box, params); } -- cgit v1.2.3