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

Unified Diff: content/browser/renderer_host/input/stylus_text_selector.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
Index: content/browser/renderer_host/input/stylus_text_selector.cc
diff --git a/content/browser/renderer_host/input/stylus_text_selector.cc b/content/browser/renderer_host/input/stylus_text_selector.cc
index 5af89606c47af2a4c6a54a998d640ebcacf15cd1..a9bff878be73b352625bd65cd2eac7d23b2b8c31 100644
--- a/content/browser/renderer_host/input/stylus_text_selector.cc
+++ b/content/browser/renderer_host/input/stylus_text_selector.cc
@@ -89,6 +89,11 @@ bool StylusTextSelector::OnTouchEvent(const MotionEvent& event) {
case MotionEvent::ACTION_POINTER_DOWN:
break;
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();
break;
}

Powered by Google App Engine
This is Rietveld 408576698