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

Unified Diff: ui/events/blink/input_handler_proxy.cc

Issue 2746513002: [Compositor event queue] Queue GestureFlingStart/Cancel together with scroll/pinch (Closed)
Patch Set: dtapuska@'s review 2: Use IsGestureScrollOrFlingOrPinch Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/blink/blink_event_util.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index 9e93d478e93aedff7a48160faadf69ac27caed55..bb002e4d4c61ba4d6ddbad68bd503f1e5e44a3ee 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -311,7 +311,7 @@ void InputHandlerProxy::HandleInputEventWithLatencyInfo(
// Note: Other input can race ahead of gesture input as they don't have to go
// through the queue, but we believe it's OK to do so.
if (!compositor_event_queue_ ||
- !IsGestureScollOrPinch(event_with_callback->event().type())) {
+ !IsGestureScrollOrFlingOrPinch(event_with_callback->event().type())) {
DispatchSingleInputEvent(std::move(event_with_callback),
tick_clock_->NowTicks());
return;
@@ -336,7 +336,7 @@ void InputHandlerProxy::DispatchSingleInputEvent(
std::unique_ptr<EventWithCallback> event_with_callback,
const base::TimeTicks now) {
if (compositor_event_queue_ &&
- IsGestureScollOrPinch(event_with_callback->event().type())) {
+ IsGestureScrollOrFlingOrPinch(event_with_callback->event().type())) {
// Report the coalesced count only for continuous events to avoid the noise
// from non-continuous events.
if (IsContinuousGestureEvent(event_with_callback->event().type())) {
« no previous file with comments | « ui/events/blink/blink_event_util.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698