2008-04-19 08:31:50 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2014-02-20 18:09:02 -08:00
|
|
|
/* Copyright 2012 Mozilla Foundation and Mozilla contributors
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2008-04-19 08:31:50 -07:00
|
|
|
#ifndef __nsLookAndFeel
|
|
|
|
#define __nsLookAndFeel
|
|
|
|
|
|
|
|
#include "nsXPLookAndFeel.h"
|
|
|
|
|
2014-02-20 18:09:02 -08:00
|
|
|
class nsLookAndFeel : public nsXPLookAndFeel
|
2008-04-19 08:31:50 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsLookAndFeel();
|
|
|
|
virtual ~nsLookAndFeel();
|
|
|
|
|
2014-02-20 18:09:02 -08:00
|
|
|
virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle,
|
|
|
|
float aDevPixPerCSSPixel);
|
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);
|
2014-02-20 18:09:02 -08:00
|
|
|
virtual bool GetEchoPasswordImpl();
|
|
|
|
virtual uint32_t GetPasswordMaskDelayImpl();
|
|
|
|
virtual char16_t GetPasswordCharacterImpl();
|
2012-02-20 15:19:48 -08:00
|
|
|
|
2014-02-20 18:09:02 -08:00
|
|
|
protected:
|
|
|
|
virtual nsresult NativeGetColor(ColorID aID, nscolor &aColor);
|
2008-04-19 08:31:50 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|