summaryrefslogtreecommitdiff
path: root/render/html_internal.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2013-02-25 18:24:04 +0000
committerVincent Sanders <vince@netsurf-browser.org>2013-02-25 18:24:04 +0000
commita35e66ffa16d98bcfdf9608cafbcfd85e18d5f02 (patch)
tree1e21aac859bdeb65a732f198dc3d5f05cd9d7058 /render/html_internal.h
parent4e7b4259a44703ecc0994c922315b67df7096c90 (diff)
downloadnetsurf-a35e66ffa16d98bcfdf9608cafbcfd85e18d5f02.tar.gz
netsurf-a35e66ffa16d98bcfdf9608cafbcfd85e18d5f02.tar.bz2
split out object handling from render/html.c
Diffstat (limited to 'render/html_internal.h')
-rw-r--r--render/html_internal.h28
1 files changed, 24 insertions, 4 deletions
diff --git a/render/html_internal.h b/render/html_internal.h
index 4c43345a2..428cd3995 100644
--- a/render/html_internal.h
+++ b/render/html_internal.h
@@ -165,10 +165,6 @@ typedef struct html_content {
} html_content;
-bool html_fetch_object(html_content *c, nsurl *url, struct box *box,
- content_type permitted_types,
- int available_width, int available_height,
- bool background);
void html_set_status(html_content *c, const char *extra);
@@ -274,6 +270,30 @@ bool html_css_update_style(html_content *c, dom_node *style);
nserror html_css_new_selection_context(html_content *c, css_select_ctx **ret_select_ctx);
+/* in render/html_object.c */
+
+/**
+ * Start a fetch for an object required by a page.
+ *
+ * \param c content of type CONTENT_HTML
+ * \param url URL of object to fetch (copied)
+ * \param box box that will contain the object
+ * \param permitted_types bitmap of acceptable types
+ * \param available_width estimate of width of object
+ * \param available_height estimate of height of object
+ * \param background this is a background image
+ * \return true on success, false on memory exhaustion
+ */
+bool html_fetch_object(html_content *c, nsurl *url, struct box *box,
+ content_type permitted_types,
+ int available_width, int available_height,
+ bool background);
+
+nserror html_object_free_objects(html_content *html);
+nserror html_object_close_objects(html_content *html);
+nserror html_object_open_objects(html_content *html, struct browser_window *bw);
+nserror html_object_abort_objects(html_content *html);
+
/* Useful dom_string pointers */
struct dom_string;