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

Unified Diff: ui/events/gesture_detection/gesture_detector.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/blink/blink_event_util.cc ('k') | ui/events/gesture_detection/gesture_event_data_packet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/gesture_detector.cc
diff --git a/ui/events/gesture_detection/gesture_detector.cc b/ui/events/gesture_detection/gesture_detector.cc
index d1e1c3844bd5de27d0bf656b8e6957a8fca634c2..1d26d730d28a7f7a04ea1c8cbd4c56d1b5db9e2e 100644
--- a/ui/events/gesture_detection/gesture_detector.cc
+++ b/ui/events/gesture_detection/gesture_detector.cc
@@ -178,6 +178,11 @@ bool GestureDetector::OnTouchEvent(const MotionEvent& ev) {
switch (action) {
case MotionEvent::ACTION_NONE:
+ case MotionEvent::ACTION_HOVER_ENTER:
+ case MotionEvent::ACTION_HOVER_EXIT:
+ case MotionEvent::ACTION_HOVER_MOVE:
+ case MotionEvent::ACTION_BUTTON_PRESS:
+ case MotionEvent::ACTION_BUTTON_RELEASE:
NOTREACHED();
return handled;
« no previous file with comments | « ui/events/blink/blink_event_util.cc ('k') | ui/events/gesture_detection/gesture_event_data_packet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698