Make new function for starting a frames resize and use it.

This commit is contained in:
Michael Drake 2012-08-16 15:55:20 +01:00
parent c1be4c9e77
commit 195a77a4cd
3 changed files with 11 additions and 3 deletions

View File

@ -798,7 +798,7 @@ bool browser_window_resolve_frame_dimension(struct browser_window *bw,
}
bool browser_window_resize_frames(struct browser_window *bw,
static bool browser_window_resize_frames(struct browser_window *bw,
browser_mouse_state mouse, int x, int y,
gui_pointer_shape *pointer)
{
@ -927,3 +927,11 @@ bool browser_window_resize_frames(struct browser_window *bw,
}
return false;
}
bool browser_window_frame_resize_start(struct browser_window *bw,
browser_mouse_state mouse, int x, int y,
gui_pointer_shape *pointer)
{
return browser_window_resize_frames(bw, mouse, x, y, pointer);
}

View File

@ -33,7 +33,7 @@ void browser_window_recalculate_iframes(struct browser_window *bw);
void browser_window_create_frameset(struct browser_window *bw,
struct content_html_frames *frameset);
void browser_window_recalculate_frameset(struct browser_window *bw);
bool browser_window_resize_frames(struct browser_window *bw,
bool browser_window_frame_resize_start(struct browser_window *bw,
browser_mouse_state mouse, int x, int y,
gui_pointer_shape *pointer);
void browser_window_resize_frame(struct browser_window *bw, int x, int y);

View File

@ -585,7 +585,7 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
struct browser_window *parent;
for (parent = bw->parent; parent->parent;
parent = parent->parent);
if (browser_window_resize_frames(parent, mouse,
if (browser_window_frame_resize_start(parent, mouse,
x + bw->x, y + bw->y,
&pointer)) {
if (mouse & (BROWSER_MOUSE_DRAG_1 |