| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 case ET_GESTURE_BEGIN: | 150 case ET_GESTURE_BEGIN: |
| 151 case ET_GESTURE_END: | 151 case ET_GESTURE_END: |
| 152 case ET_GESTURE_TWO_FINGER_TAP: | 152 case ET_GESTURE_TWO_FINGER_TAP: |
| 153 case ET_GESTURE_PINCH_BEGIN: | 153 case ET_GESTURE_PINCH_BEGIN: |
| 154 case ET_GESTURE_PINCH_END: | 154 case ET_GESTURE_PINCH_END: |
| 155 case ET_GESTURE_PINCH_UPDATE: | 155 case ET_GESTURE_PINCH_UPDATE: |
| 156 case ET_GESTURE_LONG_PRESS: | 156 case ET_GESTURE_LONG_PRESS: |
| 157 case ET_GESTURE_LONG_TAP: | 157 case ET_GESTURE_LONG_TAP: |
| 158 case ET_GESTURE_SWIPE: | 158 case ET_GESTURE_SWIPE: |
| 159 case ET_GESTURE_SHOW_PRESS: | 159 case ET_GESTURE_SHOW_PRESS: |
| 160 case ET_GESTURE_WIN8_EDGE_SWIPE: | |
| 161 // When adding a gesture event which is paired with an event which | 160 // When adding a gesture event which is paired with an event which |
| 162 // occurs earlier, add the event to |IsEndingEvent|. | 161 // occurs earlier, add the event to |IsEndingEvent|. |
| 163 return true; | 162 return true; |
| 164 | 163 |
| 165 case ET_SCROLL_FLING_CANCEL: | 164 case ET_SCROLL_FLING_CANCEL: |
| 166 case ET_SCROLL_FLING_START: | 165 case ET_SCROLL_FLING_START: |
| 167 // These can be ScrollEvents too. EF_FROM_TOUCH determines if they're | 166 // These can be ScrollEvents too. EF_FROM_TOUCH determines if they're |
| 168 // Gesture or Scroll events. | 167 // Gesture or Scroll events. |
| 169 return (flags_ & EF_FROM_TOUCH) == EF_FROM_TOUCH; | 168 return (flags_ & EF_FROM_TOUCH) == EF_FROM_TOUCH; |
| 170 | 169 |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 // dispatched. This field gets a non-zero value only for gestures that are | 1030 // dispatched. This field gets a non-zero value only for gestures that are |
| 1032 // released through TouchDispositionGestureFilter::SendGesture. The gesture | 1031 // released through TouchDispositionGestureFilter::SendGesture. The gesture |
| 1033 // events that aren't fired directly in response to processing a touch-event | 1032 // events that aren't fired directly in response to processing a touch-event |
| 1034 // (e.g. timer fired ones), this id is zero. See crbug.com/618738. | 1033 // (e.g. timer fired ones), this id is zero. See crbug.com/618738. |
| 1035 uint32_t unique_touch_event_id_; | 1034 uint32_t unique_touch_event_id_; |
| 1036 }; | 1035 }; |
| 1037 | 1036 |
| 1038 } // namespace ui | 1037 } // namespace ui |
| 1039 | 1038 |
| 1040 #endif // UI_EVENTS_EVENT_H_ | 1039 #endif // UI_EVENTS_EVENT_H_ |
| OLD | NEW |