2010-06-03 13:56:36 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 04:12:37 -07: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-03 13:56:36 -07:00
|
|
|
#ifndef __nsLookAndFeel
|
|
|
|
#define __nsLookAndFeel
|
|
|
|
|
|
|
|
#include "nsXPLookAndFeel.h"
|
2011-03-30 11:04:41 -07:00
|
|
|
#include "AndroidBridge.h"
|
2010-06-03 13:56:36 -07:00
|
|
|
|
|
|
|
class nsLookAndFeel: public nsXPLookAndFeel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsLookAndFeel();
|
|
|
|
virtual ~nsLookAndFeel();
|
|
|
|
|
2011-09-08 19:27:13 -07:00
|
|
|
virtual nsresult NativeGetColor(ColorID aID, nscolor &aResult);
|
2012-08-22 08:56:38 -07:00
|
|
|
virtual nsresult GetIntImpl(IntID aID, int32_t &aResult);
|
2011-09-08 19:27:13 -07:00
|
|
|
virtual nsresult GetFloatImpl(FloatID aID, float &aResult);
|
2012-09-29 04:35:08 -07:00
|
|
|
virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle,
|
|
|
|
float aDevPixPerCSSPixel);
|
2011-09-28 23:19:26 -07:00
|
|
|
virtual bool GetEchoPasswordImpl();
|
2012-08-22 08:56:38 -07:00
|
|
|
virtual uint32_t GetPasswordMaskDelayImpl();
|
2012-08-06 22:13:25 -07:00
|
|
|
virtual PRUnichar GetPasswordCharacterImpl();
|
2011-03-30 11:04:41 -07:00
|
|
|
|
|
|
|
protected:
|
2011-09-28 23:19:26 -07:00
|
|
|
static bool mInitializedSystemColors;
|
2011-03-30 11:04:41 -07:00
|
|
|
static mozilla::AndroidSystemColors mSystemColors;
|
2011-09-28 23:19:26 -07:00
|
|
|
static bool mInitializedShowPassword;
|
|
|
|
static bool mShowPassword;
|
2011-03-30 11:04:41 -07:00
|
|
|
|
|
|
|
nsresult GetSystemColors();
|
|
|
|
nsresult CallRemoteGetSystemColors();
|
2010-06-03 13:56:36 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|