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/. */
8 #define MOZ_FATAL_ASSERTIONS_FOR_THREAD_SAFETY
10 #include "nsBaseScreen.h"
12 NS_IMPL_ISUPPORTS(nsBaseScreen
, nsIScreen
)
14 nsBaseScreen::nsBaseScreen()
18 nsBaseScreen::~nsBaseScreen() { }
21 nsBaseScreen::GetRectDisplayPix(int32_t *outLeft
, int32_t *outTop
,
22 int32_t *outWidth
, int32_t *outHeight
)
24 return GetRect(outLeft
, outTop
, outWidth
, outHeight
);
28 nsBaseScreen::GetAvailRectDisplayPix(int32_t *outLeft
, int32_t *outTop
,
29 int32_t *outWidth
, int32_t *outHeight
)
31 return GetAvailRect(outLeft
, outTop
, outWidth
, outHeight
);
35 nsBaseScreen::GetContentsScaleFactor(double* aContentsScaleFactor
)
37 *aContentsScaleFactor
= 1.0;
42 nsBaseScreen::GetDefaultCSSScaleFactor(double* aScaleFactor
)
49 nsBaseScreen::GetDpi(float* aDPI
)