Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/widget/gtk/ScreenHelperGTK.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef mozilla_widget_gtk_ScreenHelperGTK_h
8
#define mozilla_widget_gtk_ScreenHelperGTK_h
9
10
#include "mozilla/widget/ScreenManager.h"
11
12
#include "gdk/gdk.h"
13
#ifdef MOZ_X11
14
#include <X11/Xlib.h>
15
#include "X11UndefineNone.h"
16
#endif
17
18
namespace mozilla {
19
namespace widget {
20
21
class ScreenHelperGTK final : public ScreenManager::Helper
22
{
23
public:
24
  ScreenHelperGTK();
25
  ~ScreenHelperGTK() override;
26
27
  static gint GetGTKMonitorScaleFactor(gint aMonitorNum = 0);
28
29
#ifdef MOZ_X11
30
0
  Atom NetWorkareaAtom() { return mNetWorkareaAtom; }
31
#endif
32
33
  // For internal use from signal callback functions
34
  void RefreshScreens();
35
36
private:
37
  GdkWindow* mRootWindow;
38
#ifdef MOZ_X11
39
  Atom mNetWorkareaAtom;
40
#endif
41
};
42
43
} // namespace widget
44
} // namespace mozilla
45
46
#endif // mozilla_widget_gtk_ScreenHelperGTK_h