2010-06-04 00:56:36 +04: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/. */
|
2010-06-04 00:56:36 +04:00
|
|
|
#ifndef __nsLookAndFeel
|
|
|
|
#define __nsLookAndFeel
|
|
|
|
|
|
|
|
#include "nsXPLookAndFeel.h"
|
2011-03-30 22:04:41 +04:00
|
|
|
#include "AndroidBridge.h"
|
2010-06-04 00:56:36 +04:00
|
|
|
|
|
|
|
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-09-29 15:35:08 +04:00
|
|
|
virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle,
|
|
|
|
float aDevPixPerCSSPixel);
|
2011-09-29 10:19:26 +04:00
|
|
|
virtual bool GetEchoPasswordImpl();
|
2012-08-22 19:56:38 +04:00
|
|
|
virtual uint32_t GetPasswordMaskDelayImpl();
|
2014-01-04 19:02:17 +04:00
|
|
|
virtual char16_t GetPasswordCharacterImpl();
|
2011-03-30 22:04:41 +04:00
|
|
|
|
|
|
|
protected:
|
2011-09-29 10:19:26 +04:00
|
|
|
static bool mInitializedSystemColors;
|
2011-03-30 22:04:41 +04:00
|
|
|
static mozilla::AndroidSystemColors mSystemColors;
|
2011-09-29 10:19:26 +04:00
|
|
|
static bool mInitializedShowPassword;
|
|
|
|
static bool mShowPassword;
|
2011-03-30 22:04:41 +04:00
|
|
|
|
|
|
|
nsresult GetSystemColors();
|
|
|
|
nsresult CallRemoteGetSystemColors();
|
2010-06-04 00:56:36 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|