| 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 "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 Loading... |
| 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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 // The set of indices of ones in the binary representation of | 682 // The set of indices of ones in the binary representation of |
| 683 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture. | 683 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture. |
| 684 // This value is stored as a bitfield because the number of touch ids varies, | 684 // This value is stored as a bitfield because the number of touch ids varies, |
| 685 // but we currently don't need more than 32 touches at a time. | 685 // but we currently don't need more than 32 touches at a time. |
| 686 const unsigned int touch_ids_bitfield_; | 686 const unsigned int touch_ids_bitfield_; |
| 687 }; | 687 }; |
| 688 | 688 |
| 689 } // namespace ui | 689 } // namespace ui |
| 690 | 690 |
| 691 #endif // UI_EVENTS_EVENT_H_ | 691 #endif // UI_EVENTS_EVENT_H_ |
| OLD | NEW |