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

Side by Side Diff: ui/events/event_constants.h

Issue 302463004: Implementing the dispatch of the swipe gesture for one-finger touch swipes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implementing review feedback. Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/gesture_detection/gesture_detector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_ 5 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_
6 #define UI_EVENTS_EVENT_CONSTANTS_H_ 6 #define UI_EVENTS_EVENT_CONSTANTS_H_
7 7
8 namespace ui { 8 namespace ui {
9 9
10 // Event types. (prefixed because of a conflict with windows headers) 10 // Event types. (prefixed because of a conflict with windows headers)
(...skipping 28 matching lines...) Expand all
39 ET_GESTURE_TAP_UNCONFIRMED, // User tapped, but the tap delay hasn't expired. 39 ET_GESTURE_TAP_UNCONFIRMED, // User tapped, but the tap delay hasn't expired.
40 ET_GESTURE_DOUBLE_TAP, 40 ET_GESTURE_DOUBLE_TAP,
41 ET_GESTURE_BEGIN, // Sent before any other gesture types. 41 ET_GESTURE_BEGIN, // Sent before any other gesture types.
42 ET_GESTURE_END, // Sent after any other gestures. 42 ET_GESTURE_END, // Sent after any other gestures.
43 ET_GESTURE_TWO_FINGER_TAP, 43 ET_GESTURE_TWO_FINGER_TAP,
44 ET_GESTURE_PINCH_BEGIN, 44 ET_GESTURE_PINCH_BEGIN,
45 ET_GESTURE_PINCH_END, 45 ET_GESTURE_PINCH_END,
46 ET_GESTURE_PINCH_UPDATE, 46 ET_GESTURE_PINCH_UPDATE,
47 ET_GESTURE_LONG_PRESS, 47 ET_GESTURE_LONG_PRESS,
48 ET_GESTURE_LONG_TAP, 48 ET_GESTURE_LONG_TAP,
49 // A SWIPE gesture can happen at the end of a TAP_UP gesture if the 49 // A SWIPE gesture can happen at the end of a touch sequence involving one or
50 // finger(s) were moving quickly before they are released. 50 // more fingers if the finger velocity was high enough when the first finger
51 ET_GESTURE_MULTIFINGER_SWIPE, 51 // was released.
52 ET_GESTURE_SWIPE,
52 ET_GESTURE_SHOW_PRESS, 53 ET_GESTURE_SHOW_PRESS,
53 54
54 // Sent by Win8+ metro when the user swipes from the bottom or top. 55 // Sent by Win8+ metro when the user swipes from the bottom or top.
55 ET_GESTURE_WIN8_EDGE_SWIPE, 56 ET_GESTURE_WIN8_EDGE_SWIPE,
56 57
57 // Scroll support. 58 // Scroll support.
58 // TODO[davemoore] we need to unify these events w/ touch and gestures. 59 // TODO[davemoore] we need to unify these events w/ touch and gestures.
59 ET_SCROLL, 60 ET_SCROLL,
60 ET_SCROLL_FLING_START, 61 ET_SCROLL_FLING_START,
61 ET_SCROLL_FLING_CANCEL, 62 ET_SCROLL_FLING_CANCEL,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 EP_PREDISPATCH, 126 EP_PREDISPATCH,
126 EP_PRETARGET, 127 EP_PRETARGET,
127 EP_TARGET, 128 EP_TARGET,
128 EP_POSTTARGET, 129 EP_POSTTARGET,
129 EP_POSTDISPATCH 130 EP_POSTDISPATCH
130 }; 131 };
131 132
132 } // namespace ui 133 } // namespace ui
133 134
134 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 135 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/gesture_detection/gesture_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698