Bug 1859954 - Use XP_DARWIN rather than XP_MACOS in PHC r=glandium
[gecko.git] / widget / uikit / nsLookAndFeel.h
blob7de7e0712bd71e00bcf7eee40df45fe435984122
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 virtual void RefreshImpl();
18 nsresult NativeGetImpl(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 virtual char16_t GetPasswordCharacterImpl() {
24 // unicode value for the bullet character, used for password textfields.
25 return 0x2022;
28 static bool UseOverlayScrollbars() { return true; }
30 private:
31 nscolor mColorTextSelectForeground;
32 nscolor mColorDarkText;
34 bool mInitialized;
36 void EnsureInit();
39 #endif