Skip to content

Commit

Permalink
[giow] (0) Captions - Stage 19: define the event handlers for the tim…
Browse files Browse the repository at this point in the history
…ed track API.

git-svn-id: http://svn.whatwg.org/webapps@5135 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 7, 2010
1 parent 0597f42 commit 3f96c06
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 39 deletions.
34 changes: 21 additions & 13 deletions complete.html
Expand Up @@ -26736,8 +26736,8 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
const unsigned short <span title=dom-TimedTrack-LOADED>LOADED</span> = 2;
const unsigned short <span title=dom-TimedTrack-ERROR>ERROR</span> = 3;
readonly attribute unsigned short <span title=dom-TimedTrack-readyState>readyState</span>;
readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrack-onload>onload</span>;
readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrack-onerror>onerror</span>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onload title=handler-TimedTrack-onload>onload</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onerror title=handler-TimedTrack-onerror>onerror</a>;

const unsigned short <span title=dom-TimedTrack-OFF>OFF</span> = 0;
const unsigned short <span title=dom-TimedTrack-HIDDEN>HIDDEN</span> = 1;
Expand All @@ -26747,7 +26747,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-cues>cues</span>;
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-activeCues>activeCues</span>;

readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrack-oncuechange>oncuechange</span>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-oncuechange title=handler-TimedTrack-oncuechange>oncuechange</a>;
};</pre>

<dl class=domintro><dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-kind>kind</code></dt>
Expand Down Expand Up @@ -26916,8 +26916,8 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
DOMString <span title=dom-TimedTrackCue-getCueAsSource()>getCueAsSource</span>();
<a href=#documentfragment>DocumentFragment</a> <span title=dom-TimedTrackCue-getCueAsHTML()>getCueAsHTML</span>();

readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onenter>onenter</span>;
readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onexit>onexit</span>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrackcue-onenter title=handler-TimedTrackCue-onenter>onenter</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrackcue-onexit title=handler-TimedTrackCue-onexit>onexit</a>;
};</pre>

<dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TimedTrackCue>TimedTrackCue</code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
Expand Down Expand Up @@ -27025,18 +27025,26 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
</div>


<div class=impl>

<h6 id=cue-events><span class=secno>4.8.10.10.6 </span>Event definitions</h6>

<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onerror">onerror</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-oncuechange">oncuechange</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
-->
<p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#timedtrack>TimedTrack</a></code> interface:</p>

<p class=XXX>...</p>
<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-timedtrack-onload title=handler-TimedTrack-onload><code>onload</code></dfn> <td> <code title=event-load>load</code>
<tr><td><dfn id=handler-timedtrack-onerror title=handler-TimedTrack-onerror><code>onerror</code></dfn> <td> <code title=event-error>error</code>
<tr><td><dfn id=handler-timedtrack-oncuechange title=handler-TimedTrack-oncuechange><code>oncuechange</code></dfn> <td> <code title=event-cuechange>close</code>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#timedtrackcue>TimedTrackCue</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-timedtrackcue-onenter title=handler-TimedTrackCue-onenter><code>onenter</code></dfn> <td> <code title=event-enter>enter</code>
<tr><td><dfn id=handler-timedtrackcue-onexit title=handler-TimedTrackCue-onexit><code>onexit</code></dfn> <td> <code title=event-exit>close</code>
</table></div>


<h5 id=websrt-0><span class=secno>4.8.10.11 </span>WebSRT</h5>
Expand Down
34 changes: 21 additions & 13 deletions index
Expand Up @@ -26663,8 +26663,8 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
const unsigned short <span title=dom-TimedTrack-LOADED>LOADED</span> = 2;
const unsigned short <span title=dom-TimedTrack-ERROR>ERROR</span> = 3;
readonly attribute unsigned short <span title=dom-TimedTrack-readyState>readyState</span>;
readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrack-onload>onload</span>;
readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrack-onerror>onerror</span>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onload title=handler-TimedTrack-onload>onload</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onerror title=handler-TimedTrack-onerror>onerror</a>;

const unsigned short <span title=dom-TimedTrack-OFF>OFF</span> = 0;
const unsigned short <span title=dom-TimedTrack-HIDDEN>HIDDEN</span> = 1;
Expand All @@ -26674,7 +26674,7 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-cues>cues</span>;
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-activeCues>activeCues</span>;

readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrack-oncuechange>oncuechange</span>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-oncuechange title=handler-TimedTrack-oncuechange>oncuechange</a>;
};</pre>

<dl class=domintro><dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-kind>kind</code></dt>
Expand Down Expand Up @@ -26843,8 +26843,8 @@ interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
DOMString <span title=dom-TimedTrackCue-getCueAsSource()>getCueAsSource</span>();
<a href=#documentfragment>DocumentFragment</a> <span title=dom-TimedTrackCue-getCueAsHTML()>getCueAsHTML</span>();

readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onenter>onenter</span>;
readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onexit>onexit</span>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrackcue-onenter title=handler-TimedTrackCue-onenter>onenter</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrackcue-onexit title=handler-TimedTrackCue-onexit>onexit</a>;
};</pre>

<dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TimedTrackCue>TimedTrackCue</code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
Expand Down Expand Up @@ -26952,18 +26952,26 @@ interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
</div>


