1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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/. */
11 #include "mozilla/Attributes.h"
12 #include "nsIScreen.h"
14 class nsBaseScreen
: public nsIScreen
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
;
38 virtual ~nsBaseScreen();
41 #endif // nsBaseScreen_h