Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Unified Diff: ui/base/win/dpi.h

Issue 12684006: Correct title bar size for HiDPI Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Corrected include ordering Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | ui/base/win/dpi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/dpi.h
diff --git a/ui/base/win/dpi.h b/ui/base/win/dpi.h
index bfc0417fbb7041d7197fe6a878ce74ed4fd04bfc..e37392ba85309cd51d1942ca4f89552054c9d686 100644
--- a/ui/base/win/dpi.h
+++ b/ui/base/win/dpi.h
@@ -38,6 +38,10 @@ UI_EXPORT gfx::Size ScreenToDIPSize(const gfx::Size& size_in_pixels);
UI_EXPORT gfx::Size DIPToScreenSize(const gfx::Size& dip_size);
+// Win32's GetSystemMetrics uses pixel measures. This function calls
+// GetSystemMetrics for the given |metric|, then converts the result to DIP.
+UI_EXPORT int GetSystemMetricsInDIP(int metric);
+
// The OS secretly scales apps that are not DPIAware. This is not visible
// through standard OS calls like GetWindowPos(), or through GetDPIScale().
// Returns the scale factor of the display, where 96 DPI is 1.0.
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | ui/base/win/dpi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698