Index: third_party/WebKit/Source/core/input/TouchEventManager.cpp |
diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.cpp b/third_party/WebKit/Source/core/input/TouchEventManager.cpp |
index 5fbb1139f481d6dcf3bea6dfe89f759b3deb01d4..ea2918eecb35fac9e51f3cb364ff9a8fec75046a 100644 |
--- a/third_party/WebKit/Source/core/input/TouchEventManager.cpp |
+++ b/third_party/WebKit/Source/core/input/TouchEventManager.cpp |
@@ -251,6 +251,12 @@ WebInputEventResult TouchEventManager::dispatchTouchEvents( |
DEFINE_STATIC_LOCAL(EnumerationHistogram, touchDispositionsBeforePageLoadHistogram, ("Event.Touch.TouchDispositionsBeforePageLoad", TouchEventDispatchResultTypeMax)); |
touchDispositionsBeforePageLoadHistogram.count((domDispatchResult != DispatchEventResult::NotCanceled) ? HandledTouches : UnhandledTouches); |
} |
+ |
+ // Count the handled touch starts while there is an active fling animation. |
+ if (event.type() == PlatformEvent::TouchStart && event.dispatchedDuringFling()) { |
tdresser
2016/05/09 19:48:45
Record another histogram for when events are dispa
lanwei
2016/05/12 11:50:36
Done.
|
+ DEFINE_STATIC_LOCAL(EnumerationHistogram, touchDispositionsDuringFlingHistogram, ("Event.Touch.TouchDispositionsDuringFling", TouchEventDispatchResultTypeMax)); |
+ touchDispositionsDuringFlingHistogram.count((domDispatchResult != DispatchEventResult::NotCanceled) ? HandledTouches : UnhandledTouches); |
+ } |
} |
eventResult = EventHandler::mergeEventResult(eventResult, |
EventHandler::toWebInputEventResult(domDispatchResult)); |