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

Side by Side Diff: third_party/WebKit/Source/web/WebViewFrameWidget.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #include "web/WebViewFrameWidget.h" 5 #include "web/WebViewFrameWidget.h"
6 6
7 #include "web/WebInputMethodControllerImpl.h" 7 #include "web/WebInputMethodControllerImpl.h"
8 #include "web/WebLocalFrameImpl.h" 8 #include "web/WebLocalFrameImpl.h"
9 #include "web/WebViewImpl.h" 9 #include "web/WebViewImpl.h"
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const WebFloatSize& visualViewportDelta, 100 const WebFloatSize& visualViewportDelta,
101 const WebFloatSize& layoutViewportDelta, 101 const WebFloatSize& layoutViewportDelta,
102 const WebFloatSize& elasticOverscrollDelta, 102 const WebFloatSize& elasticOverscrollDelta,
103 float scaleFactor, 103 float scaleFactor,
104 float browserControlsShownRatioDelta) { 104 float browserControlsShownRatioDelta) {
105 return m_webView->applyViewportDeltas( 105 return m_webView->applyViewportDeltas(
106 visualViewportDelta, layoutViewportDelta, elasticOverscrollDelta, 106 visualViewportDelta, layoutViewportDelta, elasticOverscrollDelta,
107 scaleFactor, browserControlsShownRatioDelta); 107 scaleFactor, browserControlsShownRatioDelta);
108 } 108 }
109 109
110 void WebViewFrameWidget::recordWheelAndTouchScrollingCount(
111 bool hasScrolledByWheel,
112 bool hasScrolledByTouch) {
113 return m_webView->recordWheelAndTouchScrollingCount(hasScrolledByWheel,
114 hasScrolledByTouch);
115 }
116
110 void WebViewFrameWidget::mouseCaptureLost() { 117 void WebViewFrameWidget::mouseCaptureLost() {
111 return m_webView->mouseCaptureLost(); 118 return m_webView->mouseCaptureLost();
112 } 119 }
113 120
114 void WebViewFrameWidget::setFocus(bool enable) { 121 void WebViewFrameWidget::setFocus(bool enable) {
115 return m_webView->setFocus(enable); 122 return m_webView->setFocus(enable);
116 } 123 }
117 124
118 WebRange WebViewFrameWidget::compositionRange() { 125 WebRange WebViewFrameWidget::compositionRange() {
119 return m_webView->compositionRange(); 126 return m_webView->compositionRange();
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 230
224 CompositorAnimationHost* WebViewFrameWidget::animationHost() const { 231 CompositorAnimationHost* WebViewFrameWidget::animationHost() const {
225 return m_webView->animationHost(); 232 return m_webView->animationHost();
226 } 233 }
227 234
228 HitTestResult WebViewFrameWidget::coreHitTestResultAt(const WebPoint& point) { 235 HitTestResult WebViewFrameWidget::coreHitTestResultAt(const WebPoint& point) {
229 return m_webView->coreHitTestResultAt(point); 236 return m_webView->coreHitTestResultAt(point);
230 } 237 }
231 238
232 } // namespace blink 239 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewFrameWidget.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698