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

Side by Side Diff: ui/events/event.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/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/events/event.cc » ('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_H_ 5 #ifndef UI_EVENTS_EVENT_H_
6 #define UI_EVENTS_EVENT_H_ 6 #define UI_EVENTS_EVENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 case ET_GESTURE_TAP_CANCEL: 116 case ET_GESTURE_TAP_CANCEL:
117 case ET_GESTURE_TAP_DOWN: 117 case ET_GESTURE_TAP_DOWN:
118 case ET_GESTURE_BEGIN: 118 case ET_GESTURE_BEGIN:
119 case ET_GESTURE_END: 119 case ET_GESTURE_END:
120 case ET_GESTURE_TWO_FINGER_TAP: 120 case ET_GESTURE_TWO_FINGER_TAP:
121 case ET_GESTURE_PINCH_BEGIN: 121 case ET_GESTURE_PINCH_BEGIN:
122 case ET_GESTURE_PINCH_END: 122 case ET_GESTURE_PINCH_END:
123 case ET_GESTURE_PINCH_UPDATE: 123 case ET_GESTURE_PINCH_UPDATE:
124 case ET_GESTURE_LONG_PRESS: 124 case ET_GESTURE_LONG_PRESS:
125 case ET_GESTURE_LONG_TAP: 125 case ET_GESTURE_LONG_TAP:
126 case ET_GESTURE_MULTIFINGER_SWIPE: 126 case ET_GESTURE_SWIPE:
127 case ET_GESTURE_SHOW_PRESS: 127 case ET_GESTURE_SHOW_PRESS:
128 case ET_GESTURE_WIN8_EDGE_SWIPE: 128 case ET_GESTURE_WIN8_EDGE_SWIPE:
129 // When adding a gesture event which is paired with an event which 129 // When adding a gesture event which is paired with an event which
130 // occurs earlier, add the event to |IsEndingEvent|. 130 // occurs earlier, add the event to |IsEndingEvent|.
131 return true; 131 return true;
132 132
133 case ET_SCROLL_FLING_CANCEL: 133 case ET_SCROLL_FLING_CANCEL:
134 case ET_SCROLL_FLING_START: 134 case ET_SCROLL_FLING_START:
135 // These can be ScrollEvents too. EF_FROM_TOUCH determines if they're 135 // These can be ScrollEvents too. EF_FROM_TOUCH determines if they're
136 // Gesture or Scroll events. 136 // Gesture or Scroll events.
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 // The set of indices of ones in the binary representation of 665 // The set of indices of ones in the binary representation of
666 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture. 666 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture.
667 // This value is stored as a bitfield because the number of touch ids varies, 667 // This value is stored as a bitfield because the number of touch ids varies,
668 // but we currently don't need more than 32 touches at a time. 668 // but we currently don't need more than 32 touches at a time.
669 const unsigned int touch_ids_bitfield_; 669 const unsigned int touch_ids_bitfield_;
670 }; 670 };
671 671
672 } // namespace ui 672 } // namespace ui
673 673
674 #endif // UI_EVENTS_EVENT_H_ 674 #endif // UI_EVENTS_EVENT_H_
OLDNEW
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698