diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-27 18:19:47 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-27 18:19:47 +0000 |
commit | 625c685f41da64c3e5aebb6211e510d20b00ee1e (patch) | |
tree | 6d93dfa74e560a42b6366c1e448f33ad7dbdba47 | |
parent | 2bedf4d88fd022c71875359004b925ead598bb5f (diff) | |
download | netsurf-625c685f41da64c3e5aebb6211e510d20b00ee1e.tar.gz netsurf-625c685f41da64c3e5aebb6211e510d20b00ee1e.tar.bz2 |
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
-rw-r--r-- | desktop/browser.c | 7 | ||||
-rw-r--r-- | desktop/browser.h | 2 |
2 files changed, 5 insertions, 4 deletions
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); |