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

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

Issue 114873002: Allow synthesized WM_MOUSEMOVE and WM_MOUSELEAVE messages for touch based input through. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 | 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
===================================================================
--- ui/views/win/hwnd_message_handler.cc (revision 240282)
+++ ui/views/win/hwnd_message_handler.cc (working copy)
@@ -1512,14 +1512,17 @@
WPARAM w_param,
LPARAM l_param) {
#if defined(USE_AURA)
- if (!touch_ids_.empty())
+ if (!touch_ids_.empty() && message != WM_MOUSEMOVE &&
+ message != WM_MOUSELEAVE) {
return 0;
+ }
// We handle touch events on Windows Aura. Windows generates synthesized
// mouse messages in response to touch which we should ignore. However touch
// messages are only received for the client area. We need to ignore the
// synthesized mouse messages for all points in the client area and places
// which return HTNOWHERE.
- if (ui::IsMouseEventFromTouch(message)) {
+ if (message != WM_MOUSEMOVE && message != WM_MOUSELEAVE &&
+ ui::IsMouseEventFromTouch(message)) {
LPARAM l_param_ht = l_param;
// For mouse events (except wheel events), location is in window coordinates
// and should be converted to screen coordinates for WM_NCHITTEST.
« 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