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

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

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor and rename Created 4 years, 7 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: ui/events/blink/input_handler_proxy.h
diff --git a/ui/events/blink/input_handler_proxy.h b/ui/events/blink/input_handler_proxy.h
index e047cdfe10a4dbacdf5ba5d492504a905d2ae172..f5dd15fb71fa9f59a78d0a68be55689cd1b52553 100644
--- a/ui/events/blink/input_handler_proxy.h
+++ b/ui/events/blink/input_handler_proxy.h
@@ -92,6 +92,10 @@ class InputHandlerProxy
return gesture_scroll_on_impl_thread_;
}
+ bool isFlinging() const {
+ return (!!fling_curve_) || fling_may_be_active_on_main_thread_;
+ }
+
protected:
void RecordMainThreadScrollingReasons(blink::WebInputEvent::Type type,
uint32_t reasons);
« third_party/WebKit/public/web/WebInputEvent.h ('K') | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698