2012-01-05 06:12:48 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2012-01-05 06:12:48 +04:00
|
|
|
|
2012-07-05 18:32:10 +04:00
|
|
|
#define MOZ_FATAL_ASSERTIONS_FOR_THREAD_SAFETY
|
|
|
|
|
2012-01-05 06:12:48 +04:00
|
|
|
#include "nsBaseScreen.h"
|
|
|
|
|
2014-04-27 11:06:00 +04:00
|
|
|
NS_IMPL_ISUPPORTS(nsBaseScreen, nsIScreen)
|
2012-01-05 06:12:48 +04:00
|
|
|
|
|
|
|
nsBaseScreen::nsBaseScreen()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
nsBaseScreen::~nsBaseScreen() { }
|
|
|
|
|
2012-10-16 23:41:19 +04:00
|
|
|
NS_IMETHODIMP
|
|
|
|
nsBaseScreen::GetRectDisplayPix(int32_t *outLeft, int32_t *outTop,
|
|
|
|
int32_t *outWidth, int32_t *outHeight)
|
|
|
|
{
|
|
|
|
return GetRect(outLeft, outTop, outWidth, outHeight);
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsBaseScreen::GetAvailRectDisplayPix(int32_t *outLeft, int32_t *outTop,
|
|
|
|
int32_t *outWidth, int32_t *outHeight)
|
|
|
|
{
|
|
|
|
return GetAvailRect(outLeft, outTop, outWidth, outHeight);
|
|
|
|
}
|
|
|
|
|
2012-10-02 23:48:05 +04:00
|
|
|
NS_IMETHODIMP
|
|
|
|
nsBaseScreen::GetContentsScaleFactor(double* aContentsScaleFactor)
|
|
|
|
{
|
|
|
|
*aContentsScaleFactor = 1.0;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
2016-02-05 19:29:33 +03:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsBaseScreen::GetDefaultCSSScaleFactor(double* aScaleFactor)
|
|
|
|
{
|
|
|
|
*aScaleFactor = 1.0;
|
|
|
|
return NS_OK;
|
|
|
|
}
|