OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_DPI_WIN_H_ | 5 #ifndef UI_GFX_DPI_WIN_H_ |
6 #define UI_GFX_DPI_WIN_H_ | 6 #define UI_GFX_DPI_WIN_H_ |
7 | 7 |
8 #include "ui/gfx/gfx_export.h" | 8 #include "ui/gfx/gfx_export.h" |
9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/point.h" |
10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Returns the scale factor of the display, where 96 DPI is 1.0. | 62 // Returns the scale factor of the display, where 96 DPI is 1.0. |
63 // (Avoid this function... use GetDPIScale() instead.) | 63 // (Avoid this function... use GetDPIScale() instead.) |
64 // TODO(girard): Remove this once DPIAware is enabled - http://crbug.com/149881 | 64 // TODO(girard): Remove this once DPIAware is enabled - http://crbug.com/149881 |
65 GFX_EXPORT double GetUndocumentedDPIScale(); | 65 GFX_EXPORT double GetUndocumentedDPIScale(); |
66 | 66 |
67 // Win7 and Win8 send touch events scaled according to the current DPI | 67 // Win7 and Win8 send touch events scaled according to the current DPI |
68 // scaling. Win8.1 corrects this, and sends touch events in DPI units. | 68 // scaling. Win8.1 corrects this, and sends touch events in DPI units. |
69 // This function returns the appropriate scaling factor for touch events. | 69 // This function returns the appropriate scaling factor for touch events. |
70 GFX_EXPORT double GetUndocumentedDPITouchScale(); | 70 GFX_EXPORT double GetUndocumentedDPITouchScale(); |
71 | 71 |
| 72 // Returns true if the global device scale factor has been explicitly set for |
| 73 // the process. |
| 74 GFX_EXPORT bool IsDeviceScaleFactorSet(); |
| 75 |
72 } // namespace win | 76 } // namespace win |
73 } // namespace gfx | 77 } // namespace gfx |
74 | 78 |
75 #endif // UI_GFX_DPI_WIN_H_ | 79 #endif // UI_GFX_DPI_WIN_H_ |
OLD | NEW |