mirror of
https://github.com/zen-browser/desktop.git
synced 2026-06-18 09:11:11 +00:00
37 lines
1.9 KiB
C++
37 lines
1.9 KiB
C++
diff --git a/docshell/base/BrowsingContext.h b/docshell/base/BrowsingContext.h
|
|
index 02abb6ab9562a7b41f4a95a6289c80da8d1176e8..1722802021f331338fc10c768301a953e582b711 100644
|
|
--- a/docshell/base/BrowsingContext.h
|
|
+++ b/docshell/base/BrowsingContext.h
|
|
@@ -265,6 +265,9 @@ struct EmbedderColorSchemes {
|
|
FIELD(HistoryEntryCount, uint32_t) \
|
|
FIELD(HasRestoreData, bool) \
|
|
FIELD(SessionStoreEpoch, uint32_t) \
|
|
+ FIELD(ZenBoostsData, nscolor) \
|
|
+ FIELD(ZenBoostsComplementaryRotation, float) \
|
|
+ FIELD(IsZenBoostsInverted, bool) \
|
|
/* Whether we can execute scripts in this BrowsingContext. Has no effect \
|
|
* unless scripts are also allowed in the parent WindowContext. */ \
|
|
FIELD(AllowJavascript, bool) \
|
|
@@ -671,6 +674,11 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
|
|
|
|
bool FullscreenAllowed() const;
|
|
|
|
+ auto ZenBoostsData() const { return GetZenBoostsData(); }
|
|
+ auto ZenBoostsComplementaryRotation() const {
|
|
+ return GetZenBoostsComplementaryRotation();
|
|
+ }
|
|
+ auto IsZenBoostsInverted() const { return GetIsZenBoostsInverted(); }
|
|
float FullZoom() const { return GetFullZoom(); }
|
|
float TextZoom() const { return GetTextZoom(); }
|
|
|
|
@@ -1275,6 +1283,9 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
|
|
}
|
|
|
|
void DidSet(FieldIndex<IDX_SessionStoreEpoch>, uint32_t aOldValue);
|
|
+ void DidSet(FieldIndex<IDX_ZenBoostsData>, nscolor aOldValue);
|
|
+ void DidSet(FieldIndex<IDX_ZenBoostsComplementaryRotation>, float aOldValue);
|
|
+ void DidSet(FieldIndex<IDX_IsZenBoostsInverted>, bool aOldValue);
|
|
|
|
using CanSetResult = syncedcontext::CanSetResult;
|
|
|