diff options
Diffstat (limited to 'src/history.h')
-rw-r--r-- | src/history.h | 6 |
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 | ||
44 | iDeclareType(MemInfo) | 47 | iDeclareType(MemInfo) |
@@ -60,7 +63,7 @@ void clear_History (iHistory *); | |||
60 | void add_History (iHistory *, const iString *url); | 63 | void add_History (iHistory *, const iString *url); |
61 | void replace_History (iHistory *, const iString *url); | 64 | void replace_History (iHistory *, const iString *url); |
62 | void setCachedResponse_History (iHistory *, const iGmResponse *response); | 65 | void setCachedResponse_History (iHistory *, const iGmResponse *response); |
63 | void setCachedDocument_History (iHistory *, iGmDocument *doc); | 66 | void setCachedDocument_History (iHistory *, iGmDocument *doc, iBool openedFromSidebar); |
64 | iBool goBack_History (iHistory *); | 67 | iBool goBack_History (iHistory *); |
65 | iBool goForward_History (iHistory *); | 68 | iBool goForward_History (iHistory *); |
66 | iBool preceding_History (iHistory *d, iRecentUrl *recent_out); | 69 | iBool preceding_History (iHistory *d, iRecentUrl *recent_out); |
@@ -72,6 +75,7 @@ iRecentUrl *findUrl_History (iHistory *, const iString *url); | |||
72 | void clearCache_History (iHistory *); | 75 | void clearCache_History (iHistory *); |
73 | size_t pruneLeastImportant_History (iHistory *); | 76 | size_t pruneLeastImportant_History (iHistory *); |
74 | size_t pruneLeastImportantMemory_History (iHistory *); | 77 | size_t pruneLeastImportantMemory_History (iHistory *); |
78 | void invalidateTheme_History (iHistory *); /* theme has changed, cached contents need updating */ | ||
75 | 79 | ||
76 | iBool atLatest_History (const iHistory *); | 80 | iBool atLatest_History (const iHistory *); |
77 | iBool atOldest_History (const iHistory *); | 81 | iBool atOldest_History (const iHistory *); |