Bug 1447216 [wpt PR 10104] - Worker: Support ES Modules on DedicatedWorker behind...
[gecko.git] / widget / nsBaseScreen.h
blob3a9854f4ca8f3725d38e8b4dd7f9fad577cf58fa
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
16 public:
17 nsBaseScreen();
19 NS_DECL_ISUPPORTS
21 // nsIScreen interface
23 // These simply forward to the device-pixel versions;
24 // implementations where desktop pixels may not correspond
25 // to per-screen device pixels must override.
26 NS_IMETHOD GetRectDisplayPix(int32_t *outLeft, int32_t *outTop,
27 int32_t *outWidth, int32_t *outHeight) override;
28 NS_IMETHOD GetAvailRectDisplayPix(int32_t *outLeft, int32_t *outTop,
29 int32_t *outWidth, 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