summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-12-01 21:49:57 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-12-01 21:49:57 +0000
commit02780e1f2d557390442abf26fd02ed0d01c3f334 (patch)
tree7526b4d6e67ea17ed3f8f1e9fecb5bf9a8147cc9 /content
parent70c8d9485849451d666ef108cc6f1d7e287519b8 (diff)
downloadnetsurf-02780e1f2d557390442abf26fd02ed0d01c3f334.tar.gz
netsurf-02780e1f2d557390442abf26fd02ed0d01c3f334.tar.bz2
Currently untested (and unused) "drop file on content" handling, and HTML implementation.
svn path=/trunk/netsurf/; revision=13214
Diffstat (limited to 'content')
-rw-r--r--content/content.c13
-rw-r--r--content/content.h2
-rw-r--r--content/content_protected.h2
3 files changed, 17 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index a4f36e2f6..3df71b83f 100644
--- a/content/content.c
+++ b/content/content.c
@@ -746,6 +746,19 @@ bool content_scroll_at_point(struct hlcache_handle *h,
}
+bool content_drop_file_at_point(struct hlcache_handle *h,
+ int x, int y, char *file)
+{
+ struct content *c = hlcache_handle_get_content(h);
+ assert(c != 0);
+
+ if (c->handler->drop_file_at_point != NULL)
+ return c->handler->drop_file_at_point(c, x, y, file);
+
+ return false;
+}
+
+
void content_add_error(struct content *c, const char *token,
unsigned int line)
{
diff --git a/content/content.h b/content/content.h
index 6e900922a..730988b2a 100644
--- a/content/content.h
+++ b/content/content.h
@@ -177,6 +177,8 @@ void content_get_contextual_content(struct hlcache_handle *h,
int x, int y, struct contextual_content *data);
bool content_scroll_at_point(struct hlcache_handle *h,
int x, int y, int scrx, int scry);
+bool content_drop_file_at_point(struct hlcache_handle *h,
+ int x, int y, char *file);
struct content_rfc5988_link *content_find_rfc5988_link(struct hlcache_handle *c,
lwc_string *rel);
diff --git a/content/content_protected.h b/content/content_protected.h
index 54825589e..34773016f 100644
--- a/content/content_protected.h
+++ b/content/content_protected.h
@@ -71,6 +71,8 @@ struct content_handler {
struct contextual_content *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,
+ char *file);
nserror (*clone)(const struct content *old, struct content **newc);
bool (*matches_quirks)(const struct content *c, bool quirks);
content_type (*type)(void);