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

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

Issue 150983003: [Android] Share gesture types between Java and C++ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really fix WebView Created 6 years, 10 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
« no previous file with comments | « content/browser/android/gesture_event_type.h ('k') | content/content.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/gesture_event_type_list.h
diff --git a/content/browser/android/gesture_event_type_list.h b/content/browser/android/gesture_event_type_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..dcaa3a3ae7c91fd5f07f0debd0a2969c8b17504e
--- /dev/null
+++ b/content/browser/android/gesture_event_type_list.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file intentionally does not have header guards because this file
+// is meant to be included inside a macro to generate enum values.
+
+// This file contains a list of GestureEventType's that are created by
+// ContentViewGestureHandler and dispatched from ContentViewCore.
+// They can be directly mapped to and from their corresponding
+// blink::WebGestureEvent types.
+
+#ifndef DEFINE_GESTURE_EVENT_TYPE
+#error "Please define DEFINE_GESTURE_EVENT_TYPE before including this file."
+#endif
+
+DEFINE_GESTURE_EVENT_TYPE(SHOW_PRESS, 0)
+DEFINE_GESTURE_EVENT_TYPE(DOUBLE_TAP, 1)
+DEFINE_GESTURE_EVENT_TYPE(SINGLE_TAP_UP, 2)
+DEFINE_GESTURE_EVENT_TYPE(SINGLE_TAP_CONFIRMED, 3)
+DEFINE_GESTURE_EVENT_TYPE(SINGLE_TAP_UNCONFIRMED, 4)
+DEFINE_GESTURE_EVENT_TYPE(LONG_PRESS, 5)
+DEFINE_GESTURE_EVENT_TYPE(SCROLL_START, 6)
+DEFINE_GESTURE_EVENT_TYPE(SCROLL_BY, 7)
+DEFINE_GESTURE_EVENT_TYPE(SCROLL_END, 8)
+DEFINE_GESTURE_EVENT_TYPE(FLING_START, 9)
+DEFINE_GESTURE_EVENT_TYPE(FLING_CANCEL, 10)
+DEFINE_GESTURE_EVENT_TYPE(FLING_END, 11)
+DEFINE_GESTURE_EVENT_TYPE(PINCH_BEGIN, 12)
+DEFINE_GESTURE_EVENT_TYPE(PINCH_BY, 13)
+DEFINE_GESTURE_EVENT_TYPE(PINCH_END, 14)
+DEFINE_GESTURE_EVENT_TYPE(TAP_CANCEL, 15)
+DEFINE_GESTURE_EVENT_TYPE(LONG_TAP, 16)
+DEFINE_GESTURE_EVENT_TYPE(TAP_DOWN, 17)
« no previous file with comments | « content/browser/android/gesture_event_type.h ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698