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

Unified Diff: Source/modules/mediasource/TrackDefault.idl

Issue 691313002: MSE: Implement TrackDefault object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add TrackDefault to global constructors layout test expectation Created 6 years, 1 month 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
Index: Source/modules/mediasource/TrackDefault.idl
diff --git a/Source/modules/mediasource/TrackDefault.idl b/Source/modules/mediasource/TrackDefault.idl
new file mode 100644
index 0000000000000000000000000000000000000000..f013097b1a25fb1300c5e12271fa0c4fc4a5bc09
--- /dev/null
+++ b/Source/modules/mediasource/TrackDefault.idl
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Per 11 Nov 2014 Editor's Draft
+// https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#idl-def-TrackDefault
+
+enum TrackDefaultType { "audio", "video", "text" };
+
+[
+ Constructor(TrackDefaultType type, DOMString language, DOMString label, sequence<DOMString> kinds, optional DOMString byteStreamTrackID = ""),
+ RaisesException=Constructor,
+ GarbageCollected,
+ RuntimeEnabled=MediaSourceExperimental,
+ TypeChecking=Interface,
sof 2014/11/13 20:45:42 Is this needed for anything here?
wolenetz 2014/11/13 22:56:40 I had thought this enforced the constructor's |typ
+] interface TrackDefault {
+ readonly attribute TrackDefaultType type;
sof 2014/11/13 20:45:42 nit: 4-space indented?
wolenetz 2014/11/13 22:56:40 Done. Thanks.
+ readonly attribute DOMString byteStreamTrackID;
+ readonly attribute DOMString language;
+ readonly attribute DOMString label;
+ readonly attribute DOMString[] kinds;
+};

Powered by Google App Engine
This is Rietveld 408576698