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

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: Rebase 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 c316cb93262a1caebd415ced69dd23ab6b1ab183..3d793bb66e161b15a01cc1f6732cdcf50c3fe820 100644
--- a/content/renderer/input/render_widget_input_handler.cc
+++ b/content/renderer/input/render_widget_input_handler.cc
@@ -328,14 +328,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
« no previous file with comments | « content/renderer/input/main_thread_event_queue_unittest.cc ('k') | third_party/WebKit/Source/core/events/WheelEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698