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

Unified Diff: ui/events/event_utils.cc

Issue 2189583004: [not for review - epic CL] Adding Elastic+Momentum+Layered scrolling to views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combined rebase Created 4 years, 5 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/event_utils.cc
diff --git a/ui/events/event_utils.cc b/ui/events/event_utils.cc
index 2e34a82477e0ed6a591b0e325c4a7d1dd34a4a71..2c3feaad95f2912b6171d45debe8b956e6a198ce 100644
--- a/ui/events/event_utils.cc
+++ b/ui/events/event_utils.cc
@@ -110,6 +110,11 @@ void ComputeEventLatencyOS(const base::NativeEvent& native_event) {
EventType type = EventTypeFromNative(native_event);
switch (type) {
+#if defined(OS_MACOSX)
+ // ui::MouseWheelEvent is too basic to represent a NSScrollWheel event, so
+ // it is wrapped in a ui::ScrollEvent, but recorded the same in UMA.
+ case ET_SCROLL:
+#endif
case ET_MOUSEWHEEL:
UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.MOUSE_WHEEL",
delta.InMicroseconds(), 1, 1000000, 50);

Powered by Google App Engine
This is Rietveld 408576698