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

Unified Diff: content/browser/android/gesture_event_type.h

Issue 617103007: Revert of Revert of Use the new java_cpp_enum rule in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/android/gesture_event_type.h
diff --git a/content/browser/android/gesture_event_type.h b/content/browser/android/gesture_event_type.h
index d41311c7598062491ee3aa4692e134cf6a81af53..ce87c901db327a70759f62072b221168925608f2 100644
--- a/content/browser/android/gesture_event_type.h
+++ b/content/browser/android/gesture_event_type.h
@@ -7,10 +7,31 @@
namespace content {
+// This file contains a list of GestureEventType's usable by ContentViewCore,
+// providing a direct mapping to and from their corresponding
+// blink::WebGestureEvent types.
+//
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content.browser
enum GestureEventType {
-#define DEFINE_GESTURE_EVENT_TYPE(name, value) name = value,
-#include "content/browser/android/gesture_event_type_list.h"
-#undef DEFINE_GESTURE_EVENT_TYPE
+ GESTURE_EVENT_TYPE_SHOW_PRESS,
+ GESTURE_EVENT_TYPE_DOUBLE_TAP,
+ GESTURE_EVENT_TYPE_SINGLE_TAP_UP,
+ GESTURE_EVENT_TYPE_SINGLE_TAP_CONFIRMED,
+ GESTURE_EVENT_TYPE_SINGLE_TAP_UNCONFIRMED,
+ GESTURE_EVENT_TYPE_LONG_PRESS,
+ GESTURE_EVENT_TYPE_SCROLL_START,
+ GESTURE_EVENT_TYPE_SCROLL_BY,
+ GESTURE_EVENT_TYPE_SCROLL_END,
+ GESTURE_EVENT_TYPE_FLING_START,
+ GESTURE_EVENT_TYPE_FLING_CANCEL,
+ GESTURE_EVENT_TYPE_FLING_END,
+ GESTURE_EVENT_TYPE_PINCH_BEGIN,
+ GESTURE_EVENT_TYPE_PINCH_BY,
+ GESTURE_EVENT_TYPE_PINCH_END,
+ GESTURE_EVENT_TYPE_TAP_CANCEL,
+ GESTURE_EVENT_TYPE_LONG_TAP,
+ GESTURE_EVENT_TYPE_TAP_DOWN,
};
} // namespace content
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/android/gesture_event_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698