| 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/trace_event/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 #include "content/common/input/web_input_event_traits.h" |
| 10 | 11 |
| 11 using blink::WebGestureEvent; | 12 using blink::WebGestureEvent; |
| 12 using blink::WebInputEvent; | 13 using blink::WebInputEvent; |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 // Whether |event_in_queue| is GesturePinchUpdate or GestureScrollUpdate and | 18 // Whether |event_in_queue| is GesturePinchUpdate or GestureScrollUpdate and |
| 18 // has the same modifiers/source as the new scroll/pinch event. Compatible | 19 // has the same modifiers/source as the new scroll/pinch event. Compatible |
| 19 // scroll and pinch event pairs can be logically coalesced. | 20 // scroll and pinch event pairs can be logically coalesced. |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 return 0; | 411 return 0; |
| 411 | 412 |
| 412 if (!ignore_next_ack_) | 413 if (!ignore_next_ack_) |
| 413 return 1; | 414 return 1; |
| 414 | 415 |
| 415 DCHECK_GT(coalesced_gesture_events_.size(), 1U); | 416 DCHECK_GT(coalesced_gesture_events_.size(), 1U); |
| 416 return 2; | 417 return 2; |
| 417 } | 418 } |
| 418 | 419 |
| 419 } // namespace content | 420 } // namespace content |
| OLD | NEW |