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

Unified Diff: ui/events/win/event_utils_win_unittest.cc

Issue 2574933002: Call EnableNonClientDpiScaling (Closed)
Patch Set: Fix Bad Test Created 4 years 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/gfx/win/window_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/win/event_utils_win_unittest.cc
diff --git a/ui/events/win/event_utils_win_unittest.cc b/ui/events/win/event_utils_win_unittest.cc
index a4efce4fa5117119b48f0509e6dc63e346f94c0d..8b99008eb26911bfbbc5f1e61b78446be77aa668 100644
--- a/ui/events/win/event_utils_win_unittest.cc
+++ b/ui/events/win/event_utils_win_unittest.cc
@@ -22,7 +22,10 @@ class TestWindow : public gfx::WindowImpl {
LPARAM l_param,
LRESULT& result,
DWORD msg_map_id = 0) override {
- return true;
+ // Handle WM_NCCALCSIZE because the test below assumes there is no
+ // non-client area, affecting EventSystemLocationFromNative's client to
+ // screen coordinate transform.
+ return message == WM_NCCALCSIZE;
}
private:
« no previous file with comments | « no previous file | ui/gfx/win/window_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698