michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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 nsScreenCocoa_h_ michael@0: #define nsScreenCocoa_h_ michael@0: michael@0: #import michael@0: michael@0: #include "nsBaseScreen.h" michael@0: michael@0: class nsScreenCocoa : public nsBaseScreen michael@0: { michael@0: public: michael@0: nsScreenCocoa (NSScreen *screen); michael@0: ~nsScreenCocoa (); michael@0: michael@0: NS_IMETHOD GetRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight); michael@0: NS_IMETHOD GetAvailRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight); michael@0: NS_IMETHOD GetRectDisplayPix(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight); michael@0: NS_IMETHOD GetAvailRectDisplayPix(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight); michael@0: NS_IMETHOD GetPixelDepth(int32_t* aPixelDepth); michael@0: NS_IMETHOD GetColorDepth(int32_t* aColorDepth); michael@0: NS_IMETHOD GetContentsScaleFactor(double* aContentsScaleFactor); michael@0: michael@0: NSScreen *CocoaScreen() { return mScreen; } michael@0: michael@0: private: michael@0: CGFloat BackingScaleFactor(); michael@0: michael@0: NSScreen *mScreen; michael@0: }; michael@0: michael@0: #endif // nsScreenCocoa_h_