Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / widget / gtk / nsScreenManagerGtk.h
blob5a3410fc85f4f139ca5cca1b32f0dce72db9bef7
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsScreenManagerGtk_h___
7 #define nsScreenManagerGtk_h___
9 #include "nsIScreenManager.h"
10 #include "nsIScreen.h"
11 #include "nsCOMPtr.h"
12 #include "nsCOMArray.h"
13 #include "prlink.h"
14 #include "gdk/gdk.h"
15 #ifdef MOZ_X11
16 #include <X11/Xlib.h>
17 #endif
19 //------------------------------------------------------------------------
21 class nsScreenManagerGtk : public nsIScreenManager
23 public:
24 nsScreenManagerGtk ( );
26 NS_DECL_ISUPPORTS
27 NS_DECL_NSISCREENMANAGER
29 #ifdef MOZ_X11
30 Atom NetWorkareaAtom() { return mNetWorkareaAtom; }
31 #endif
33 // For internal use, or reinitialization from change notification.
34 nsresult Init();
36 private:
37 virtual ~nsScreenManagerGtk();
39 nsresult EnsureInit();
41 // Cached screen array. Its length is the number of screens we have.
42 nsCOMArray<nsIScreen> mCachedScreenArray;
44 PRLibrary *mXineramalib;
46 GdkWindow *mRootWindow;
47 #ifdef MOZ_X11
48 Atom mNetWorkareaAtom;
49 #endif
52 #endif // nsScreenManagerGtk_h___