2010-06-04 00:56:36 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-06-04 00:56:36 +04:00
|
|
|
|
|
|
|
#ifndef nsScreenManagerAndroid_h___
|
|
|
|
#define nsScreenManagerAndroid_h___
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
2012-01-05 06:12:48 +04:00
|
|
|
#include "nsBaseScreen.h"
|
2010-06-04 00:56:36 +04:00
|
|
|
#include "nsIScreenManager.h"
|
2010-12-22 01:34:29 +03:00
|
|
|
#include "WidgetUtils.h"
|
2010-06-04 00:56:36 +04:00
|
|
|
|
2013-05-30 22:26:02 +04:00
|
|
|
class nsScreenAndroid MOZ_FINAL : public nsBaseScreen
|
2010-06-04 00:56:36 +04:00
|
|
|
{
|
|
|
|
public:
|
2010-12-22 01:34:29 +03:00
|
|
|
nsScreenAndroid(void *nativeScreen);
|
2010-06-04 00:56:36 +04:00
|
|
|
~nsScreenAndroid();
|
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
NS_IMETHOD GetRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight);
|
|
|
|
NS_IMETHOD GetAvailRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight);
|
|
|
|
NS_IMETHOD GetPixelDepth(int32_t* aPixelDepth);
|
|
|
|
NS_IMETHOD GetColorDepth(int32_t* aColorDepth);
|
2010-12-22 01:34:29 +03:00
|
|
|
|
|
|
|
protected:
|
2012-08-22 19:56:38 +04:00
|
|
|
virtual void ApplyMinimumBrightness(uint32_t aBrightness) MOZ_OVERRIDE;
|
2010-06-04 00:56:36 +04:00
|
|
|
};
|
|
|
|
|
2013-05-30 22:26:02 +04:00
|
|
|
class nsScreenManagerAndroid MOZ_FINAL : public nsIScreenManager
|
2010-06-04 00:56:36 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsScreenManagerAndroid();
|
|
|
|
~nsScreenManagerAndroid();
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSISCREENMANAGER
|
|
|
|
|
|
|
|
protected:
|
|
|
|
nsCOMPtr<nsIScreen> mOneScreen;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsScreenManagerAndroid_h___ */
|