OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/common/input/web_input_event_traits.h" | 5 #include "content/common/input/web_input_event_traits.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 using blink::WebGestureEvent; | 9 using blink::WebGestureEvent; |
10 using blink::WebInputEvent; | 10 using blink::WebInputEvent; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 DCHECK(event); | 282 DCHECK(event); |
283 Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event); | 283 Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event); |
284 } | 284 } |
285 | 285 |
286 bool WebInputEventTraits::IgnoresAckDisposition( | 286 bool WebInputEventTraits::IgnoresAckDisposition( |
287 blink::WebInputEvent::Type type) { | 287 blink::WebInputEvent::Type type) { |
288 switch (type) { | 288 switch (type) { |
289 case WebInputEvent::GestureTapDown: | 289 case WebInputEvent::GestureTapDown: |
290 case WebInputEvent::GestureShowPress: | 290 case WebInputEvent::GestureShowPress: |
291 case WebInputEvent::GestureTapCancel: | 291 case WebInputEvent::GestureTapCancel: |
| 292 case WebInputEvent::GestureTap: |
292 case WebInputEvent::GesturePinchBegin: | 293 case WebInputEvent::GesturePinchBegin: |
293 case WebInputEvent::GesturePinchEnd: | 294 case WebInputEvent::GesturePinchEnd: |
294 case WebInputEvent::GestureScrollBegin: | 295 case WebInputEvent::GestureScrollBegin: |
295 case WebInputEvent::GestureScrollEnd: | 296 case WebInputEvent::GestureScrollEnd: |
296 case WebInputEvent::TouchCancel: | 297 case WebInputEvent::TouchCancel: |
297 case WebInputEvent::MouseDown: | 298 case WebInputEvent::MouseDown: |
298 case WebInputEvent::MouseUp: | 299 case WebInputEvent::MouseUp: |
299 case WebInputEvent::MouseEnter: | 300 case WebInputEvent::MouseEnter: |
300 case WebInputEvent::MouseLeave: | 301 case WebInputEvent::MouseLeave: |
301 case WebInputEvent::ContextMenu: | 302 case WebInputEvent::ContextMenu: |
302 return true; | 303 return true; |
303 default: | 304 default: |
304 break; | 305 break; |
305 } | 306 } |
306 return false; | 307 return false; |
307 } | 308 } |
308 | 309 |
309 } // namespace content | 310 } // namespace content |
OLD | NEW |