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