Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of "in" in IDL #13

Merged
merged 2 commits into from
Jun 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions webspeechapi.html
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ <h2 class="no-num no-toc" id=contents>Table of Contents</h2>
<li><a href="#speechreco-error"><span class=secno>5.1.4 </span>SpeechRecognitionError</a></li>
<li><a href="#speechreco-alternative"><span class=secno>5.1.5 </span>SpeechRecognitionAlternative</a></li>
<li><a href="#speechreco-result"><span class=secno>5.1.6 </span>SpeechRecognitionResult</a></li>
<li><a href="#speechreco-resultlist"><span class=secno>5.1.7 </span>SpeechRecognitionList</a></li>
<li><a href="#speechreco-resultlist"><span class=secno>5.1.7 </span>SpeechRecognitionResultList</a></li>
<li><a href="#speechreco-event"><span class=secno>5.1.8 </span>SpeechRecognitionEvent</a></li>
<li><a href="#speechreco-speechgrammar"><span class=secno>5.1.9 </span>SpeechGrammar</a></li>
<li><a href="#speechreco-speechgrammarlist"><span class=secno>5.1.10 </span>SpeechGrammarList</a></li>
Expand Down Expand Up @@ -591,15 +591,15 @@ <h3 id="speechreco-section"><span class=secno>5.1 </span>The SpeechRecognition I
[Exposed=Window]
interface <dfn id="speechrecognitionresult">SpeechRecognitionResult</dfn> {
readonly attribute unsigned long <a href="#dfn-length">length</a>;
getter <a href="#speechrecognitionalternative">SpeechRecognitionAlternative</a> <a href="#dfn-item">item</a>(in unsigned long index);
getter <a href="#speechrecognitionalternative">SpeechRecognitionAlternative</a> <a href="#dfn-item">item</a>(unsigned long index);
readonly attribute boolean <a href="#dfn-isFinal">isFinal</a>;
};

<span class="comment">// A collection of responses (used in continuous mode)</span>
[Exposed=Window]
interface <dfn id="speechrecognitionresultlist">SpeechRecognitionResultList</dfn> {
readonly attribute unsigned long <a href="#dfn-speechrecognitionresultlistlength">length</a>;
getter <a href="#speechrecognitionresult">SpeechRecognitionResult</a> <a href="#dfn-speechrecognitionresultlistitem">item</a>(in unsigned long index);
getter <a href="#speechrecognitionresult">SpeechRecognitionResult</a> <a href="#dfn-speechrecognitionresultlistitem">item</a>(unsigned long index);
};

<span class="comment">// A full response, which could be interim or final, part of a continuous response or not</span>
Expand All @@ -622,10 +622,10 @@ <h3 id="speechreco-section"><span class=secno>5.1 </span>The SpeechRecognition I
[Exposed=Window, Constructor]
interface <dfn id="dfn-speechgrammarlist">SpeechGrammarList</dfn> {
readonly attribute unsigned long <a href="#dfn-speechgrammarlistlength">length</a>;
getter <a href="#dfn-speechgrammar">SpeechGrammar</a> <a href="#dfn-speechgrammarlistitem">item</a>(in unsigned long index);
void <a href="#dfn-addGrammar">addFromURI</a>(in DOMString <a href="#dfn-grammarSrc">src</a>,
getter <a href="#dfn-speechgrammar">SpeechGrammar</a> <a href="#dfn-speechgrammarlistitem">item</a>(unsigned long index);
void <a href="#dfn-addGrammar">addFromURI</a>(DOMString <a href="#dfn-grammarSrc">src</a>,
optional float <a href="#dfn-grammarWeight">weight</a>);
void <a href="#dfn-addGrammarstring">addFromString</a>(in DOMString <a href="#dfn-grammarString">string</a>,
void <a href="#dfn-addGrammarstring">addFromString</a>(DOMString <a href="#dfn-grammarString">string</a>,
optional float <a href="#dfn-grammarWeight">weight</a>);
};

Expand Down Expand Up @@ -829,7 +829,7 @@ <h4 id="speechreco-result"><span class=secno>5.1.6 </span>SpeechRecognitionResul
If the value is false, then this represents an interim result that could still be changed.</dd>
</dl>

<h4 id="speechreco-resultlist"><span class=secno>5.1.7 </span>SpeechRecognitionList</h4>
<h4 id="speechreco-resultlist"><span class=secno>5.1.7 </span>SpeechRecognitionResultList</h4>

<p>The SpeechRecognitionResultList object holds a sequence of recognition results representing the complete return result of a continuous recognition.
For a non-continuous recognition it will hold only a single value.</p>
Expand Down Expand Up @@ -949,9 +949,8 @@ <h3 id="tts-section"><span class=secno>5.2 </span>The SpeechSynthesis Interface<
sequence&lt;SpeechSynthesisVoice&gt; <a href="#dfn-ttsgetvoices">getVoices</a>();
};

partial interface Window
{
readonly attribute SpeechSynthesis speechSynthesis;
partial interface Window {
[SameObject] readonly attribute SpeechSynthesis speechSynthesis;
};

[Exposed=Window,
Expand Down