2011-11-11 04:17:46 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-20 13:10:44 +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.
|
|
|
|
*/
|
|
|
|
|
2011-11-11 04:17:46 +04:00
|
|
|
#ifndef __nsLookAndFeel
|
|
|
|
#define __nsLookAndFeel
|
|
|
|
|
|
|
|
#include "nsXPLookAndFeel.h"
|
|
|
|
|
|
|
|
class nsLookAndFeel : public nsXPLookAndFeel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsLookAndFeel();
|
|
|
|
virtual ~nsLookAndFeel();
|
|
|
|
|
2012-09-29 15:35:08 +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);
|
2013-09-22 13:44:26 +04:00
|
|
|
virtual nsresult GetFloatImpl(FloatID aID, float &aResult);
|
2012-07-15 03:05:54 +04:00
|
|
|
virtual bool GetEchoPasswordImpl();
|
2012-11-29 10:13:35 +04:00
|
|
|
virtual uint32_t GetPasswordMaskDelayImpl();
|
2014-01-04 19:02:17 +04:00
|
|
|
virtual char16_t GetPasswordCharacterImpl();
|
2012-02-21 03:19:48 +04:00
|
|
|
|
2011-11-11 04:17:46 +04:00
|
|
|
protected:
|
|
|
|
virtual nsresult NativeGetColor(ColorID aID, nscolor &aColor);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|