Index: ui/base/win/hwnd_subclass.cc |
=================================================================== |
--- ui/base/win/hwnd_subclass.cc (revision 185501) |
+++ ui/base/win/hwnd_subclass.cc (working copy) |
@@ -9,7 +9,6 @@ |
#include "base/logging.h" |
#include "base/memory/scoped_vector.h" |
#include "base/memory/singleton.h" |
-#include "ui/base/win/dpi.h" |
#include "ui/base/win/hwnd_util.h" |
namespace { |
@@ -120,25 +119,6 @@ |
UINT message, |
WPARAM w_param, |
LPARAM l_param) { |
- |
- // Touch messages are always passed in screen coordinates. If the OS is |
- // scaled, but the app is not DPI aware, then then WM_TOUCH might be |
- // intended for a different window. |
- if (message == WM_TOUCH) { |
- TOUCHINPUT point; |
- |
- if (GetTouchInputInfo((HTOUCHINPUT)l_param, 1, |
- &point, sizeof(TOUCHINPUT))) { |
- POINT touch_location = { |
- TOUCH_COORD_TO_PIXEL(point.x) / ui::win::GetDPIScaleFromRegistry(), |
- TOUCH_COORD_TO_PIXEL(point.y) / ui::win::GetDPIScaleFromRegistry()}; |
- HWND actual_target = WindowFromPoint(touch_location); |
- if (actual_target != hwnd) { |
- return SendMessage(actual_target, message, w_param, l_param); |
- } |
- } |
- } |
- |
for (std::vector<HWNDMessageFilter*>::iterator it = filters_.begin(); |
it != filters_.end(); ++it) { |
LRESULT l_result = 0; |