michael@0: /* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsScreenManagerAndroid_h___ michael@0: #define nsScreenManagerAndroid_h___ michael@0: michael@0: #include "nsCOMPtr.h" michael@0: michael@0: #include "nsBaseScreen.h" michael@0: #include "nsIScreenManager.h" michael@0: #include "WidgetUtils.h" michael@0: michael@0: class nsScreenAndroid MOZ_FINAL : public nsBaseScreen michael@0: { michael@0: public: michael@0: nsScreenAndroid(void *nativeScreen); michael@0: ~nsScreenAndroid(); michael@0: michael@0: NS_IMETHOD GetRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight); michael@0: NS_IMETHOD GetAvailRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight); michael@0: NS_IMETHOD GetPixelDepth(int32_t* aPixelDepth); michael@0: NS_IMETHOD GetColorDepth(int32_t* aColorDepth); michael@0: michael@0: protected: michael@0: virtual void ApplyMinimumBrightness(uint32_t aBrightness) MOZ_OVERRIDE; michael@0: }; michael@0: michael@0: class nsScreenManagerAndroid MOZ_FINAL : public nsIScreenManager michael@0: { michael@0: public: michael@0: nsScreenManagerAndroid(); michael@0: ~nsScreenManagerAndroid(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISCREENMANAGER michael@0: michael@0: protected: michael@0: nsCOMPtr mOneScreen; michael@0: }; michael@0: michael@0: #endif /* nsScreenManagerAndroid_h___ */