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

Issue 790633003: Use TextTrackKind enum in HTMLMediaElement.addTextTrack IDL signature (Closed)

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

Description

Use TextTrackKind enum in HTMLMediaElement.addTextTrack IDL signature With https://codereview.chromium.org/831483004 is becomes possible to use the TextTrackKind enum defined in TextTrack.idl without redefining it. Do that, and also update the spec. steps in HTMLMediaElement::addTextTrack to match a later version. Move the call to setReadinessState() since it does not cause any side-effects, but add a comment about a potential issue with the current order of setup. Also add default values to the optional arguments and drop the unneeded forwarders. This also means that undefined will now be properly handled for these arguments. Update tests to reflect the new exception thrown as well as the behavior with undefined. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188644

Patch Set 1 #

Total comments: 6

Patch Set 2 : Nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -32 lines) Patch
M LayoutTests/media/track/opera/interfaces/HTMLElement/HTMLMediaElement/addTextTrack.html View 3 chunks +7 lines, -7 lines 0 comments Download
M LayoutTests/media/track/track-addtrack-kind.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/track/track-addtrack-kind-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 1 chunk +23 lines, -20 lines 0 comments Download
M Source/core/html/HTMLMediaElement.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
fs
5 years, 11 months ago (2015-01-16 15:18:24 UTC) #2
philipj_slow
lgtm with enthusiasm and nits \o/ <- title of my next album https://codereview.chromium.org/790633003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp ...
5 years, 11 months ago (2015-01-19 14:26:29 UTC) #3
fs
On 2015/01/19 14:26:29, philipj wrote: > lgtm with enthusiasm and nits \o/ <- title of ...
5 years, 11 months ago (2015-01-19 14:55:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790633003/20001
5 years, 11 months ago (2015-01-19 15:10:26 UTC) #6
commit-bot: I haz the power
5 years, 11 months ago (2015-01-19 17:48:58 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188644

Powered by Google App Engine
This is Rietveld 408576698