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

Issue 1358173008: Add UMA stats for pinch-zoom behavior on Android (Closed)

Created:
5 years, 3 months ago by bokan
Modified:
5 years, 2 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA stats for pinch-zoom behavior on Android This CL adds two UMA statistics: Viewport.DidPinchZoom and Viewport.MaxPageScale. For each page load, DidPinchZoom tracks whether the user changed the page scale(e.g. pinch-zoom, double-tap, etc). For those pages where the user did change the scalee, MaxPageScale keeps track of the furthest the user zoomed in. In both cases, we only record the stat if the user interacted with the page; hence, the tracking is turned on when Blink receives an input event. BUG=534456 Committed: https://crrev.com/3c89821632ac5ab5a5199c4d4a8920cd35f7cbb5 Cr-Commit-Position: refs/heads/master@{#352119}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 28

Patch Set 4 : Rebase #

Patch Set 5 : Review fixes #

Patch Set 6 : Small build fix to previous patch #

Total comments: 3

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -29 lines) Patch
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 5 6 2 chunks +65 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/Page.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 5 chunks +12 lines, -25 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 3 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (8 generated)
bokan
Yoav, WDYT? I originally wanted to have it for Desktop platforms too but then we'd ...
5 years, 3 months ago (2015-09-24 23:02:07 UTC) #2
Yoav Weiss
I'm not sure I'm the most qualified to review this, since I'm not that familiar ...
5 years, 2 months ago (2015-09-25 08:46:59 UTC) #3
bokan
On 2015/09/25 08:46:59, Yoav Weiss wrote: > I'm not sure I'm the most qualified to ...
5 years, 2 months ago (2015-09-25 17:01:43 UTC) #4
bokan
https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2075 third_party/WebKit/Source/web/WebViewImpl.cpp:2075: page()->frameHost().visualViewport().startTrackingPinchStats(); On 2015/09/25 08:46:59, Yoav Weiss wrote: > Would ...
5 years, 2 months ago (2015-09-25 17:01:49 UTC) #5
Yoav Weiss
On 2015/09/25 17:01:49, bokan wrote: > https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp > File third_party/WebKit/Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2075 > ...
5 years, 2 months ago (2015-09-26 19:43:26 UTC) #6
bokan
+rbyers@ for Blink changes +isherman@ for histograms.xml https://codereview.chromium.org/1358173008/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1358173008/diff/40001/tools/metrics/histograms/histograms.xml#newcode48796 tools/metrics/histograms/histograms.xml:48796: +<histogram name="Viewport.MaxPageScale" ...
5 years, 2 months ago (2015-09-28 13:02:09 UTC) #8
Yoav Weiss
On 2015/09/28 13:02:09, bokan wrote: > +rbyers@ for Blink changes > +isherman@ for histograms.xml > ...
5 years, 2 months ago (2015-09-28 13:11:12 UTC) #9
bokan
On 2015/09/28 13:11:12, Yoav Weiss wrote: > On 2015/09/28 13:02:09, bokan wrote: > > +rbyers@ ...
5 years, 2 months ago (2015-09-28 13:12:39 UTC) #10
Yoav Weiss
On 2015/09/28 13:12:39, bokan wrote: > On 2015/09/28 13:11:12, Yoav Weiss wrote: > > On ...
5 years, 2 months ago (2015-09-28 13:15:17 UTC) #11
Rick Byers
https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode82 third_party/WebKit/Source/core/frame/VisualViewport.cpp:82: sendUMAMetrics(); Is there already an established pattern for renderer ...
5 years, 2 months ago (2015-09-28 18:43:58 UTC) #12
bokan
https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode82 third_party/WebKit/Source/core/frame/VisualViewport.cpp:82: sendUMAMetrics(); On 2015/09/28 18:43:58, Rick Byers wrote: > Is ...
5 years, 2 months ago (2015-09-29 20:33:21 UTC) #13
Ilya Sherman
https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode701 third_party/WebKit/Source/core/frame/VisualViewport.cpp:701: Platform::current()->histogramEnumeration("Viewport.MaxPageScale", zoomPercentage, 501); This allocates a histogram with 500 ...
5 years, 2 months ago (2015-09-30 04:30:29 UTC) #14
bokan
Review comments addressed. PTAL. Yoav, do the changes seem ok to you? https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp ...
5 years, 2 months ago (2015-10-01 20:18:31 UTC) #15
bokan
https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1358173008/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode82 third_party/WebKit/Source/core/frame/VisualViewport.cpp:82: sendUMAMetrics(); On 2015/09/29 20:33:20, bokan wrote: > On 2015/09/28 ...
5 years, 2 months ago (2015-10-01 20:58:15 UTC) #16
Ilya Sherman
https://codereview.chromium.org/1358173008/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1358173008/diff/100001/tools/metrics/histograms/histograms.xml#newcode48840 tools/metrics/histograms/histograms.xml:48840: + Android only. So, does this record whether the ...
5 years, 2 months ago (2015-10-01 22:09:00 UTC) #17
bokan
https://codereview.chromium.org/1358173008/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1358173008/diff/100001/tools/metrics/histograms/histograms.xml#newcode48840 tools/metrics/histograms/histograms.xml:48840: + Android only. On 2015/10/01 22:09:00, Ilya Sherman wrote: ...
5 years, 2 months ago (2015-10-01 22:10:24 UTC) #18
Rick Byers
Ok, this LGTM if you and Yoav decide you want to just go with the ...
5 years, 2 months ago (2015-10-02 00:53:22 UTC) #19
Ilya Sherman
https://codereview.chromium.org/1358173008/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1358173008/diff/100001/tools/metrics/histograms/histograms.xml#newcode48840 tools/metrics/histograms/histograms.xml:48840: + Android only. On 2015/10/01 22:10:24, bokan wrote: > ...
5 years, 2 months ago (2015-10-02 03:19:01 UTC) #20
Yoav Weiss
LGTM
5 years, 2 months ago (2015-10-02 07:33:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358173008/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358173008/100001
5 years, 2 months ago (2015-10-02 16:11:21 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/115770)
5 years, 2 months ago (2015-10-02 18:20:43 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358173008/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358173008/100001
5 years, 2 months ago (2015-10-02 18:24:25 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/106265)
5 years, 2 months ago (2015-10-02 18:36:14 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358173008/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358173008/120001
5 years, 2 months ago (2015-10-02 18:51:45 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-02 20:46:04 UTC) #33
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 20:46:57 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3c89821632ac5ab5a5199c4d4a8920cd35f7cbb5
Cr-Commit-Position: refs/heads/master@{#352119}

Powered by Google App Engine
This is Rietveld 408576698