Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / widget / uikit / nsLookAndFeel.h
blobc696502ec1e126c7a9a503a2a0a73cf71bd7e61f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef __nsLookAndFeel
7 #define __nsLookAndFeel
9 #include "nsXPLookAndFeel.h"
11 class nsLookAndFeel final : public nsXPLookAndFeel {
12 public:
13 nsLookAndFeel();
14 virtual ~nsLookAndFeel();
16 void NativeInit() final;
17 void RefreshImpl() override;
18 nsresult NativeGetInt(IntID aID, int32_t& aResult) override;
19 nsresult NativeGetFloat(FloatID aID, float& aResult) override;
20 nsresult NativeGetColor(ColorID, ColorScheme, nscolor& aResult) override;
21 bool NativeGetFont(FontID aID, nsString& aFontName,
22 gfxFontStyle& aFontStyle) override;
23 char16_t GetPasswordCharacterImpl() override {
24 // unicode value for the bullet character, used for password textfields.
25 return 0x2022;
28 static bool UseOverlayScrollbars() { return true; }
30 private:
31 nscolor mColorDarkText;
33 bool mInitialized;
35 void EnsureInit();
38 #endif