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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 574283002: [Win] Convert min|max window size to screen pixels. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move DIP-pixel conversion to hwnd_message_handler. Created 6 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index d726ea930d98d95feceb2da247503f41c5fabb27..9c3912afbb4230838c74cde09124aaff46e7983d 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -1397,6 +1397,9 @@ void HWNDMessageHandler::OnGetMinMaxInfo(MINMAXINFO* minmax_info) {
gfx::Size min_window_size;
gfx::Size max_window_size;
delegate_->GetMinMaxSize(&min_window_size, &max_window_size);
+ min_window_size = gfx::win::DIPToScreenSize(min_window_size);
+ max_window_size = gfx::win::DIPToScreenSize(max_window_size);
+
// Add the native frame border size to the minimum and maximum size if the
// view reports its size as the client size.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698