| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 GFX_EXPORT Size GetDPI(); | 22 GFX_EXPORT Size GetDPI(); |
| 23 | 23 |
| 24 // Gets the scale factor of the display. For example, if the display DPI is | 24 // Gets the scale factor of the display. For example, if the display DPI is |
| 25 // 96 then the scale factor is 1.0. | 25 // 96 then the scale factor is 1.0. |
| 26 GFX_EXPORT float GetDPIScale(); | 26 GFX_EXPORT float GetDPIScale(); |
| 27 | 27 |
| 28 // Tests to see if the command line flag "--high-dpi-support" is set. | 28 // Tests to see if the command line flag "--high-dpi-support" is set. |
| 29 GFX_EXPORT bool IsHighDPIEnabled(); | 29 GFX_EXPORT bool IsHighDPIEnabled(); |
| 30 | 30 |
| 31 GFX_EXPORT bool IsInHighDPIMode(); | |
| 32 | |
| 33 GFX_EXPORT void EnableHighDPISupport(); | 31 GFX_EXPORT void EnableHighDPISupport(); |
| 34 | 32 |
| 35 GFX_EXPORT void ForceHighDPISupportForTesting(float scale); | 33 GFX_EXPORT void ForceHighDPISupportForTesting(float scale); |
| 36 | 34 |
| 37 // TODO(kevers|girard): Move above methods into win namespace. | 35 // TODO(kevers|girard): Move above methods into win namespace. |
| 38 | 36 |
| 39 namespace win { | 37 namespace win { |
| 40 | 38 |
| 41 GFX_EXPORT float GetDeviceScaleFactor(); | 39 GFX_EXPORT float GetDeviceScaleFactor(); |
| 42 | 40 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 62 // the process. | 60 // the process. |
| 63 GFX_EXPORT bool IsDeviceScaleFactorSet(); | 61 GFX_EXPORT bool IsDeviceScaleFactorSet(); |
| 64 | 62 |
| 65 GFX_EXPORT extern const wchar_t kRegistryProfilePath[]; | 63 GFX_EXPORT extern const wchar_t kRegistryProfilePath[]; |
| 66 GFX_EXPORT extern const wchar_t kHighDPISupportW[]; | 64 GFX_EXPORT extern const wchar_t kHighDPISupportW[]; |
| 67 | 65 |
| 68 } // namespace win | 66 } // namespace win |
| 69 } // namespace gfx | 67 } // namespace gfx |
| 70 | 68 |
| 71 #endif // UI_GFX_DPI_WIN_H_ | 69 #endif // UI_GFX_DPI_WIN_H_ |
| OLD | NEW |