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

Unified Diff: content/renderer/input/render_widget_input_handler.cc

Issue 1894363004: Articulate the cancel behavior in WebMouseWheelEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_all_passive
Patch Set: Created 4 years, 8 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
Index: content/renderer/input/render_widget_input_handler.cc
diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc
index c18ce7c705be3dc249e8c4e9e24d4927af4b71a2..92b6d9497a499232f997630b8d68493ec88231fe 100644
--- a/content/renderer/input/render_widget_input_handler.cc
+++ b/content/renderer/input/render_widget_input_handler.cc
@@ -327,14 +327,10 @@ void RenderWidgetInputHandler::HandleInputEvent(
processed, static_cast<const WebTouchEvent&>(input_event).dispatchType,
input_event.timeStampSeconds, latency_info);
} else if (input_event.type == WebInputEvent::MouseWheel) {
- bool non_blocking =
- dispatch_type ==
- InputEventDispatchType::DISPATCH_TYPE_NON_BLOCKING_NOTIFY_MAIN ||
- dispatch_type == InputEventDispatchType::DISPATCH_TYPE_NON_BLOCKING;
- LogPassiveEventListenersUma(processed,
- non_blocking ? WebInputEvent::EventNonBlocking
- : WebInputEvent::Blocking,
- input_event.timeStampSeconds, latency_info);
+ LogPassiveEventListenersUma(
+ processed,
+ static_cast<const WebMouseWheelEvent&>(input_event).dispatchType,
+ input_event.timeStampSeconds, latency_info);
}
// If this RawKeyDown event corresponds to a browser keyboard shortcut and

Powered by Google App Engine
This is Rietveld 408576698