summaryrefslogtreecommitdiff
path: root/src/history.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.h')
-rw-r--r--src/history.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/history.h b/src/history.h
index 838ca9ef..7dad72df 100644
--- a/src/history.h
+++ b/src/history.h
@@ -39,6 +39,9 @@ struct Impl_RecentUrl {
39 float normScrollY; /* normalized to document height */ 39 float normScrollY; /* normalized to document height */
40 iGmResponse *cachedResponse; /* kept in memory for quicker back navigation */ 40 iGmResponse *cachedResponse; /* kept in memory for quicker back navigation */
41 iGmDocument *cachedDoc; /* cached copy of the presentation: layout and media (not serialized) */ 41 iGmDocument *cachedDoc; /* cached copy of the presentation: layout and media (not serialized) */
42 struct {
43 uint8_t openedFromSidebar : 1;
44 } flags;
42}; 45};
43 46
44iDeclareType(MemInfo) 47iDeclareType(MemInfo)
@@ -60,7 +63,7 @@ void clear_History (iHistory *);
60void add_History (iHistory *, const iString *url); 63void add_History (iHistory *, const iString *url);
61void replace_History (iHistory *, const iString *url); 64void replace_History (iHistory *, const iString *url);
62void setCachedResponse_History (iHistory *, const iGmResponse *response); 65void setCachedResponse_History (iHistory *, const iGmResponse *response);
63void setCachedDocument_History (iHistory *, iGmDocument *doc); 66void setCachedDocument_History (iHistory *, iGmDocument *doc, iBool openedFromSidebar);
64iBool goBack_History (iHistory *); 67iBool goBack_History (iHistory *);
65iBool goForward_History (iHistory *); 68iBool goForward_History (iHistory *);
66iBool preceding_History (iHistory *d, iRecentUrl *recent_out); 69iBool preceding_History (iHistory *d, iRecentUrl *recent_out);
@@ -72,6 +75,7 @@ iRecentUrl *findUrl_History (iHistory *, const iString *url);
72void clearCache_History (iHistory *); 75void clearCache_History (iHistory *);
73size_t pruneLeastImportant_History (iHistory *); 76size_t pruneLeastImportant_History (iHistory *);
74size_t pruneLeastImportantMemory_History (iHistory *); 77size_t pruneLeastImportantMemory_History (iHistory *);
78void invalidateTheme_History (iHistory *); /* theme has changed, cached contents need updating */
75 79
76iBool atLatest_History (const iHistory *); 80iBool atLatest_History (const iHistory *);
77iBool atOldest_History (const iHistory *); 81iBool atOldest_History (const iHistory *);