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

Unified Diff: ui/events/gesture_detection/gesture_event_data_packet.cc

Issue 2054193002: Android mouse events shouldn't appear as TouchEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a test, etc. Created 4 years, 1 month 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/events/gesture_detection/gesture_detector.cc ('k') | ui/events/gesture_detection/gesture_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/gesture_event_data_packet.cc
diff --git a/ui/events/gesture_detection/gesture_event_data_packet.cc b/ui/events/gesture_detection/gesture_event_data_packet.cc
index a24e4ede3ac6ef838419f3266543c644fb72a27f..9b3af054e0e85945ceab2ace3e321808f5927de1 100644
--- a/ui/events/gesture_detection/gesture_event_data_packet.cc
+++ b/ui/events/gesture_detection/gesture_event_data_packet.cc
@@ -26,6 +26,11 @@ GestureEventDataPacket::GestureSource ToGestureSource(
case ui::MotionEvent::ACTION_POINTER_UP:
return GestureEventDataPacket::TOUCH_END;
case ui::MotionEvent::ACTION_NONE:
+ case ui::MotionEvent::ACTION_HOVER_ENTER:
+ case ui::MotionEvent::ACTION_HOVER_EXIT:
+ case ui::MotionEvent::ACTION_HOVER_MOVE:
+ case ui::MotionEvent::ACTION_BUTTON_PRESS:
+ case ui::MotionEvent::ACTION_BUTTON_RELEASE:
NOTREACHED();
return GestureEventDataPacket::INVALID;
};
« no previous file with comments | « ui/events/gesture_detection/gesture_detector.cc ('k') | ui/events/gesture_detection/gesture_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698