1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/android/nsLookAndFeel.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 +#ifndef __nsLookAndFeel 1.9 +#define __nsLookAndFeel 1.10 + 1.11 +#include "nsXPLookAndFeel.h" 1.12 +#include "AndroidBridge.h" 1.13 + 1.14 +class nsLookAndFeel: public nsXPLookAndFeel 1.15 +{ 1.16 +public: 1.17 + nsLookAndFeel(); 1.18 + virtual ~nsLookAndFeel(); 1.19 + 1.20 + virtual nsresult NativeGetColor(ColorID aID, nscolor &aResult); 1.21 + virtual nsresult GetIntImpl(IntID aID, int32_t &aResult); 1.22 + virtual nsresult GetFloatImpl(FloatID aID, float &aResult); 1.23 + virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle, 1.24 + float aDevPixPerCSSPixel); 1.25 + virtual bool GetEchoPasswordImpl(); 1.26 + virtual uint32_t GetPasswordMaskDelayImpl(); 1.27 + virtual char16_t GetPasswordCharacterImpl(); 1.28 + 1.29 +protected: 1.30 + static bool mInitializedSystemColors; 1.31 + static mozilla::AndroidSystemColors mSystemColors; 1.32 + static bool mInitializedShowPassword; 1.33 + static bool mShowPassword; 1.34 + 1.35 + nsresult GetSystemColors(); 1.36 + nsresult CallRemoteGetSystemColors(); 1.37 +}; 1.38 + 1.39 +#endif