2008-04-19 19:31:50 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2014-02-21 06:09:02 +04: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 19:31:50 +04:00
|
|
|
#ifndef __nsLookAndFeel
|
|
|
|
#define __nsLookAndFeel
|
|
|
|
|
|
|
|
#include "nsXPLookAndFeel.h"
|
|
|
|
|
2014-02-21 06:09:02 +04:00
|
|
|
class nsLookAndFeel : public nsXPLookAndFeel
|
2008-04-19 19:31:50 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsLookAndFeel();
|
|
|
|
virtual ~nsLookAndFeel();
|
|
|
|
|
2014-02-21 06:09:02 +04:00
|
|
|
virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle,
|
|
|
|
float aDevPixPerCSSPixel);
|
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);
|
2014-02-21 06:09:02 +04:00
|
|
|
virtual bool GetEchoPasswordImpl();
|
|
|
|
virtual uint32_t GetPasswordMaskDelayImpl();
|
|
|
|
virtual char16_t GetPasswordCharacterImpl();
|
2012-02-21 03:19:48 +04:00
|
|
|
|
2014-02-21 06:09:02 +04:00
|
|
|
protected:
|
|
|
|
virtual nsresult NativeGetColor(ColorID aID, nscolor &aColor);
|
2008-04-19 19:31:50 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|