Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: content/browser/renderer_host/input/gesture_event_queue.cc

Issue 2091213002: Decouple EventWithLatencyInfo and WebInputEventTraits [extern templates] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reference a better bug Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698