| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/renderer_host/input/gesture_event_queue.h" | 5 #include "content/browser/renderer_host/input/gesture_event_queue.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/trace_event/trace_event.h" |
| 8 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" | 8 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" |
| 9 #include "content/browser/renderer_host/input/touchscreen_tap_suppression_contro
ller.h" | 9 #include "content/browser/renderer_host/input/touchscreen_tap_suppression_contro
ller.h" |
| 10 | 10 |
| 11 using blink::WebGestureEvent; | 11 using blink::WebGestureEvent; |
| 12 using blink::WebInputEvent; | 12 using blink::WebInputEvent; |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // Whether |event_in_queue| is GesturePinchUpdate or GestureScrollUpdate and | 17 // Whether |event_in_queue| is GesturePinchUpdate or GestureScrollUpdate and |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 return 0; | 389 return 0; |
| 390 | 390 |
| 391 if (!ignore_next_ack_) | 391 if (!ignore_next_ack_) |
| 392 return 1; | 392 return 1; |
| 393 | 393 |
| 394 DCHECK_GT(coalesced_gesture_events_.size(), 1U); | 394 DCHECK_GT(coalesced_gesture_events_.size(), 1U); |
| 395 return 2; | 395 return 2; |
| 396 } | 396 } |
| 397 | 397 |
| 398 } // namespace content | 398 } // namespace content |
| OLD | NEW |