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

Issue 2779273003: [Media Controls] Add UMA for timeline scrubber (Closed)

Created:
3 years, 8 months ago by johnme
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, kinuko+watch, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Controls] Add UMA for timeline scrubber Adds UMA metrics to the media controls timeline <input type="range">, to understand current usage, and detect changes in usage. Specifically this adds: - Media.Timeline.DragGestureDuration.<timeline width> - Media.Timeline.DragPercent.<timeline width> - Media.Timeline.DragSumAbsTimeDelta.<timeline width> - Media.Timeline.DragTimeDelta.<timeline width> - Media.Timeline.SeekType.<timeline width> - Media.Timeline.Width - Media.Timeline.Width.<Inline|Fullscreen><Portrait|Landscape> BUG=693630 Review-Url: https://codereview.chromium.org/2779273003 Cr-Commit-Position: refs/heads/master@{#462847} Committed: https://chromium.googlesource.com/chromium/src/+/00a232273b9dd6705d492dd4fd7218005db6f910

Patch Set 1 #

Total comments: 22

Patch Set 2 : Address mlamouri's review comments #

Patch Set 3 : Add a few more comments #

Total comments: 6

Patch Set 4 : Address isherman's review comments #

Total comments: 10

Patch Set 5 : Address review nits #

Patch Set 6 : Add tests and address nits #

Patch Set 7 : Rebase onto MediaControlsImpl #

Patch Set 8 : Cleanup test setup #

Patch Set 9 : Appease MSVC #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1028 lines, -33 lines) Patch
M third_party/WebKit/Source/core/html/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/media/MediaControls.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 4 5 6 7 chunks +54 lines, -7 lines 0 comments Download
A third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.h View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp View 1 2 3 4 5 6 7 8 1 chunk +387 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/SliderThumbElement.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp View 1 2 3 4 5 6 7 9 chunks +235 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/platform/Histogram.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/KeyboardCodes.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 4 chunks +250 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (13 generated)
johnme
3 years, 8 months ago (2017-03-29 19:15:23 UTC) #3
mlamouri (slow - plz ping)
Few comments, will finish the review tomorrow. https://codereview.chromium.org/2779273003/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2779273003/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode898 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:898: timelineWidth()); I ...
3 years, 8 months ago (2017-03-30 21:43:00 UTC) #4
mlamouri (slow - plz ping)
Some more comments. I will need probably another pass to fully digest :) https://codereview.chromium.org/2779273003/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp File ...
3 years, 8 months ago (2017-03-31 11:39:40 UTC) #5
johnme
Addressed review comments - thanks! https://codereview.chromium.org/2779273003/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2779273003/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode898 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:898: timelineWidth()); On 2017/03/30 21:43:00, ...
3 years, 8 months ago (2017-03-31 13:47:24 UTC) #6
johnme
isherman: Please review histograms.xml and third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp which calculates/reports all of them. Note that I do ...
3 years, 8 months ago (2017-03-31 16:49:54 UTC) #8
Ilya Sherman
On 2017/03/31 16:49:54, johnme wrote: > isherman: Please review histograms.xml and > third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp which > ...
3 years, 8 months ago (2017-04-01 00:42:27 UTC) #9
Ilya Sherman
+inline comments: https://codereview.chromium.org/2779273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp (right): https://codereview.chromium.org/2779273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp#newcode63 third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp:63: 15000, // 15s Optional nit: Maybe write ...
3 years, 8 months ago (2017-04-01 00:42:41 UTC) #10
johnme
https://codereview.chromium.org/2779273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp (right): https://codereview.chromium.org/2779273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp#newcode63 third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp:63: 15000, // 15s On 2017/04/01 00:42:41, Ilya Sherman wrote: ...
3 years, 8 months ago (2017-04-03 16:16:48 UTC) #11
johnme
https://codereview.chromium.org/2779273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp (right): https://codereview.chromium.org/2779273003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp#newcode63 third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp:63: 15000, // 15s On 2017/04/01 00:42:41, Ilya Sherman wrote: ...
3 years, 8 months ago (2017-04-03 16:16:48 UTC) #12
johnme
esprehn@chromium.org: Please review changes in: third_party/WebKit/Source/core/html/BUILD.gn third_party/WebKit/Source/core/html/shadow/SliderThumbElement.h third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp third_party/WebKit/Source/platform/Histogram.h third_party/WebKit/Source/platform/KeyboardCodes.h (i.e. Blink excluding third_party/WebKit/Source/core/html/shadow/MediaControl*.* which ...
3 years, 8 months ago (2017-04-03 16:24:31 UTC) #14
Ilya Sherman
(Still LGTM, thanks!) https://codereview.chromium.org/2779273003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp (right): https://codereview.chromium.org/2779273003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp#newcode68 third_party/WebKit/Source/core/html/shadow/MediaControlTimelineMetrics.cpp:68: 120 * 1000, // 2m nit: ...
3 years, 8 months ago (2017-04-03 21:39:27 UTC) #15
mlamouri (slow - plz ping)
this lgtm but can you add unit tests as the logic is fairly complex and ...
3 years, 8 months ago (2017-04-04 13:40:16 UTC) #16
esprehn
This is a really massive amount of code and metrics for the scrubber, I don't ...
3 years, 8 months ago (2017-04-04 18:56:02 UTC) #18
johnme
Added tests and addressed nits. On 2017/04/04 13:40:16, mlamouri wrote: > this lgtm but can ...
3 years, 8 months ago (2017-04-06 16:23:26 UTC) #20
dglazkov
LGTM. I share esprehn@'s worries though. Could we somehow make sure this code is removed ...
3 years, 8 months ago (2017-04-06 20:46:08 UTC) #21
johnme
On 2017/04/06 20:46:08, dglazkov wrote: > LGTM. > > I share esprehn@'s worries though. Could ...
3 years, 8 months ago (2017-04-07 10:25:33 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2779273003/140001
3 years, 8 months ago (2017-04-07 10:25:52 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/417417)
3 years, 8 months ago (2017-04-07 10:53:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2779273003/160001
3 years, 8 months ago (2017-04-07 11:33:35 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 13:34:34 UTC) #33
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/00a232273b9dd6705d492dd4fd72...

Powered by Google App Engine
This is Rietveld 408576698