[html5] r7742 - [giow] (1) Split TextTrackCue into an abstract TextTrackCue interface and a WebV [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Mar 8 10:50:21 PST 2013


Author: ianh
Date: 2013-03-08 10:50:20 -0800 (Fri, 08 Mar 2013)
New Revision: 7742

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Split TextTrackCue into an abstract TextTrackCue interface and a WebVTT-specific interface WebVTTCue.
Affected topics: Video Text Tracks

Modified: complete.html
===================================================================
--- complete.html	2013-03-07 23:42:32 UTC (rev 7741)
+++ complete.html	2013-03-08 18:50:20 UTC (rev 7742)
@@ -248,7 +248,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 7 March 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 8 March 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -31549,7 +31549,7 @@
 
 // add sounds we care about
 function addFX(start, end, name) {
-  var cue = new TextTrackCue(start, end, '');
+  var cue = new WebVTTCue(start, end, '');
   cue.id = name;
   cue.pauseOnExit = true;
   sounds.addCue(cue);
@@ -31620,11 +31620,15 @@
 
   </div>
 
-  <hr><pre class=idl>enum <dfn id=autokeyword>AutoKeyword</dfn> { "auto" };
-[<a href=#dom-texttrackcue title=dom-TextTrackCue>Constructor</a>(double startTime, double endTime, DOMString text)]
-interface <dfn id=texttrackcue>TextTrackCue</dfn> : <a href=#eventtarget>EventTarget</a> {
+  <hr><pre class=idl>interface <dfn id=texttrackcue>TextTrackCue</dfn> : <a href=#eventtarget>EventTarget</a> {
   readonly attribute <a href=#texttrack>TextTrack</a>? <a href=#dom-texttrackcue-track title=dom-TextTrackCue-track>track</a>;
+           attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-texttrackcue-onenter title=handler-TextTrackCue-onenter>onenter</a>;
+           attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-texttrackcue-onexit title=handler-TextTrackCue-onexit>onexit</a>;
+};
 
+enum <dfn id=autokeyword>AutoKeyword</dfn> { "auto" };
+[<a href=#dom-texttrackcue title=dom-TextTrackCue>Constructor</a>(double startTime, double endTime, DOMString text)]
+interface <dfn id=webvttcue>WebVTTCue</dfn> : <a href=#texttrackcue>TextTrackCue</a> {
            attribute DOMString <a href=#dom-texttrackcue-id title=dom-TextTrackCue-id>id</a>;
            attribute double <a href=#dom-texttrackcue-starttime title=dom-TextTrackCue-startTime>startTime</a>;
            attribute double <a href=#dom-texttrackcue-endtime title=dom-TextTrackCue-endTime>endTime</a>;
@@ -31637,26 +31641,24 @@
            attribute DOMString <a href=#dom-texttrackcue-align title=dom-TextTrackCue-align>align</a>;
            attribute DOMString <a href=#dom-texttrackcue-text title=dom-TextTrackCue-text>text</a>;
   <a href=#documentfragment>DocumentFragment</a> <a href=#dom-texttrackcue-getcueashtml title=dom-TextTrackCue-getCueAsHTML>getCueAsHTML</a>();
-
-           attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-texttrackcue-onenter title=handler-TextTrackCue-onenter>onenter</a>;
-           attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-texttrackcue-onexit title=handler-TextTrackCue-onexit>onexit</a>;
 };</pre>
 
-  <dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TextTrackCue><a href=#dom-texttrackcue>TextTrackCue</a></code>( <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> )</dt>
+  <dl class=domintro><dt><var title="">cue</var> . <a href=#dom-texttrackcue-track title=dom-TextTrackCue-track>track</a></dt>
    <dd>
+    <p>Returns the <code><a href=#texttrack>TextTrack</a></code> object to which this
+    <a href=#text-track-cue>text track cue</a> belongs, if any, or null
+    otherwise.</p>
+   </dd>
+
+
+   <dt><var title="">cue</var> = new <code title=dom-TextTrackCue><a href=#dom-texttrackcue>WebVTTCue</a></code>( <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> )</dt>
+   <dd>
     <p>Returns a new <code><a href=#texttrackcue>TextTrackCue</a></code> object, for use with the <code title=dom-TextTrack-addCue><a href=#dom-texttrack-addcue>addCue()</a></code> method.</p>
     <p>The <var title="">startTime</var> argument sets the <a href=#text-track-cue-start-time>text track cue start time</a>.</p>
     <p>The <var title="">endTime</var> argument sets the <a href=#text-track-cue-end-time>text track cue end time</a>.</p>
     <p>The <var title="">text</var> argument sets the <a href=#text-track-cue-text>text track cue text</a>.</p>
    </dd>
 
-   <dt><var title="">cue</var> . <a href=#dom-texttrackcue-track title=dom-TextTrackCue-track>track</a></dt>
-   <dd>
-    <p>Returns the <code><a href=#texttrack>TextTrack</a></code> object to which this
-    <a href=#text-track-cue>text track cue</a> belongs, if any, or null
-    otherwise.</p>
-   </dd>
-
    <dt><var title="">cue</var> . <a href=#dom-texttrackcue-id title=dom-TextTrackCue-id>id</a> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the <a href=#text-track-cue-identifier>text track cue identifier</a>.</p>
@@ -101877,6 +101879,7 @@
    <li><code><a href=#videotrack>VideoTrack</a></code>
    <li><code><a href=#videotracklist>VideoTrackList</a></code>
    <li><code><a href=#websocket>WebSocket</a></code>
+   <li><code><a href=#webvttcue>WebVTTCue</a></code>
    <li><code><a href=#window>Window</a></code>
    <li><code><a href=#windowbase64>WindowBase64</a></code>
    <li><code><a href=#windoweventhandlers>WindowEventHandlers</a></code>

Modified: index
===================================================================
--- index	2013-03-07 23:42:32 UTC (rev 7741)
+++ index	2013-03-08 18:50:20 UTC (rev 7742)
@@ -248,7 +248,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 7 March 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 8 March 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -31549,7 +31549,7 @@
 
 // add sounds we care about
 function addFX(start, end, name) {
-  var cue = new TextTrackCue(start, end, '');
+  var cue = new WebVTTCue(start, end, '');
   cue.id = name;
   cue.pauseOnExit = true;
   sounds.addCue(cue);
@@ -31620,11 +31620,15 @@
 
   </div>
 
-  <hr><pre class=idl>enum <dfn id=autokeyword>AutoKeyword</dfn> { "auto" };
-[<a href=#dom-texttrackcue title=dom-TextTrackCue>Constructor</a>(double startTime, double endTime, DOMString text)]
-interface <dfn id=texttrackcue>TextTrackCue</dfn> : <a href=#eventtarget>EventTarget</a> {
+  <hr><pre class=idl>interface <dfn id=texttrackcue>TextTrackCue</dfn> : <a href=#eventtarget>EventTarget</a> {
   readonly attribute <a href=#texttrack>TextTrack</a>? <a href=#dom-texttrackcue-track title=dom-TextTrackCue-track>track</a>;
+           attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-texttrackcue-onenter title=handler-TextTrackCue-onenter>onenter</a>;
+           attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-texttrackcue-onexit title=handler-TextTrackCue-onexit>onexit</a>;
+};
 
+enum <dfn id=autokeyword>AutoKeyword</dfn> { "auto" };
+[<a href=#dom-texttrackcue title=dom-TextTrackCue>Constructor</a>(double startTime, double endTime, DOMString text)]
+interface <dfn id=webvttcue>WebVTTCue</dfn> : <a href=#texttrackcue>TextTrackCue</a> {
            attribute DOMString <a href=#dom-texttrackcue-id title=dom-TextTrackCue-id>id</a>;
            attribute double <a href=#dom-texttrackcue-starttime title=dom-TextTrackCue-startTime>startTime</a>;
            attribute double <a href=#dom-texttrackcue-endtime title=dom-TextTrackCue-endTime>endTime</a>;
@@ -31637,26 +31641,24 @@
            attribute DOMString <a href=#dom-texttrackcue-align title=dom-TextTrackCue-align>align</a>;
            attribute DOMString <a href=#dom-texttrackcue-text title=dom-TextTrackCue-text>text</a>;
   <a href=#documentfragment>DocumentFragment</a> <a href=#dom-texttrackcue-getcueashtml title=dom-TextTrackCue-getCueAsHTML>getCueAsHTML</a>();
-
-           attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-texttrackcue-onenter title=handler-TextTrackCue-onenter>onenter</a>;
-           attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-texttrackcue-onexit title=handler-TextTrackCue-onexit>onexit</a>;
 };</pre>
 
-  <dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TextTrackCue><a href=#dom-texttrackcue>TextTrackCue</a></code>( <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> )</dt>
+  <dl class=domintro><dt><var title="">cue</var> . <a href=#dom-texttrackcue-track title=dom-TextTrackCue-track>track</a></dt>
    <dd>
+    <p>Returns the <code><a href=#texttrack>TextTrack</a></code> object to which this
+    <a href=#text-track-cue>text track cue</a> belongs, if any, or null
+    otherwise.</p>
+   </dd>
+
+
+   <dt><var title="">cue</var> = new <code title=dom-TextTrackCue><a href=#dom-texttrackcue>WebVTTCue</a></code>( <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> )</dt>
+   <dd>
     <p>Returns a new <code><a href=#texttrackcue>TextTrackCue</a></code> object, for use with the <code title=dom-TextTrack-addCue><a href=#dom-texttrack-addcue>addCue()</a></code> method.</p>
     <p>The <var title="">startTime</var> argument sets the <a href=#text-track-cue-start-time>text track cue start time</a>.</p>
     <p>The <var title="">endTime</var> argument sets the <a href=#text-track-cue-end-time>text track cue end time</a>.</p>
     <p>The <var title="">text</var> argument sets the <a href=#text-track-cue-text>text track cue text</a>.</p>
    </dd>
 
-   <dt><var title="">cue</var> . <a href=#dom-texttrackcue-track title=dom-TextTrackCue-track>track</a></dt>
-   <dd>
-    <p>Returns the <code><a href=#texttrack>TextTrack</a></code> object to which this
-    <a href=#text-track-cue>text track cue</a> belongs, if any, or null
-    otherwise.</p>
-   </dd>
-
    <dt><var title="">cue</var> . <a href=#dom-texttrackcue-id title=dom-TextTrackCue-id>id</a> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the <a href=#text-track-cue-identifier>text track cue identifier</a>.</p>
@@ -101877,6 +101879,7 @@
    <li><code><a href=#videotrack>VideoTrack</a></code>
    <li><code><a href=#videotracklist>VideoTrackList</a></code>
    <li><code><a href=#websocket>WebSocket</a></code>
+   <li><code><a href=#webvttcue>WebVTTCue</a></code>
    <li><code><a href=#window>Window</a></code>
    <li><code><a href=#windowbase64>WindowBase64</a></code>
    <li><code><a href=#windoweventhandlers>WindowEventHandlers</a></code>

Modified: source
===================================================================
--- source	2013-03-07 23:42:32 UTC (rev 7741)
+++ source	2013-03-08 18:50:20 UTC (rev 7742)
@@ -34127,7 +34127,7 @@
 
 // add sounds we care about
 function addFX(start, end, name) {
-  var cue = new TextTrackCue(start, end, '');
+  var cue = new WebVTTCue(start, end, '');
   cue.id = name;
   cue.pauseOnExit = true;
   sounds.addCue(cue);
@@ -34210,11 +34210,15 @@
 
   <hr>
 
-  <pre class="idl">enum <dfn>AutoKeyword</dfn> { "auto" };
-[<span title="dom-TextTrackCue">Constructor</span>(double startTime, double endTime, DOMString text)]
-interface <dfn>TextTrackCue</dfn> : <span>EventTarget</span> {
+  <pre class="idl">interface <dfn>TextTrackCue</dfn> : <span>EventTarget</span> {
   readonly attribute <span>TextTrack</span>? <span title="dom-TextTrackCue-track">track</span>;
+           attribute <span>EventHandler</span> <span title="handler-TextTrackCue-onenter">onenter</span>;
+           attribute <span>EventHandler</span> <span title="handler-TextTrackCue-onexit">onexit</span>;
+};
 
+enum <dfn>AutoKeyword</dfn> { "auto" };
+[<span title="dom-TextTrackCue">Constructor</span>(double startTime, double endTime, DOMString text)]
+interface <dfn>WebVTTCue</dfn> : <span>TextTrackCue</span> {
            attribute DOMString <span title="dom-TextTrackCue-id">id</span>;
            attribute double <span title="dom-TextTrackCue-startTime">startTime</span>;
            attribute double <span title="dom-TextTrackCue-endTime">endTime</span>;
@@ -34227,28 +34231,26 @@
            attribute DOMString <span title="dom-TextTrackCue-align">align</span>;
            attribute DOMString <span title="dom-TextTrackCue-text">text</span>;
   <span>DocumentFragment</span> <span title="dom-TextTrackCue-getCueAsHTML">getCueAsHTML</span>();
-
-           attribute <span>EventHandler</span> <span title="handler-TextTrackCue-onenter">onenter</span>;
-           attribute <span>EventHandler</span> <span title="handler-TextTrackCue-onexit">onexit</span>;
 };</pre>
 
   <dl class="domintro">
 
-   <dt><var title="">cue</var> = new <code title="dom-TextTrackCue">TextTrackCue</code>( <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> )</dt>
+   <dt><var title="">cue</var> . <span title="dom-TextTrackCue-track">track</span></dt>
    <dd>
+    <p>Returns the <code>TextTrack</code> object to which this
+    <span>text track cue</span> belongs, if any, or null
+    otherwise.</p>
+   </dd>
+
+
+   <dt><var title="">cue</var> = new <code title="dom-TextTrackCue">WebVTTCue</code>( <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> )</dt>
+   <dd>
     <p>Returns a new <code>TextTrackCue</code> object, for use with the <code title="dom-TextTrack-addCue">addCue()</code> method.</p>
     <p>The <var title="">startTime</var> argument sets the <span>text track cue start time</span>.</p>
     <p>The <var title="">endTime</var> argument sets the <span>text track cue end time</span>.</p>
     <p>The <var title="">text</var> argument sets the <span>text track cue text</span>.</p>
    </dd>
 
-   <dt><var title="">cue</var> . <span title="dom-TextTrackCue-track">track</span></dt>
-   <dd>
-    <p>Returns the <code>TextTrack</code> object to which this
-    <span>text track cue</span> belongs, if any, or null
-    otherwise.</p>
-   </dd>
-
    <dt><var title="">cue</var> . <span title="dom-TextTrackCue-id">id</span> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the <span>text track cue identifier</span>.</p>




More information about the Commit-Watchers mailing list