michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsScreenManagerWin_h___ michael@0: #define nsScreenManagerWin_h___ michael@0: michael@0: #include "nsIScreenManager.h" michael@0: michael@0: #include michael@0: #include "nsCOMPtr.h" michael@0: #include "nsTArray.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsIScreen; michael@0: michael@0: //------------------------------------------------------------------------ michael@0: michael@0: class ScreenListItem michael@0: { michael@0: public: michael@0: ScreenListItem ( HMONITOR inMon, nsIScreen* inScreen ) michael@0: : mMon(inMon), mScreen(inScreen) { } ; michael@0: michael@0: HMONITOR mMon; michael@0: nsCOMPtr mScreen; michael@0: }; michael@0: michael@0: class nsScreenManagerWin MOZ_FINAL : public nsIScreenManager michael@0: { michael@0: public: michael@0: nsScreenManagerWin ( ); michael@0: ~nsScreenManagerWin(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISCREENMANAGER michael@0: michael@0: private: michael@0: michael@0: nsIScreen* CreateNewScreenObject ( HMONITOR inScreen ) ; michael@0: michael@0: uint32_t mNumberOfScreens; michael@0: michael@0: // cache the screens to avoid the memory allocations michael@0: nsAutoTArray mScreenList; michael@0: michael@0: }; michael@0: michael@0: #endif // nsScreenManagerWin_h___