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