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

Issue 2456993003: Improve caption button behavior for video player. (Closed)

Created:
4 years, 1 month ago by Finnur
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, jam, mlamouri+watch-blink_chromium.org, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve caption button behavior for video player. - If there is only one caption, the CC button should just toggle it on and off. - If the track has no label, instead of showing Unknown, it should show the language label and if that is also empty, it should show Track X. BUG=648696 Committed: https://crrev.com/480c4553694769458606f287350d13ff144a05e6 Cr-Commit-Position: refs/heads/master@{#429044}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments #

Patch Set 3 : Label string #

Total comments: 2

Patch Set 4 : Add some tests #

Patch Set 5 : New tests #

Patch Set 6 : Remove param #

Total comments: 1

Patch Set 7 : Addresss feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -63 lines) Patch
M content/app/strings/content_strings.grd View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/media-controls.js View 1 2 3 4 5 3 chunks +22 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/video-controls-caption-single-track.html View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/video-controls-captions.html View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/video-controls-captions-on-off.html View 1 2 3 1 chunk +12 lines, -20 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/video-controls-labels.html View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-button.html View 1 1 chunk +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 4 5 3 chunks +21 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.cpp View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (42 generated)
Finnur
4 years, 1 month ago (2016-10-28 10:49:28 UTC) #5
mlamouri (slow - plz ping)
Would be great to test the following: - with one text track: - when pressed, ...
4 years, 1 month ago (2016-10-28 13:02:37 UTC) #8
Finnur
Done. Let me know if the refactoring is done right. In the meantime I'm working ...
4 years, 1 month ago (2016-10-28 14:12:22 UTC) #13
mlamouri (slow - plz ping)
Thanks :) I think the refactoring looks good with one comment below. https://codereview.chromium.org/2456993003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControls.h File third_party/WebKit/Source/core/html/shadow/MediaControls.h ...
4 years, 1 month ago (2016-10-28 14:20:15 UTC) #14
Finnur
https://codereview.chromium.org/2456993003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControls.h File third_party/WebKit/Source/core/html/shadow/MediaControls.h (right): https://codereview.chromium.org/2456993003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControls.h#newcode66 third_party/WebKit/Source/core/html/shadow/MediaControls.h:66: void disableShowingTextTracks(TextTrackList*); Yes, indeed. Much better. PTAL.
4 years, 1 month ago (2016-10-29 16:45:18 UTC) #34
mlamouri (slow - plz ping)
Looks great, thanks! :) lgtm with one minor comment. Can you also update the description ...
4 years, 1 month ago (2016-10-31 10:23:13 UTC) #37
Finnur
Done. Antoine, mind reviewing the small change to content_strings.grd?
4 years, 1 month ago (2016-11-01 15:33:32 UTC) #43
piman
lgtm
4 years, 1 month ago (2016-11-01 15:52:49 UTC) #44
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/2456993003/140001
4 years, 1 month ago (2016-11-01 17:49:05 UTC) #49
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 1 month ago (2016-11-01 17:53:33 UTC) #51
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 18:24:41 UTC) #53
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/480c4553694769458606f287350d13ff144a05e6
Cr-Commit-Position: refs/heads/master@{#429044}

Powered by Google App Engine
This is Rietveld 408576698