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

Unified Diff: ui/display/win/screen_win.h

Issue 2695523002: Fix font sizes being incorrect when using --force-device-scale-factor. (Closed)
Patch Set: fix test link Created 3 years, 10 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 | « ui/display/win/dpi.cc ('k') | ui/display/win/screen_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/win/screen_win.h
diff --git a/ui/display/win/screen_win.h b/ui/display/win/screen_win.h
index 94379e055f3245938004c1689456f803f0aad7c9..5a000d4038521660ae69e53891f2ffc649947812 100644
--- a/ui/display/win/screen_win.h
+++ b/ui/display/win/screen_win.h
@@ -102,6 +102,13 @@ class DISPLAY_EXPORT ScreenWin : public Screen {
// Returns |hwnd|'s scale factor.
static float GetScaleFactorForHWND(HWND hwnd);
+ // Returns the system's global scale factor, ignoring the value of
+ // --force-device-scale-factor. Only use this if you are working with Windows
+ // metrics global to the system. Otherwise you should call
+ // GetScaleFactorForHWND() to get the correct scale factor for the monitor
+ // you are targeting.
+ static float GetSystemScaleFactor();
+
// Returns the HWND associated with the NativeView.
virtual HWND GetHWNDFromNativeView(gfx::NativeView window) const;
« no previous file with comments | « ui/display/win/dpi.cc ('k') | ui/display/win/screen_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698