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

Unified Diff: content/browser/renderer_host/input/web_input_event_util.cc

Issue 223673006: Support GestureBegin and GestureEnd in ui::GestureProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke's comments. Created 6 years, 9 months 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/web_input_event_util.cc
diff --git a/content/browser/renderer_host/input/web_input_event_util.cc b/content/browser/renderer_host/input/web_input_event_util.cc
index 75e762cce9bbe95df1463fc90d8be588c19250e6..37a0d60e7c29b0b048529df978ececb33bf2b111 100644
--- a/content/browser/renderer_host/input/web_input_event_util.cc
+++ b/content/browser/renderer_host/input/web_input_event_util.cc
@@ -331,6 +331,11 @@ WebGestureEvent CreateWebGestureEventFromGestureEventData(
gesture.data.tapDown.height =
data.details.bounding_box_f().height() * scale;
break;
+ case ui::ET_GESTURE_BEGIN:
+ case ui::ET_GESTURE_END:
+ NOTREACHED() << "ET_GESTURE_BEGIN and ET_GESTURE_END are only produced "
+ << "in Aura, and should never end up here.";
+ break;
default:
NOTREACHED() << "ui::EventType provided wasn't a valid gesture event.";
break;

Powered by Google App Engine
This is Rietveld 408576698