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"
12 #include "nsCOMArray.h"
19 //------------------------------------------------------------------------
21 class nsScreenManagerGtk
: public nsIScreenManager
24 nsScreenManagerGtk ( );
27 NS_DECL_NSISCREENMANAGER
30 Atom
NetWorkareaAtom() { return mNetWorkareaAtom
; }
33 // For internal use, or reinitialization from change notification.
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
;
48 Atom mNetWorkareaAtom
;
52 #endif // nsScreenManagerGtk_h___