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

Issue 921833003: Expose APIs for text track settings (Closed)

Created:
5 years, 10 months ago by srivats
Modified:
5 years, 8 months ago
Reviewers:
philipj_slow, fs
CC:
blink-reviews, nessy, arv+blink, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, Inactive, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Expose APIs for text track settings This commit adds APIs to expose the following CSS properties of the VTT track element: Text color, background color, text shadow, font size, font family, font style and font variant. These CSS properties can be used to customize text tracks according to the user's accessibility needs. The user-specified caption settings when set override author-specified settings and the app-default settings. Chromium side CL: https://codereview.chromium.org/1002473003 BUG=457850 TEST=media/track/track-css-matching-user-override-author-settings.html, media/track/track-css-user-settings-override-internal-settings.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192627

Patch Set 1 #

Total comments: 34

Patch Set 2 : Addressed comments from fs #

Total comments: 8

Patch Set 3 : Addressed comments from fs and added a new test #

Total comments: 5

Patch Set 4 : Addressed comments in VTTCue #

Patch Set 5 : Removed window color API as per Philip's suggestion #

Total comments: 1

Patch Set 6 : Rebase #

Total comments: 11

Patch Set 7 : Addressed Philip's comments #

Patch Set 8 : Override author-specified caption settings with user-specified caption settings #

Total comments: 9

Patch Set 9 : Addressed Philip's comments #

Total comments: 3

Patch Set 10 : Rebase and added a test to verify behavior of internal settings #

Total comments: 14

