Bug 80410

Summary: Speech JavaScript API: add SpeechRecognitionError
Product: WebKit Reporter: Hans Wennborg <hans>
Component: New BugsAssignee: Hans Wennborg <hans>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ojan, satish, tkent, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 80260, 80417, 80424    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Hans Wennborg 2012-03-06 05:39:48 PST
Speech JavaScript API: add SpeechRecognitionError
Comment 1 Hans Wennborg 2012-03-06 06:01:36 PST
Created attachment 130366 [details]
Patch
Comment 2 Hans Wennborg 2012-03-06 06:15:39 PST
Created attachment 130369 [details]
Patch

Rebase
Comment 3 Satish Sampath 2012-03-06 06:50:31 PST
Comment on attachment 130369 [details]
Patch

> Source/WebCore/Modules/speech/SpeechRecognitionError.h: 52
> Kind code() { return m_kind; }

Should the type be named as 'Code' and the variable m_code so that this getter actually gets the parameter with that name?

> LayoutTests/fast/speech/scripted/speechrecognitionerror-basics.html: 12
> shouldBeTrue("'webkitSpeechRecognitionError' in self");

using 'self' works here but perhaps it would be clearer to use 'window' instead?
Comment 4 Hans Wennborg 2012-03-06 07:34:06 PST
(In reply to comment #3)
> (From update of attachment 130369 [details])
> > Source/WebCore/Modules/speech/SpeechRecognitionError.h: 52
> > Kind code() { return m_kind; }
> 
> Should the type be named as 'Code' and the variable m_code so that this getter actually gets the parameter with that name?

Done.

> 
> > LayoutTests/fast/speech/scripted/speechrecognitionerror-basics.html: 12
> > shouldBeTrue("'webkitSpeechRecognitionError' in self");
> 
> using 'self' works here but perhaps it would be clearer to use 'window' instead?

Done.
Comment 5 Hans Wennborg 2012-03-06 07:34:31 PST
Created attachment 130381 [details]
Patch
Comment 6 Satish Sampath 2012-03-06 07:36:31 PST
looks good to me
Comment 7 Adam Barth 2012-03-06 10:22:24 PST
Comment on attachment 130381 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=130381&action=review

Looks great.  Thanks!

> Source/WebCore/ChangeLog:8
> +        Add SpeechRecognitionError.

Can you add a link to the spec?  That will help folks who look at this change later.
Comment 8 Adam Barth 2012-03-06 10:23:03 PST
> Can you add a link to the spec?  That will help folks who look at this change later.

Please feel free to ignore this comment on this change, but for the upcoming changes, it would be nice to link to the spec.
Comment 9 WebKit Review Bot 2012-03-06 11:23:33 PST
Comment on attachment 130381 [details]
Patch

Clearing flags on attachment: 130381

Committed r109938: <http://trac.webkit.org/changeset/109938>
Comment 10 WebKit Review Bot 2012-03-06 11:23:38 PST
All reviewed patches have been landed.  Closing bug.