| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 WebGestureEvent_h | 5 #ifndef WebGestureEvent_h |
| 6 #define WebGestureEvent_h | 6 #define WebGestureEvent_h |
| 7 | 7 |
| 8 #include "WebFloatSize.h" | 8 #include "WebFloatSize.h" |
| 9 #include "WebGestureDevice.h" | 9 #include "WebGestureDevice.h" |
| 10 #include "WebInputEvent.h" | 10 #include "WebInputEvent.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 DCHECK(m_type == WebInputEvent::GestureScrollUpdate); | 197 DCHECK(m_type == WebInputEvent::GestureScrollUpdate); |
| 198 return true; | 198 return true; |
| 199 } | 199 } |
| 200 | 200 |
| 201 bool isScrollEvent() const { | 201 bool isScrollEvent() const { |
| 202 switch (m_type) { | 202 switch (m_type) { |
| 203 case GestureScrollBegin: | 203 case GestureScrollBegin: |
| 204 case GestureScrollEnd: | 204 case GestureScrollEnd: |
| 205 case GestureScrollUpdate: | 205 case GestureScrollUpdate: |
| 206 case GestureFlingStart: | 206 case GestureFlingStart: |
| 207 case GestureFlingCancel: |
| 207 case GesturePinchBegin: | 208 case GesturePinchBegin: |
| 208 case GesturePinchEnd: | 209 case GesturePinchEnd: |
| 209 case GesturePinchUpdate: | 210 case GesturePinchUpdate: |
| 210 return true; | 211 return true; |
| 211 case GestureTap: | 212 case GestureTap: |
| 212 case GestureTapUnconfirmed: | 213 case GestureTapUnconfirmed: |
| 213 case GestureTapDown: | 214 case GestureTapDown: |
| 214 case GestureShowPress: | 215 case GestureShowPress: |
| 215 case GestureTapCancel: | 216 case GestureTapCancel: |
| 216 case GestureTwoFingerTap: | 217 case GestureTwoFingerTap: |
| 217 case GestureLongPress: | 218 case GestureLongPress: |
| 218 case GestureLongTap: | 219 case GestureLongTap: |
| 219 return false; | 220 return false; |
| 220 default: | 221 default: |
| 221 NOTREACHED(); | 222 NOTREACHED(); |
| 222 return false; | 223 return false; |
| 223 } | 224 } |
| 224 } | 225 } |
| 225 | 226 |
| 226 #endif | 227 #endif |
| 227 }; | 228 }; |
| 228 | 229 |
| 229 #pragma pack(pop) | 230 #pragma pack(pop) |
| 230 | 231 |
| 231 } // namespace blink | 232 } // namespace blink |
| 232 | 233 |
| 233 #endif // WebGestureEvent_h | 234 #endif // WebGestureEvent_h |
| OLD | NEW |