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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 // GetSystemMetrics for the given |metric|, then converts the result to DIP. | 58 // GetSystemMetrics for the given |metric|, then converts the result to DIP. |
59 GFX_EXPORT int GetSystemMetricsInDIP(int metric); | 59 GFX_EXPORT int GetSystemMetricsInDIP(int metric); |
60 | 60 |
61 // Returns true if the global device scale factor has been explicitly set for | 61 // Returns true if the global device scale factor has been explicitly set for |
62 // the process. | 62 // the process. |
63 GFX_EXPORT bool IsDeviceScaleFactorSet(); | 63 GFX_EXPORT bool IsDeviceScaleFactorSet(); |
64 | 64 |
65 GFX_EXPORT extern const wchar_t kRegistryProfilePath[]; | 65 GFX_EXPORT extern const wchar_t kRegistryProfilePath[]; |
66 GFX_EXPORT extern const wchar_t kHighDPISupportW[]; | 66 GFX_EXPORT extern const wchar_t kHighDPISupportW[]; |
67 | 67 |
68 // Returns whether DirectWrite font rendering should be used. | |
69 GFX_EXPORT bool ShouldUseDirectWrite(); | |
scottmg
2014/10/09 23:16:27
seems a bit odd to have it in dpi.{h,cc}?
ananta
2014/10/10 01:18:31
will look into moving this a new file possibly
ananta
2014/10/10 18:45:36
Moved to ui/gfx/win/direct_write.h/.cc
| |
70 | |
68 } // namespace win | 71 } // namespace win |
69 } // namespace gfx | 72 } // namespace gfx |
70 | 73 |
71 #endif // UI_GFX_DPI_WIN_H_ | 74 #endif // UI_GFX_DPI_WIN_H_ |
OLD | NEW |