diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-07-06 10:45:31 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-07-06 10:45:31 +0100 |
commit | 0f151e37cba454fcb863b6b38e1780f2b04be903 (patch) | |
tree | 5b0f84879eb2896158c4f3c4f82c0391c8ec3380 /desktop/browser.h | |
parent | f5c62c2291add5e6e3b8fc604831283e4883a3c6 (diff) | |
parent | 18aefabd20a16dda9ed5363088f0da5ada0d4431 (diff) | |
download | netsurf-0f151e37cba454fcb863b6b38e1780f2b04be903.tar.gz netsurf-0f151e37cba454fcb863b6b38e1780f2b04be903.tar.bz2 |
Merge branch 'vince/reformatpending'
Conflicts:
amiga/gui.c
Diffstat (limited to 'desktop/browser.h')
-rw-r--r-- | desktop/browser.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/desktop/browser.h b/desktop/browser.h index ca99a5d16..88b757727 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -60,8 +60,6 @@ typedef enum { BW_EDITOR_CAN_PASTE = (1 << 2) /**< Can paste, input */ } browser_editor_flags; -extern bool browser_reformat_pending; - /** flags to browser_window_create */ enum browser_window_create_flags { /** No flags set */ @@ -259,6 +257,21 @@ struct browser_window *browser_window_find_target( struct browser_window *bw, const char *target, browser_mouse_state mouse); +/** + * Cause the frontends reformat entry to be called in safe context. + * + * The browser_window_reformat call cannot safely be called from some + * contexts, this call allows for the reformat to happen from a safe + * top level context. + * + * The callback is frontend provided as the context information (size + * etc.) about the windowing toolkit is only available to the + * frontend. + */ +nserror browser_window_schedule_reformat(struct browser_window *bw); + + + void browser_select_menu_callback(void *client_data, int x, int y, int width, int height); |