| 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 #include "ui/events/event.h" | 5 #include "ui/events/event.h" |
| 6 | 6 |
| 7 #if defined(USE_X11) | 7 #if defined(USE_X11) |
| 8 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
| 9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
| 10 #endif | 10 #endif |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 CASE_TYPE(ET_TOUCH_MOVED); | 67 CASE_TYPE(ET_TOUCH_MOVED); |
| 68 CASE_TYPE(ET_TOUCH_STATIONARY); | 68 CASE_TYPE(ET_TOUCH_STATIONARY); |
| 69 CASE_TYPE(ET_TOUCH_CANCELLED); | 69 CASE_TYPE(ET_TOUCH_CANCELLED); |
| 70 CASE_TYPE(ET_DROP_TARGET_EVENT); | 70 CASE_TYPE(ET_DROP_TARGET_EVENT); |
| 71 CASE_TYPE(ET_TRANSLATED_KEY_PRESS); | 71 CASE_TYPE(ET_TRANSLATED_KEY_PRESS); |
| 72 CASE_TYPE(ET_TRANSLATED_KEY_RELEASE); | 72 CASE_TYPE(ET_TRANSLATED_KEY_RELEASE); |
| 73 CASE_TYPE(ET_GESTURE_SCROLL_BEGIN); | 73 CASE_TYPE(ET_GESTURE_SCROLL_BEGIN); |
| 74 CASE_TYPE(ET_GESTURE_SCROLL_END); | 74 CASE_TYPE(ET_GESTURE_SCROLL_END); |
| 75 CASE_TYPE(ET_GESTURE_SCROLL_UPDATE); | 75 CASE_TYPE(ET_GESTURE_SCROLL_UPDATE); |
| 76 CASE_TYPE(ET_GESTURE_SHOW_PRESS); | 76 CASE_TYPE(ET_GESTURE_SHOW_PRESS); |
| 77 CASE_TYPE(ET_GESTURE_WIN8_EDGE_SWIPE); |
| 77 CASE_TYPE(ET_GESTURE_TAP); | 78 CASE_TYPE(ET_GESTURE_TAP); |
| 78 CASE_TYPE(ET_GESTURE_TAP_DOWN); | 79 CASE_TYPE(ET_GESTURE_TAP_DOWN); |
| 79 CASE_TYPE(ET_GESTURE_TAP_CANCEL); | 80 CASE_TYPE(ET_GESTURE_TAP_CANCEL); |
| 80 CASE_TYPE(ET_GESTURE_BEGIN); | 81 CASE_TYPE(ET_GESTURE_BEGIN); |
| 81 CASE_TYPE(ET_GESTURE_END); | 82 CASE_TYPE(ET_GESTURE_END); |
| 82 CASE_TYPE(ET_GESTURE_TWO_FINGER_TAP); | 83 CASE_TYPE(ET_GESTURE_TWO_FINGER_TAP); |
| 83 CASE_TYPE(ET_GESTURE_PINCH_BEGIN); | 84 CASE_TYPE(ET_GESTURE_PINCH_BEGIN); |
| 84 CASE_TYPE(ET_GESTURE_PINCH_END); | 85 CASE_TYPE(ET_GESTURE_PINCH_END); |
| 85 CASE_TYPE(ET_GESTURE_PINCH_UPDATE); | 86 CASE_TYPE(ET_GESTURE_PINCH_UPDATE); |
| 86 CASE_TYPE(ET_GESTURE_LONG_PRESS); | 87 CASE_TYPE(ET_GESTURE_LONG_PRESS); |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 int GestureEvent::GetLowestTouchId() const { | 725 int GestureEvent::GetLowestTouchId() const { |
| 725 if (touch_ids_bitfield_ == 0) | 726 if (touch_ids_bitfield_ == 0) |
| 726 return -1; | 727 return -1; |
| 727 int i = -1; | 728 int i = -1; |
| 728 // Find the index of the least significant 1 bit | 729 // Find the index of the least significant 1 bit |
| 729 while (!(1 << ++i & touch_ids_bitfield_)); | 730 while (!(1 << ++i & touch_ids_bitfield_)); |
| 730 return i; | 731 return i; |
| 731 } | 732 } |
| 732 | 733 |
| 733 } // namespace ui | 734 } // namespace ui |
| OLD | NEW |