Patch Set 11 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -3 lines) Patch
M LayoutTests/media/track/captions-webvtt/styling.vtt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/media/track/track-css-user-settings-override-author-settings.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +71 lines, -0 lines 0 comments Download
A LayoutTests/media/track/track-css-user-settings-override-author-settings-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/media/track/track-css-user-settings-override-internal-settings.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +50 lines, -0 lines 0 comments Download
A LayoutTests/media/track/track-css-user-settings-override-internal-settings-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +20 lines, -1 line 0 comments Download
M Source/core/frame/Settings.in View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/html/track/vtt/VTTCue.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/html/track/vtt/VTTCue.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +40 lines, -1 line 0 comments Download
M Source/web/WebSettingsImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (7 generated)
srivats
Hey Philip, This change adds APIs to set the CSS properties of the text track ...
5 years, 10 months ago (2015-02-13 00:36:50 UTC) #2
fs
On 2015/02/13 00:36:50, srivats wrote: > Hey Philip, > This change adds APIs to set ...
5 years, 10 months ago (2015-02-13 13:13:16 UTC) #4
srivats
Addressed feedback from fs.
5 years, 10 months ago (2015-02-16 22:39:38 UTC) #6
srivats
https://codereview.chromium.org/921833003/diff/1/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/921833003/diff/1/Source/core/html/track/vtt/VTTCue.cpp#newcode212 Source/core/html/track/vtt/VTTCue.cpp:212: m_cue->element()->setInlineStyleProperty(CSSPropertyColor, settings.textTrackTextColor(), true); Yes the "" means no override ...
5 years, 10 months ago (2015-02-16 22:50:14 UTC) #7
philipj_slow
Is there a Chromium-side CL which would expose these settings to users? If not, I'll ...
5 years, 10 months ago (2015-02-17 02:51:00 UTC) #8
fs
The TEST=... lines now needs to be updated to reflect the new name of the ...
5 years, 10 months ago (2015-02-17 09:43:47 UTC) #9
srivats
On 2015/02/17 02:51:00, philipj_UTC7 wrote: > Is there a Chromium-side CL which would expose these ...
5 years, 10 months ago (2015-02-18 01:45:46 UTC) #10
srivats
Addressed comments from fs https://codereview.chromium.org/921833003/diff/1/LayoutTests/media/track/track-css-matching-settings.html File LayoutTests/media/track/track-css-matching-settings.html (right): https://codereview.chromium.org/921833003/diff/1/LayoutTests/media/track/track-css-matching-settings.html#newcode1 LayoutTests/media/track/track-css-matching-settings.html:1: <!DOCTYPE html> On 2015/02/13 13:13:15, ...
5 years, 10 months ago (2015-02-18 01:46:52 UTC) #11
philipj_slow
Please let us know where there's a Chromium-side CL. https://codereview.chromium.org/921833003/diff/60001/public/web/WebSettings.h File public/web/WebSettings.h (right): https://codereview.chromium.org/921833003/diff/60001/public/web/WebSettings.h#newcode239 public/web/WebSettings.h:239: ...
5 years, 10 months ago (2015-02-18 03:33:14 UTC) #12
fs
VTTCue changes lg now. Two minor nits. https://codereview.chromium.org/921833003/diff/60001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/921833003/diff/60001/Source/core/html/track/vtt/VTTCue.cpp#newcode144 Source/core/html/track/vtt/VTTCue.cpp:144: if (value ...
5 years, 10 months ago (2015-02-18 09:36:46 UTC) #13
srivats
On 2015/02/18 03:33:14, philipj_UTC7 wrote: > Please let us know where there's a Chromium-side CL. ...
5 years, 10 months ago (2015-02-18 22:37:18 UTC) #14
srivats
Addressed comments in VTTCue.cpp. https://codereview.chromium.org/921833003/diff/60001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/921833003/diff/60001/Source/core/html/track/vtt/VTTCue.cpp#newcode144 Source/core/html/track/vtt/VTTCue.cpp:144: if (value != "") { ...
5 years, 10 months ago (2015-02-18 22:39:33 UTC) #15
srivats
5 years, 10 months ago (2015-02-20 19:34:46 UTC) #16
srivats
On 2015/02/18 03:33:14, philipj_UTC7 wrote: > Please let us know where there's a Chromium-side CL. ...
5 years, 9 months ago (2015-03-11 23:28:30 UTC) #17
philipj_slow
Ah, so there's an Android API which gives the defaults of these values. Makes sense.
5 years, 9 months ago (2015-03-12 04:52:52 UTC) #18
srivats
Hi Philip, The Chromium-side CL has received two lgtms. Can you take another look at ...
5 years, 9 months ago (2015-03-16 17:18:01 UTC) #19
philipj_slow
Great, let's figure this out! My biggest concern is how this will interact with author ...
5 years, 9 months ago (2015-03-17 02:22:32 UTC) #20
srivats
https://codereview.chromium.org/921833003/diff/120001/Source/core/frame/Settings.in File Source/core/frame/Settings.in (right): https://codereview.chromium.org/921833003/diff/120001/Source/core/frame/Settings.in#newcode336 Source/core/frame/Settings.in:336: textTrackTextSize type=String On 2015/03/17 02:22:31, philipj_UTC7 wrote: > What ...
5 years, 9 months ago (2015-03-18 01:58:13 UTC) #21
srivats
On 2015/03/17 02:22:32, philipj_UTC7 wrote: > Great, let's figure this out! > > My biggest ...
5 years, 9 months ago (2015-03-18 02:02:35 UTC) #22
philipj_slow
https://codereview.chromium.org/921833003/diff/100001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/921833003/diff/100001/Source/core/html/track/vtt/VTTCue.cpp#newcode1152 Source/core/html/track/vtt/VTTCue.cpp:1152: if (settings) { "if (!settings) return" to reduce the ...
5 years, 9 months ago (2015-03-18 06:31:10 UTC) #23
philipj_slow
On 2015/03/18 02:02:35, srivats wrote: > On 2015/03/17 02:22:32, philipj_UTC7 wrote: > > Great, let's ...
5 years, 9 months ago (2015-03-18 06:42:24 UTC) #24
srivats
On 2015/03/18 06:42:24, philipj_UTC7 wrote: > On 2015/03/18 02:02:35, srivats wrote: > > On 2015/03/17 ...
5 years, 9 months ago (2015-03-18 17:42:12 UTC) #25
srivats
On 2015/03/18 17:42:12, srivats wrote: > On 2015/03/18 06:42:24, philipj_UTC7 wrote: > > On 2015/03/18 ...
5 years, 9 months ago (2015-03-18 18:45:46 UTC) #26
philipj_slow
OK, so the conclusion of the email discussion was that the font scale should be ...
5 years, 9 months ago (2015-03-19 17:48:05 UTC) #27
srivats
On 2015/03/19 17:48:05, philipj_UTC7 wrote: > OK, so the conclusion of the email discussion was ...
5 years, 9 months ago (2015-03-19 19:08:56 UTC) #28
srivats
On 2015/03/19 19:08:56, srivats wrote: > On 2015/03/19 17:48:05, philipj_UTC7 wrote: > > OK, so ...
5 years, 9 months ago (2015-03-19 23:11:05 UTC) #29
philipj_slow
On 2015/03/19 19:08:56, srivats wrote: > On 2015/03/19 17:48:05, philipj_UTC7 wrote: > > OK, so ...
5 years, 9 months ago (2015-03-20 07:04:49 UTC) #30
srivats
5 years, 9 months ago (2015-03-24 00:34:02 UTC) #32
srivats
On 2015/03/20 07:04:49, philipj_UTC7 wrote: > On 2015/03/19 19:08:56, srivats wrote: > > On 2015/03/19 ...
5 years, 9 months ago (2015-03-24 00:41:17 UTC) #33
philipj_slow
https://codereview.chromium.org/921833003/diff/180001/Source/core/css/mediaControls.css File Source/core/css/mediaControls.css (right): https://codereview.chromium.org/921833003/diff/180001/Source/core/css/mediaControls.css#newcode351 Source/core/css/mediaControls.css:351: font-family: sans-serif; Thanks! https://codereview.chromium.org/921833003/diff/180001/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/921833003/diff/180001/Source/core/css/resolver/StyleResolver.cpp#newcode1055 Source/core/css/resolver/StyleResolver.cpp:1055: ...
5 years, 9 months ago (2015-03-24 07:11:58 UTC) #34
srivats
https://codereview.chromium.org/921833003/diff/180001/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/921833003/diff/180001/Source/core/css/resolver/StyleResolver.cpp#newcode1055 Source/core/css/resolver/StyleResolver.cpp:1055: case CSSPropertyOpacity: On 2015/03/24 07:11:58, philipj_UTC7 wrote: > On ...
5 years, 9 months ago (2015-03-25 15:03:29 UTC) #35
philipj_slow
Yes, I think this looks very promising, there's just the question of not filtering out ...
5 years, 9 months ago (2015-03-25 16:29:21 UTC) #36
srivats
On 2015/03/25 16:29:21, philipj_UTC7 wrote: > Yes, I think this looks very promising, there's just ...
5 years, 9 months ago (2015-03-25 17:07:40 UTC) #37
srivats
https://codereview.chromium.org/921833003/diff/200001/Source/core/css/mediaControls.css File Source/core/css/mediaControls.css (right): https://codereview.chromium.org/921833003/diff/200001/Source/core/css/mediaControls.css#newcode351 Source/core/css/mediaControls.css:351: font-family: sans-serif; I reverted this back because this change ...
5 years, 9 months ago (2015-03-26 01:36:02 UTC) #38
philipj_slow
LGTM with some additional nits. fs, can you take another look too? I think the ...
5 years, 9 months ago (2015-03-26 05:24:36 UTC) #39
srivats
https://codereview.chromium.org/921833003/diff/220001/LayoutTests/media/track/track-css-reset-user-override-settings.html File LayoutTests/media/track/track-css-reset-user-override-settings.html (right): https://codereview.chromium.org/921833003/diff/220001/LayoutTests/media/track/track-css-reset-user-override-settings.html#newcode58 LayoutTests/media/track/track-css-reset-user-override-settings.html:58: consoleWrite("Test that WebVTT objects user override styles when reset, ...
5 years, 9 months ago (2015-03-26 06:37:48 UTC) #41
fs
lgtm
5 years, 9 months ago (2015-03-26 09:33:47 UTC) #42
philipj_slow
On 2015/03/26 06:37:48, srivats wrote: > https://codereview.chromium.org/921833003/diff/220001/Source/core/html/track/vtt/VTTCue.h > File Source/core/html/track/vtt/VTTCue.h (right): > > https://codereview.chromium.org/921833003/diff/220001/Source/core/html/track/vtt/VTTCue.h#newcode145 > ...
5 years, 9 months ago (2015-03-26 11:18:19 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/921833003/260001
5 years, 8 months ago (2015-03-26 19:03:39 UTC) #46
commit-bot: I haz the power
5 years, 8 months ago (2015-03-26 20:59:00 UTC) #47
Message was sent while issue was closed.
Committed patchset #11 (id:260001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192627

Powered by Google App Engine
This is Rietveld 408576698