summaryrefslogtreecommitdiffstats
path: root/widget/cocoa/nsLookAndFeel.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /widget/cocoa/nsLookAndFeel.h
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'widget/cocoa/nsLookAndFeel.h')
-rw-r--r--widget/cocoa/nsLookAndFeel.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/widget/cocoa/nsLookAndFeel.h b/widget/cocoa/nsLookAndFeel.h
index adce685a4e..89e4c93713 100644
--- a/widget/cocoa/nsLookAndFeel.h
+++ b/widget/cocoa/nsLookAndFeel.h
@@ -12,14 +12,17 @@ class nsLookAndFeel final : public nsXPLookAndFeel {
nsLookAndFeel();
virtual ~nsLookAndFeel();
- void NativeInit() final;
+ void NativeInit() final { EnsureInit(); }
+ void RefreshImpl() final;
+ void EnsureInit();
+
nsresult NativeGetColor(ColorID, ColorScheme, nscolor& aColor) override;
nsresult NativeGetInt(IntID, int32_t& aResult) override;
nsresult NativeGetFloat(FloatID, float& aResult) override;
bool NativeGetFont(FontID aID, nsString& aFontName,
gfxFontStyle& aFontStyle) override;
- virtual char16_t GetPasswordCharacterImpl() override {
+ char16_t GetPasswordCharacterImpl() override {
// unicode value for the bullet character, used for password textfields.
return 0x2022;
}
@@ -34,10 +37,9 @@ class nsLookAndFeel final : public nsXPLookAndFeel {
static void RecordAccessibilityTelemetry();
protected:
- static bool SystemWantsDarkTheme();
- static bool IsSystemOrientationRTL();
- static nscolor ProcessSelectionBackground(nscolor aColor,
- ColorScheme aScheme);
+ bool mInitialized = false;
+ bool mRtl = false;
+ int32_t mTitlebarHeight = 0;
};
#endif // nsLookAndFeel_h_