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

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

Issue 2165173002: Only Update the Scale Factor if the Scale Factor Actually Changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | 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 65d5f82b39d8349efaf35a6bfc3995cbf96a42e1..0a16da017ce1bfb0afe581c5623f185c1bdf4477 100644
--- a/ui/display/win/screen_win.h
+++ b/ui/display/win/screen_win.h
@@ -92,6 +92,9 @@ class DISPLAY_EXPORT ScreenWin : public display::Screen {
// Returns the result of GetSystemMetrics for |metric| scaled to |hwnd|'s DPI.
static int GetSystemMetricsForHwnd(HWND hwnd, int metric);
+ // Returns |hwnd|'s scale factor.
+ static float GetScaleFactorForHWND(HWND hwnd);
+
// Returns the HWND associated with the NativeView.
virtual HWND GetHWNDFromNativeView(gfx::NativeView window) const;
@@ -159,8 +162,6 @@ class DISPLAY_EXPORT ScreenWin : public display::Screen {
ScreenWinDisplay GetScreenWinDisplay(const MONITORINFOEX& monitor_info) const;
- static float GetScaleFactorForHWND(HWND hwnd);
-
// Returns the result of calling |getter| with |value| on the global
// ScreenWin if it exists, otherwise return the default ScreenWinDisplay.
template <typename Getter, typename GetterType>
« no previous file with comments | « no previous file | ui/display/win/screen_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698