mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
940859860a
- Bug 1199615 - Fixed toolkit/mozapps/update/ compilation on mingw. r=rstrong (3cc6911a9b) - Bug 1240085 - Revert to CSS-pixel units for screenX, screenY, moveTo() APIs, and adjust the origin for secondary displays with differing resolution to avoid overlapping coordinate spaces. r=emk (be6bc0e6d9) - Bug 1231681 - "Implement window.u2f interface". r=baku, r=dkeeler (22c54db98d) - Bug 1234700 - Hide window.showModalDialog when e10s is enabled. r=jimm (0aaeee9d05) - Bug 1247335 - patch 1 - Provide a desktop-pixel variant of SetPosition on nsIBaseWindow and its implementations. r=emk (90da9912ff) - Bug 1247335 - patch 2 - Use desktop pixel coordinates when loading a nsXULWindow position. r=emk (e9343a7d58) - Bug 1247335 - patch 3 - Check for potential DPI change after moving or resizing nsGlobalWindow. r=emk (072db418cd) - deduplicate and reorder (e35b3edeab) - Bug 1213514 - Don't bother checking for third party URLs at interception time unless if the user needs it; r=jdm (9effb82825) - Bug 1206894 follow-up: Add a null check (d3cc337e32) - Bug 1233962 P1 Call ResetInterception() if the controller is nullptr. r=jdm (34da2cb7cb) - Bug 1233962 P2 Fix service worker xpcshell test to return a dispatcher from ChannelIntercepted(). r=jdm (d1f02f0b88) - Bug 1236686 - Remove nsIFetchEventDispatcher; r=jdm (1b5a021186)
48 lines
1.6 KiB
C++
48 lines
1.6 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef nsScreenWin_h___
|
|
#define nsScreenWin_h___
|
|
|
|
#include <windows.h>
|
|
#include "nsBaseScreen.h"
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
class nsScreenWin final : public nsBaseScreen
|
|
{
|
|
public:
|
|
nsScreenWin ( HMONITOR inScreen );
|
|
~nsScreenWin();
|
|
|
|
NS_IMETHOD GetId(uint32_t* aId);
|
|
|
|
// These methods return the size in device (physical) pixels
|
|
NS_IMETHOD GetRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight);
|
|
NS_IMETHOD GetAvailRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight);
|
|
|
|
// And these methods get the screen size in 'desktop pixels' (AKA 'logical pixels')
|
|
// that are dependent on the logical DPI setting in windows
|
|
NS_IMETHOD GetRectDisplayPix(int32_t *outLeft, int32_t *outTop,
|
|
int32_t *outWidth, int32_t *outHeight);
|
|
NS_IMETHOD GetAvailRectDisplayPix(int32_t *outLeft, int32_t *outTop,
|
|
int32_t *outWidth, int32_t *outHeight);
|
|
|
|
NS_IMETHOD GetPixelDepth(int32_t* aPixelDepth);
|
|
NS_IMETHOD GetColorDepth(int32_t* aColorDepth);
|
|
|
|
NS_IMETHOD GetContentsScaleFactor(double* aContentsScaleFactor) override;
|
|
|
|
NS_IMETHOD GetDefaultCSSScaleFactor(double* aScaleFactor) override;
|
|
|
|
private:
|
|
double GetDPIScale();
|
|
|
|
HMONITOR mScreen;
|
|
uint32_t mId;
|
|
};
|
|
|
|
#endif // nsScreenWin_h___
|