summaryrefslogtreecommitdiffstats
path: root/ui/base/events.h
diff options
context:
space:
mode:
authorvollick@google.com <vollick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 15:03:00 +0000
committervollick@google.com <vollick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 15:03:00 +0000
commit6084b45328f06ac4eed830fe2eaaaf577a989d4e (patch)
treed394ced52c2131913f0fefba4d5677b5c8b94924 /ui/base/events.h
parent30105e54695a5f2ef5aada7379a51bb0f90c2c62 (diff)
downloadchromium_src-6084b45328f06ac4eed830fe2eaaaf577a989d4e.zip
chromium_src-6084b45328f06ac4eed830fe2eaaaf577a989d4e.tar.gz
chromium_src-6084b45328f06ac4eed830fe2eaaaf577a989d4e.tar.bz2
Initial views touchui Gesture Recognizer support
This is just a merge of Gajen's patch (http://codereview.chromium.org/8364039/) with ToT. BUG=101645 TEST=views_unittest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117869 Review URL: https://chromiumcodereview.appspot.com/9076002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/events.h')
-rw-r--r--ui/base/events.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/ui/base/events.h b/ui/base/events.h
index 62bebf4..2128df5 100644
--- a/ui/base/events.h
+++ b/ui/base/events.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -38,6 +38,14 @@ enum EventType {
ET_SCROLL,
ET_TRANSLATED_KEY_PRESS,
ET_TRANSLATED_KEY_RELEASE,
+
+ // GestureEvent types
+ ET_GESTURE_SCROLL_BEGIN,
+ ET_GESTURE_SCROLL_END,
+ ET_GESTURE_SCROLL_UPDATE,
+ ET_GESTURE_TAP,
+ ET_GESTURE_TAP_DOWN,
+ ET_GESTURE_DOUBLE_TAP,
};
// Event flags currently supported
@@ -76,6 +84,16 @@ enum TouchStatus {
// Updates the list of devices for cached properties.
UI_EXPORT void UpdateDeviceList();
+enum GestureStatus {
+ GESTURE_STATUS_UNKNOWN = 0, // Unknown Gesture status. This is used to
+ // indicate that the Gesture event was not
+ // handled.
+ GESTURE_STATUS_CONSUMED, // The Gesture event got consumed.
+ GESTURE_STATUS_SYNTH_MOUSE // The Gesture event was not processed, but a
+ // synthetic mouse event generated from the
+ // unused Gesture event was handled.
+};
+
// Get the EventType from a native event.
UI_EXPORT EventType EventTypeFromNative(const base::NativeEvent& native_event);