From b010a257712b3d104035cbfc15aba8f517ffacb5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 4 Jun 2010 09:35:08 +0000 Subject: + Refactor input handling from browser window code into content handlers. + Disentangle all box tree manipulation from browser window code and put it where it belongs. + Move other content specific and other irrelevant code from browser window handling to appropriate places. + Put mouse state enum in new mouse header, since it's not just used by browser window code, and it is used by treeview windows on the treeview branch. svn path=/trunk/netsurf/; revision=10561 --- render/textplain.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'render/textplain.h') diff --git a/render/textplain.h b/render/textplain.h index 61a1c0c9a..2a80f1619 100644 --- a/render/textplain.h +++ b/render/textplain.h @@ -26,6 +26,7 @@ #include #include +#include "desktop/mouse.h" struct content; struct hlcache_handle; @@ -52,6 +53,10 @@ bool textplain_create(struct content *c, const struct http_parameter *params); bool textplain_process_data(struct content *c, const char *data, unsigned int size); bool textplain_convert(struct content *c); +void textplain_mouse_track(struct content *c, struct browser_window *bw, + browser_mouse_state mouse, int x, int y); +void textplain_mouse_action(struct content *c, struct browser_window *bw, + browser_mouse_state mouse, int x, int y); void textplain_reformat(struct content *c, int width, int height); void textplain_destroy(struct content *c); bool textplain_redraw(struct content *c, int x, int y, -- cgit v1.2.3