From 625c685f41da64c3e5aebb6211e510d20b00ee1e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 27 Jun 2011 18:19:47 +0000 Subject: browser_window_mouse_drag_end is private now, and can be removed once contents handle all their own interaction. svn path=/trunk/netsurf/; revision=12516 --- desktop/browser.c | 7 +++++-- desktop/browser.h | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'desktop') diff --git a/desktop/browser.c b/desktop/browser.c index babd5d49c..014a5e2e9 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -89,6 +89,8 @@ static void browser_window_set_scale_internal(struct browser_window *bw, static void browser_window_find_target_internal(struct browser_window *bw, const char *target, int depth, struct browser_window *page, int *rdepth, struct browser_window **bw_target); +static void browser_window_mouse_drag_end(struct browser_window *bw, + browser_mouse_state mouse, int x, int y); /* exported interface, documented in browser.h */ bool browser_window_redraw(struct browser_window *bw, int x, int y, @@ -1654,7 +1656,7 @@ void browser_window_find_target_internal(struct browser_window *bw, /** - * Handle mouse movements in a browser window. + * Handle non-click mouse action in a browser window. (drag ends, movements) * * \param bw browser window * \param mouse state of mouse buttons and modifier keys @@ -1771,7 +1773,8 @@ void browser_window_mouse_click(struct browser_window *bw, * \param x coordinate of mouse * \param y coordinate of mouse * - * TODO: MOVE content specific stuff out + * TODO: Remove this function, once these things are associated with content, + * rather than bw. */ void browser_window_mouse_drag_end(struct browser_window *bw, diff --git a/desktop/browser.h b/desktop/browser.h index cdf071645..8790fad1f 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -245,8 +245,6 @@ void browser_window_mouse_click(struct browser_window *bw, browser_mouse_state mouse, int x, int y); void browser_window_mouse_track(struct browser_window *bw, browser_mouse_state mouse, int x, int y); -void browser_window_mouse_drag_end(struct browser_window *bw, - browser_mouse_state mouse, int x, int y); struct browser_window *browser_window_find_target( struct browser_window *bw, const char *target, browser_mouse_state mouse); -- cgit v1.2.3