Bug 1626988 [wpt PR 22658] - wake lock: Remove WakeLockPermissionDescriptor, use...
[gecko.git] / widget / nsBaseScreen.h
blob31588947548fe90fd4f48cefc66d50d15e3010c1
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=8 et :
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef nsBaseScreen_h
9 #define nsBaseScreen_h
11 #include "mozilla/Attributes.h"
12 #include "nsIScreen.h"
14 class nsBaseScreen : public nsIScreen {
15 public:
16 nsBaseScreen();
18 NS_DECL_ISUPPORTS
20 // nsIScreen interface
22 // These simply forward to the device-pixel versions;
23 // implementations where desktop pixels may not correspond
24 // to per-screen device pixels must override.
25 NS_IMETHOD GetRectDisplayPix(int32_t* outLeft, int32_t* outTop,
26 int32_t* outWidth, int32_t* outHeight) override;
27 NS_IMETHOD GetAvailRectDisplayPix(int32_t* outLeft, int32_t* outTop,
28 int32_t* outWidth,
29 int32_t* outHeight) override;
31 NS_IMETHOD GetContentsScaleFactor(double* aContentsScaleFactor) override;
33 NS_IMETHOD GetDefaultCSSScaleFactor(double* aScaleFactor) override;
35 NS_IMETHOD GetDpi(float* aDPI) override;
37 protected:
38 virtual ~nsBaseScreen();
41 #endif // nsBaseScreen_h