1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/gonk/nsLookAndFeel.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* Copyright 2012 Mozilla Foundation and Mozilla contributors 1.6 + * 1.7 + * Licensed under the Apache License, Version 2.0 (the "License"); 1.8 + * you may not use this file except in compliance with the License. 1.9 + * You may obtain a copy of the License at 1.10 + * 1.11 + * http://www.apache.org/licenses/LICENSE-2.0 1.12 + * 1.13 + * Unless required by applicable law or agreed to in writing, software 1.14 + * distributed under the License is distributed on an "AS IS" BASIS, 1.15 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1.16 + * See the License for the specific language governing permissions and 1.17 + * limitations under the License. 1.18 + */ 1.19 + 1.20 +#ifndef __nsLookAndFeel 1.21 +#define __nsLookAndFeel 1.22 + 1.23 +#include "nsXPLookAndFeel.h" 1.24 + 1.25 +class nsLookAndFeel : public nsXPLookAndFeel 1.26 +{ 1.27 +public: 1.28 + nsLookAndFeel(); 1.29 + virtual ~nsLookAndFeel(); 1.30 + 1.31 + virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle, 1.32 + float aDevPixPerCSSPixel); 1.33 + virtual nsresult GetIntImpl(IntID aID, int32_t &aResult); 1.34 + virtual nsresult GetFloatImpl(FloatID aID, float &aResult); 1.35 + virtual bool GetEchoPasswordImpl(); 1.36 + virtual uint32_t GetPasswordMaskDelayImpl(); 1.37 + virtual char16_t GetPasswordCharacterImpl(); 1.38 + 1.39 +protected: 1.40 + virtual nsresult NativeGetColor(ColorID aID, nscolor &aColor); 1.41 +}; 1.42 + 1.43 +#endif