Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index b2f519640487e074aacef9a69bc6cf000f1a93ab..472d737e0ffc4b50ff01202123412dde97ec91b8 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -4012,6 +4012,17 @@ void WebViewImpl::applyViewportDeltas( |
mainFrameImpl()->frameView()->didUpdateElasticOverscroll(); |
} |
+void WebViewImpl::recordWheelAndTouchScrollingCount(bool hasScrolledByWheel, |
+ bool hasScrolledByTouch) { |
+ if (!page() || !page()->mainFrame()) |
+ return; |
+ |
+ if (hasScrolledByWheel) |
+ UseCounter::count(page()->mainFrame(), UseCounter::ScrollByWheel); |
+ if (hasScrolledByTouch) |
+ UseCounter::count(page()->mainFrame(), UseCounter::ScrollByTouch); |
+} |
+ |
void WebViewImpl::updateLayerTreeViewport() { |
if (!page() || !m_layerTreeView) |
return; |