Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/widget/nsBaseScreen.cpp
Line
Count
Source (jump to first uncovered line)
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/. */
7
8
#define MOZ_FATAL_ASSERTIONS_FOR_THREAD_SAFETY
9
10
#include "nsBaseScreen.h"
11
12
NS_IMPL_ISUPPORTS(nsBaseScreen, nsIScreen)
13
14
nsBaseScreen::nsBaseScreen()
15
0
{
16
0
}
17
18
0
nsBaseScreen::~nsBaseScreen() { }
19
20
NS_IMETHODIMP
21
nsBaseScreen::GetRectDisplayPix(int32_t *outLeft,  int32_t *outTop,
22
                                int32_t *outWidth, int32_t *outHeight)
23
0
{
24
0
  return GetRect(outLeft, outTop, outWidth, outHeight);
25
0
}
26
27
NS_IMETHODIMP
28
nsBaseScreen::GetAvailRectDisplayPix(int32_t *outLeft,  int32_t *outTop,
29
                                     int32_t *outWidth, int32_t *outHeight)
30
0
{
31
0
  return GetAvailRect(outLeft, outTop, outWidth, outHeight);
32
0
}
33
34
NS_IMETHODIMP
35
nsBaseScreen::GetContentsScaleFactor(double* aContentsScaleFactor)
36
0
{
37
0
  *aContentsScaleFactor = 1.0;
38
0
  return NS_OK;
39
0
}
40
41
NS_IMETHODIMP
42
nsBaseScreen::GetDefaultCSSScaleFactor(double* aScaleFactor)
43
0
{
44
0
  *aScaleFactor = 1.0;
45
0
  return NS_OK;
46
0
}
47
48
NS_IMETHODIMP
49
nsBaseScreen::GetDpi(float* aDPI)
50
0
{
51
0
  *aDPI = 96;
52
0
  return NS_OK;
53
0
}