void browser_window_history_back(struct browser_window *bw, bool new_window) { if (!bw || !bw->history || !bw->history->current || !bw->history->current->back) return; browser_window_history_go(bw, bw->history->current->back, new_window); }
void browser_window_history_forward(struct browser_window *bw, bool new_window) { if (!bw || !bw->history || !bw->history->current || !bw->history->current->forward_pref) return; browser_window_history_go(bw, bw->history->current->forward_pref, new_window); }
/* exported interface documented in desktop/browser_history.h */ nserror browser_window_history_back(struct browser_window *bw, bool new_window) { if (!bw || !bw->history || !bw->history->current || !bw->history->current->back) { return NSERROR_BAD_PARAMETER; } return browser_window_history_go(bw, bw->history->current->back, new_window); }
/* exported interface documented in desktop/browser_history.h */ nserror browser_window_history_forward(struct browser_window *bw, bool new_window) { if (!bw || !bw->history || !bw->history->current || !bw->history->current->forward_pref) { return NSERROR_BAD_PARAMETER; } return browser_window_history_go(bw, bw->history->current->forward_pref, new_window); }
/* exported interface documented in desktop/browser_history.h */ bool browser_window_history_click(struct browser_window *bw, int x, int y, bool new_window) { struct history_entry *entry; struct history *history; assert(bw != NULL); history = bw->history; entry = browser_window_history__find_position(history->start, x, y); if (!entry) return false; if (entry == history->current) return false; browser_window_history_go(bw, entry, new_window); return true; }