<div class=impl>

<h6 id=cue-events><span class=secno>4.8.10.10.6 </span>Event definitions</h6>

<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onerror">onerror</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-oncuechange">oncuechange</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
-->
<p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#timedtrack>TimedTrack</a></code> interface:</p>

<p class=XXX>...</p>
<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-timedtrack-onload title=handler-TimedTrack-onload><code>onload</code></dfn> <td> <code title=event-load>load</code>
<tr><td><dfn id=handler-timedtrack-onerror title=handler-TimedTrack-onerror><code>onerror</code></dfn> <td> <code title=event-error>error</code>
<tr><td><dfn id=handler-timedtrack-oncuechange title=handler-TimedTrack-oncuechange><code>oncuechange</code></dfn> <td> <code title=event-cuechange>close</code>
</table><p>The following are the <a href=#event-handlers>event handlers</a> that must be
supported, as IDL attributes, by all objects implementing the
<code><a href=#timedtrackcue>TimedTrackCue</a></code> interface:</p>

<table><thead><tr><th><a href=#event-handlers title="event handlers">Event handler</a> <th><a href=#event-handler-event-type>Event handler event type</a>
<tbody><tr><td><dfn id=handler-timedtrackcue-onenter title=handler-TimedTrackCue-onenter><code>onenter</code></dfn> <td> <code title=event-enter>enter</code>
<tr><td><dfn id=handler-timedtrackcue-onexit title=handler-TimedTrackCue-onexit><code>onexit</code></dfn> <td> <code title=event-exit>close</code>
</table></div>


<h5 id=websrt-0><span class=secno>4.8.10.11 </span>WebSRT</h5>
Expand Down
44 changes: 31 additions & 13 deletions source
Expand Up @@ -28964,8 +28964,8 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
const unsigned short <span title="dom-TimedTrack-LOADED">LOADED</span> = 2;
const unsigned short <span title="dom-TimedTrack-ERROR">ERROR</span> = 3;
readonly attribute unsigned short <span title="dom-TimedTrack-readyState">readyState</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onerror">onerror</span>;
readonly attribute <span>Function</span> <span title="handler-TimedTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="handler-TimedTrack-onerror">onerror</span>;

const unsigned short <span title="dom-TimedTrack-OFF">OFF</span> = 0;
const unsigned short <span title="dom-TimedTrack-HIDDEN">HIDDEN</span> = 1;
Expand All @@ -28975,7 +28975,7 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
readonly attribute <span>TimedTrackCueList</span> <span title="dom-TimedTrack-cues">cues</span>;
readonly attribute <Span>TimedTrackCueList</span> <span title="dom-TimedTrack-activeCues">activeCues</span>;

readonly attribute <span>Function</span> <span title="dom-TimedTrack-oncuechange">oncuechange</span>;
readonly attribute <span>Function</span> <span title="handler-TimedTrack-oncuechange">oncuechange</span>;
};</pre>

<dl class="domintro">
Expand Down Expand Up @@ -29166,8 +29166,8 @@ interface <dfn>TimedTrackCue</dfn> {
DOMString <span title="dom-TimedTrackCue-getCueAsSource()">getCueAsSource</span>();
<span>DocumentFragment</span> <span title="dom-TimedTrackCue-getCueAsHTML()">getCueAsHTML</span>();

readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
readonly attribute <span>Function</span> <span title="handler-TimedTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="handler-TimedTrackCue-onexit">onexit</span>;
};</pre>

<dl class="domintro">
Expand Down Expand Up @@ -29283,18 +29283,36 @@ interface <dfn>TimedTrackCue</dfn> {
</div>


<div class="impl">

<h6 id="cue-events">Event definitions</h6>

<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onerror">onerror</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-oncuechange">oncuechange</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
-->
<p>The following are the <span>event handlers</span> that must be
supported, as IDL attributes, by all objects implementing the
<code>TimedTrack</code> interface:</p>

<p class="XXX">...</p>
<table>
<thead>
<tr><th><span title="event handlers">Event handler</span> <th><span>Event handler event type</span>
<tbody>
<tr><td><dfn title="handler-TimedTrack-onload"><code>onload</code></dfn> <td> <code title="event-load">load</code>
<tr><td><dfn title="handler-TimedTrack-onerror"><code>onerror</code></dfn> <td> <code title="event-error">error</code>
<tr><td><dfn title="handler-TimedTrack-oncuechange"><code>oncuechange</code></dfn> <td> <code title="event-cuechange">close</code>
</table>

<p>The following are the <span>event handlers</span> that must be
supported, as IDL attributes, by all objects implementing the
<code>TimedTrackCue</code> interface:</p>

<table>
<thead>
<tr><th><span title="event handlers">Event handler</span> <th><span>Event handler event type</span>
<tbody>
<tr><td><dfn title="handler-TimedTrackCue-onenter"><code>onenter</code></dfn> <td> <code title="event-enter">enter</code>
<tr><td><dfn title="handler-TimedTrackCue-onexit"><code>onexit</code></dfn> <td> <code title="event-exit">close</code>
</table>

</div>


<h5>WebSRT</h5>
Expand Down

0 comments on commit 3f96c06

Please sign in to comment.