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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: TODO for GRC usage added. Created 3 years, 9 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 | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698