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 <bitset> | 7 #include <bitset> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 DCHECK(event); | 314 DCHECK(event); |
315 Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event); | 315 Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event); |
316 } | 316 } |
317 | 317 |
318 bool WebInputEventTraits::IgnoresAckDisposition( | 318 bool WebInputEventTraits::IgnoresAckDisposition( |
319 blink::WebInputEvent::Type type) { | 319 blink::WebInputEvent::Type type) { |
320 switch (type) { | 320 switch (type) { |
321 case WebInputEvent::GestureTapDown: | 321 case WebInputEvent::GestureTapDown: |
322 case WebInputEvent::GestureShowPress: | 322 case WebInputEvent::GestureShowPress: |
323 case WebInputEvent::GestureTapCancel: | 323 case WebInputEvent::GestureTapCancel: |
| 324 case WebInputEvent::GestureTap: |
324 case WebInputEvent::GesturePinchBegin: | 325 case WebInputEvent::GesturePinchBegin: |
325 case WebInputEvent::GesturePinchEnd: | 326 case WebInputEvent::GesturePinchEnd: |
326 case WebInputEvent::GestureScrollBegin: | 327 case WebInputEvent::GestureScrollBegin: |
327 case WebInputEvent::GestureScrollEnd: | 328 case WebInputEvent::GestureScrollEnd: |
328 case WebInputEvent::TouchCancel: | 329 case WebInputEvent::TouchCancel: |
329 case WebInputEvent::MouseDown: | 330 case WebInputEvent::MouseDown: |
330 case WebInputEvent::MouseUp: | 331 case WebInputEvent::MouseUp: |
331 case WebInputEvent::MouseEnter: | 332 case WebInputEvent::MouseEnter: |
332 case WebInputEvent::MouseLeave: | 333 case WebInputEvent::MouseLeave: |
333 case WebInputEvent::ContextMenu: | 334 case WebInputEvent::ContextMenu: |
334 return true; | 335 return true; |
335 default: | 336 default: |
336 break; | 337 break; |
337 } | 338 } |
338 return false; | 339 return false; |
339 } | 340 } |
340 | 341 |
341 } // namespace content | 342 } // namespace content |
OLD | NEW |