widget/android/nsScreenManagerAndroid.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:cb80757c9b73
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/. */
5
6 #ifndef nsScreenManagerAndroid_h___
7 #define nsScreenManagerAndroid_h___
8
9 #include "nsCOMPtr.h"
10
11 #include "nsBaseScreen.h"
12 #include "nsIScreenManager.h"
13 #include "WidgetUtils.h"
14
15 class nsScreenAndroid MOZ_FINAL : public nsBaseScreen
16 {
17 public:
18 nsScreenAndroid(void *nativeScreen);
19 ~nsScreenAndroid();
20
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);
25
26 protected:
27 virtual void ApplyMinimumBrightness(uint32_t aBrightness) MOZ_OVERRIDE;
28 };
29
30 class nsScreenManagerAndroid MOZ_FINAL : public nsIScreenManager
31 {
32 public:
33 nsScreenManagerAndroid();
34 ~nsScreenManagerAndroid();
35
36 NS_DECL_ISUPPORTS
37 NS_DECL_NSISCREENMANAGER
38
39 protected:
40 nsCOMPtr<nsIScreen> mOneScreen;
41 };
42
43 #endif /* nsScreenManagerAndroid_h___ */

mercurial