Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsScreenManagerAndroid_h___
7 #define nsScreenManagerAndroid_h___
9 #include "nsCOMPtr.h"
11 #include "nsBaseScreen.h"
12 #include "nsIScreenManager.h"
13 #include "WidgetUtils.h"
15 class nsScreenAndroid MOZ_FINAL : public nsBaseScreen
16 {
17 public:
18 nsScreenAndroid(void *nativeScreen);
19 ~nsScreenAndroid();
21 NS_IMETHOD GetRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight);
22 NS_IMETHOD GetAvailRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight);
23 NS_IMETHOD GetPixelDepth(int32_t* aPixelDepth);
24 NS_IMETHOD GetColorDepth(int32_t* aColorDepth);
26 protected:
27 virtual void ApplyMinimumBrightness(uint32_t aBrightness) MOZ_OVERRIDE;
28 };
30 class nsScreenManagerAndroid MOZ_FINAL : public nsIScreenManager
31 {
32 public:
33 nsScreenManagerAndroid();
34 ~nsScreenManagerAndroid();
36 NS_DECL_ISUPPORTS
37 NS_DECL_NSISCREENMANAGER
39 protected:
40 nsCOMPtr<nsIScreen> mOneScreen;
41 };
43 #endif /* nsScreenManagerAndroid_h___ */