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

Unified Diff: Source/core/html/track/TextTrack.idl

Issue 1178333002: Sync audio/video/text track-related interfaces with the specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/track/AudioTrackList.idl ('k') | Source/core/html/track/TextTrackCue.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrack.idl
diff --git a/Source/core/html/track/TextTrack.idl b/Source/core/html/track/TextTrack.idl
index 75b8558abf0cb14545f528b29d7784bfb7fc7a02..9fc8a39f889f194edb6c5d0b148b2253995bc983 100644
--- a/Source/core/html/track/TextTrack.idl
+++ b/Source/core/html/track/TextTrack.idl
@@ -23,6 +23,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://html.spec.whatwg.org/#texttrack
+
enum TextTrackMode { "disabled", "hidden", "showing" };
enum TextTrackKind { "subtitles", "captions", "descriptions", "chapters", "metadata" };
@@ -35,17 +37,20 @@ enum TextTrackKind { "subtitles", "captions", "descriptions", "chapters", "m
readonly attribute DOMString language;
readonly attribute DOMString id;
+ // readonly attribute DOMString inBandMetadataTrackDispatchType;
- attribute TextTrackMode mode;
+ attribute TextTrackMode mode;
- readonly attribute TextTrackCueList cues;
- readonly attribute TextTrackCueList activeCues;
+ readonly attribute TextTrackCueList? cues;
+ readonly attribute TextTrackCueList? activeCues;
void addCue(TextTrackCue cue);
[RaisesException] void removeCue(TextTrackCue cue);
- attribute EventHandler oncuechange;
+ attribute EventHandler oncuechange;
+ // TODO(philipj): These WebVTT extensions have been removed from the spec:
+ // https://www.w3.org/Bugs/Public/show_bug.cgi?id=24380
[RuntimeEnabled=WebVTTRegions] readonly attribute VTTRegionList regions;
[RuntimeEnabled=WebVTTRegions] void addRegion(VTTRegion region);
[RaisesException, RuntimeEnabled=WebVTTRegions] void removeRegion(VTTRegion region);
« no previous file with comments | « Source/core/html/track/AudioTrackList.idl ('k') | Source/core/html/track/TextTrackCue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698