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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 2093993003: Add Plumbing for WM_DPICHANGED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screenprepare
Patch Set: Adjust Non-Square Scaling Factor Check Created 4 years, 6 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/views/widget/desktop_aura/desktop_window_tree_host_win.h ('k') | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index fd8de8f35884f4fe7935cc83f5a7190b1427118b..de96b6309b1c3847fbd2af2aa5ba4acf8cb8148a 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -940,6 +940,15 @@ void DesktopWindowTreeHostWin::HandleWindowSizeChanged() {
}
}
+void DesktopWindowTreeHostWin::HandleWindowScaleFactorChanged(
+ float window_scale_factor) {
+ if (compositor()) {
+ compositor()->SetScaleAndSize(
+ window_scale_factor,
+ message_handler_->GetClientAreaBounds().size());
+ }
+}
+
////////////////////////////////////////////////////////////////////////////////
// DesktopWindowTreeHostWin, private:
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.h ('k') | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698