summaryrefslogtreecommitdiff
path: root/desktop/browser_private.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-06-11 14:54:33 +0100
committerVincent Sanders <vince@kyllikki.org>2017-06-11 14:54:33 +0100
commitc4c2c22e87ba5018d0a90abfc01af51da996e3b5 (patch)
tree3d1d5fef65a3ab4c869a332eaa90390dcaf82f94 /desktop/browser_private.h
parent449e760d7162b62790b3cc39692a597d5ace4428 (diff)
downloadnetsurf-c4c2c22e87ba5018d0a90abfc01af51da996e3b5.tar.gz
netsurf-c4c2c22e87ba5018d0a90abfc01af51da996e3b5.tar.bz2
remove depricated local history display API
Move local history display into separate module using corewindow API. Note this is purely the rendering and teh browser history module still constructs the history data.
Diffstat (limited to 'desktop/browser_private.h')
-rw-r--r--desktop/browser_private.h44
1 files changed, 43 insertions, 1 deletions
diff --git a/desktop/browser_private.h b/desktop/browser_private.h
index a54393fee..8bbc573eb 100644
--- a/desktop/browser_private.h
+++ b/desktop/browser_private.h
@@ -35,8 +35,48 @@
struct box;
struct hlcache_handle;
struct gui_window;
-struct history;
struct selection;
+struct nsurl;
+
+/**
+ * history entry page information
+ */
+struct history_page {
+ struct nsurl *url; /**< Page URL, never NULL. */
+ lwc_string *frag_id; /** Fragment identifier, or NULL. */
+ char *title; /**< Page title, never NULL. */
+};
+
+/**
+ * A node in the history tree.
+ */
+struct history_entry {
+ struct history_page page;
+ struct history_entry *back; /**< Parent. */
+ struct history_entry *next; /**< Next sibling. */
+ struct history_entry *forward; /**< First child. */
+ struct history_entry *forward_pref; /**< Child in direction of
+ current entry. */
+ struct history_entry *forward_last; /**< Last child. */
+ unsigned int children; /**< Number of children. */
+ int x; /**< Position of node. */
+ int y; /**< Position of node. */
+ struct bitmap *bitmap; /**< Thumbnail bitmap, or 0. */
+};
+
+/**
+ * History tree for a window.
+ */
+struct history {
+ /** First page in tree (page that window opened with). */
+ struct history_entry *start;
+ /** Current position in tree. */
+ struct history_entry *current;
+ /** Width of layout. */
+ int width;
+ /** Height of layout. */
+ int height;
+};
/**
* Browser window data.
@@ -269,6 +309,8 @@ nserror browser_window_history_create(struct browser_window *bw);
*/
nserror browser_window_history_clone(const struct browser_window *existing,
struct browser_window *clone);
+
+
/**
* Insert a url into the history tree.
*