2006-12-07 01:31:17 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-12-07 01:31:17 +03:00
|
|
|
|
2007-01-18 09:34:07 +03:00
|
|
|
#ifndef nsLookAndFeel_h_
|
|
|
|
#define nsLookAndFeel_h_
|
2006-12-07 01:31:17 +03:00
|
|
|
#include "nsXPLookAndFeel.h"
|
|
|
|
|
|
|
|
class nsLookAndFeel: public nsXPLookAndFeel {
|
|
|
|
public:
|
|
|
|
nsLookAndFeel();
|
|
|
|
virtual ~nsLookAndFeel();
|
|
|
|
|
2011-09-09 06:27:13 +04:00
|
|
|
virtual nsresult NativeGetColor(ColorID aID, nscolor &aResult);
|
2012-08-22 19:56:38 +04:00
|
|
|
virtual nsresult GetIntImpl(IntID aID, int32_t &aResult);
|
2011-09-09 06:27:13 +04:00
|
|
|
virtual nsresult GetFloatImpl(FloatID aID, float &aResult);
|
2012-02-21 03:19:48 +04:00
|
|
|
virtual bool GetFontImpl(FontID aID, nsString& aFontName,
|
2012-09-29 15:35:08 +04:00
|
|
|
gfxFontStyle& aFontStyle,
|
|
|
|
float aDevPixPerCSSPixel);
|
2014-01-04 19:02:17 +04:00
|
|
|
virtual char16_t GetPasswordCharacterImpl()
|
2011-09-09 06:27:13 +04:00
|
|
|
{
|
|
|
|
// unicode value for the bullet character, used for password textfields.
|
|
|
|
return 0x2022;
|
|
|
|
}
|
2006-12-07 01:31:17 +03:00
|
|
|
|
2013-06-07 23:44:24 +04:00
|
|
|
static bool UseOverlayScrollbars();
|
|
|
|
|
2015-04-22 17:58:48 +03:00
|
|
|
virtual nsTArray<LookAndFeelInt> GetIntCacheImpl();
|
2015-07-11 00:11:59 +03:00
|
|
|
virtual void SetIntCacheImpl(const nsTArray<LookAndFeelInt>& aLookAndFeelIntCache);
|
2015-04-22 17:58:48 +03:00
|
|
|
|
|
|
|
virtual void RefreshImpl();
|
2013-05-06 17:04:17 +04:00
|
|
|
|
2016-06-15 00:02:58 +03:00
|
|
|
protected:
|
2013-06-07 23:44:24 +04:00
|
|
|
static bool SystemWantsOverlayScrollbars();
|
2013-05-24 01:14:00 +04:00
|
|
|
static bool AllowOverlayScrollbarsOverlap();
|
2015-04-22 17:58:48 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
int32_t mUseOverlayScrollbars;
|
|
|
|
bool mUseOverlayScrollbarsCached;
|
|
|
|
|
|
|
|
int32_t mAllowOverlayScrollbarsOverlap;
|
|
|
|
bool mAllowOverlayScrollbarsOverlapCached;
|
2006-12-07 01:31:17 +03:00
|
|
|
};
|
|
|
|
|
2007-01-18 09:34:07 +03:00
|
|
|
#endif // nsLookAndFeel_h_
|