summaryrefslogtreecommitdiff
path: root/desktop/history_core.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-03-25 20:30:35 +0000
committerJames Bursa <james@netsurf-browser.org>2006-03-25 20:30:35 +0000
commit5a72700817565b139e9576738d5b1ec23e23e69e (patch)
treeb578ef82e56785c328db1410e90ca1e065858432 /desktop/history_core.h
parent016128c37dc80b26851870d72d329f0579423ece (diff)
downloadnetsurf-5a72700817565b139e9576738d5b1ec23e23e69e.tar.gz
netsurf-5a72700817565b139e9576738d5b1ec23e23e69e.tar.bz2
[project @ 2006-03-25 20:30:35 by bursa]
Split local history into portable and RISC OS specific code. Improve layout of history tree. svn path=/import/netsurf/; revision=2164
Diffstat (limited to 'desktop/history_core.h')
-rw-r--r--desktop/history_core.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/desktop/history_core.h b/desktop/history_core.h
new file mode 100644
index 000000000..4889ad524
--- /dev/null
+++ b/desktop/history_core.h
@@ -0,0 +1,36 @@
+/*
+ * This file is part of NetSurf, http://netsurf.sourceforge.net/
+ * Licensed under the GNU General Public License,
+ * http://www.opensource.org/licenses/gpl-license
+ * Copyright 2006 James Bursa <bursa@users.sourceforge.net>
+ */
+
+/** \file
+ * Browser history tree (interface).
+ */
+
+#ifndef _NETSURF_DESKTOP_HISTORY_H_
+#define _NETSURF_DESKTOP_HISTORY_H_
+
+#include <stdbool.h>
+
+struct content;
+struct history;
+struct browser_window;
+
+struct history *history_create(void);
+void history_add(struct history *history, struct content *content,
+ char *frag_id);
+void history_update(struct history *history, struct content *content);
+void history_destroy(struct history *history);
+void history_back(struct browser_window *bw, struct history *history);
+void history_forward(struct browser_window *bw, struct history *history);
+bool history_back_available(struct history *history);
+bool history_forward_available(struct history *history);
+void history_size(struct history *history, int *width, int *height);
+bool history_redraw(struct history *history);
+bool history_click(struct browser_window *bw, struct history *history,
+ int x, int y, bool new_window);
+const char *history_position_url(struct history *history, int x, int y);
+
+#endif