From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- widget/cocoa/nsLookAndFeel.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'widget/cocoa/nsLookAndFeel.h') 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_ -- cgit v1.2.3