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

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

Issue 2636583002: UMA metrics for fractions of wheel and touch scrolls blocked on the main thread. (Closed)
Patch Set: Histogram names used directly instead of being stored in a const char* Created 3 years, 11 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 | « tools/metrics/histograms/histograms.xml ('k') | ui/events/blink/input_handler_proxy.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.h
diff --git a/ui/events/blink/input_handler_proxy.h b/ui/events/blink/input_handler_proxy.h
index 6f86d22ad5378782323b8d32429af0fddef7c3ea..59277bbed7a34b3a3ffda6dca355b4096f3ceaf8 100644
--- a/ui/events/blink/input_handler_proxy.h
+++ b/ui/events/blink/input_handler_proxy.h
@@ -117,6 +117,8 @@ class InputHandlerProxy
protected:
void RecordMainThreadScrollingReasons(blink::WebGestureDevice device,
uint32_t reasons);
+ void RecordScrollingThreadStatus(blink::WebGestureDevice device,
+ uint32_t reasons);
private:
friend class test::InputHandlerProxyTest;
@@ -244,6 +246,10 @@ class InputHandlerProxy
// passive events not to block scrolling.
int32_t touch_start_result_;
+ // The result of the last mouse wheel event. This value is used to determine
+ // whether the next wheel scroll is blocked on the Main thread or not.
+ int32_t mouse_wheel_result_;
+
base::TimeTicks last_fling_animate_time_;
// Used to record overscroll notifications while an event is being
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698