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

Issue 8137005: Applying changes to the existing speech input code to support the extension API. (Closed)

Created:
9 years, 2 months ago by Leandro Gracia Gil
Modified:
9 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dpranke+watch-content_chromium.org, jam, Paweł Hajdan Jr.
Visibility:
Public.

Description

Applying changes to the existing speech input code to support the extension API. This includes extended error management by handling the status response code and the DidStartReceivingSpeech/DidStopReceivingSpeech events. BUG=97388 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104471

Patch Set 1 #

Patch Set 2 : fixing unit tests. #

Total comments: 29

Patch Set 3 : review and unit test fixes. #

Total comments: 28

Patch Set 4 : more review fixes. #

Total comments: 6

Patch Set 5 : fixing details, uploading to try bots. Will land if no problems. #

Patch Set 6 : adding missing new cc file. #

Patch Set 7 : mac bot fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -147 lines) Patch
M chrome/browser/speech/chrome_speech_input_manager.h View 1 2 3 4 1 chunk +12 lines, -11 lines 0 comments Download
M chrome/browser/speech/chrome_speech_input_manager.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M content/browser/speech/speech_input_browsertest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/speech/speech_input_dispatcher_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/speech_input_dispatcher_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/speech_input_manager.h View 1 2 3 3 chunks +14 lines, -11 lines 0 comments Download
M content/browser/speech/speech_input_manager.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M content/browser/speech/speech_recognition_request.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/speech/speech_recognition_request.cc View 1 2 3 5 chunks +38 lines, -13 lines 0 comments Download
M content/browser/speech/speech_recognition_request_unittest.cc View 1 2 3 2 chunks +36 lines, -26 lines 0 comments Download
M content/browser/speech/speech_recognizer.h View 1 2 3 5 chunks +11 lines, -14 lines 0 comments Download
M content/browser/speech/speech_recognizer.cc View 1 2 3 5 chunks +18 lines, -15 lines 0 comments Download
M content/browser/speech/speech_recognizer_unittest.cc View 1 2 3 17 chunks +34 lines, -27 lines 0 comments Download
M content/common/speech_input_messages.h View 1 2 2 chunks +9 lines, -2 lines 0 comments Download
M content/common/speech_input_result.h View 1 2 3 4 5 6 2 chunks +25 lines, -7 lines 0 comments Download
A content/common/speech_input_result.cc View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/speech_input_dispatcher.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/speech_input_dispatcher.cc View 1 2 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Leandro Graciá Gil
9 years, 2 months ago (2011-10-04 17:29:43 UTC) #1
Satish
Can you give a full description of the changes in the CL description? Also http://codereview.chromium.org/8137005/diff/3001/content/browser/speech/speech_input_manager.h ...
9 years, 2 months ago (2011-10-04 20:36:33 UTC) #2
Leandro Graciá Gil
http://codereview.chromium.org/8137005/diff/3001/content/browser/speech/speech_input_manager.h File content/browser/speech/speech_input_manager.h (right): http://codereview.chromium.org/8137005/diff/3001/content/browser/speech/speech_input_manager.h#newcode77 content/browser/speech/speech_input_manager.h:77: virtual void DidSpeechInputStart(int caller_id); On 2011/10/04 20:36:33, Satish wrote: ...
9 years, 2 months ago (2011-10-05 22:09:00 UTC) #3
Satish
Can you do a try run as well? http://codereview.chromium.org/8137005/diff/7001/chrome/browser/speech/chrome_speech_input_manager.h File chrome/browser/speech/chrome_speech_input_manager.h (right): http://codereview.chromium.org/8137005/diff/7001/chrome/browser/speech/chrome_speech_input_manager.h#newcode35 chrome/browser/speech/chrome_speech_input_manager.h:35: virtual ...
9 years, 2 months ago (2011-10-06 09:09:06 UTC) #4
Leandro Graciá Gil
http://codereview.chromium.org/8137005/diff/7001/chrome/browser/speech/chrome_speech_input_manager.h File chrome/browser/speech/chrome_speech_input_manager.h (right): http://codereview.chromium.org/8137005/diff/7001/chrome/browser/speech/chrome_speech_input_manager.h#newcode35 chrome/browser/speech/chrome_speech_input_manager.h:35: virtual void ShowWarmUp(int caller_id); On 2011/10/06 09:09:06, Satish wrote: ...
9 years, 2 months ago (2011-10-06 18:26:25 UTC) #5
Satish
LGTM with comments below. http://codereview.chromium.org/8137005/diff/16001/chrome/browser/speech/chrome_speech_input_manager.h File chrome/browser/speech/chrome_speech_input_manager.h (right): http://codereview.chromium.org/8137005/diff/16001/chrome/browser/speech/chrome_speech_input_manager.h#newcode24 chrome/browser/speech/chrome_speech_input_manager.h:24: SpeechInputBubble::Button button); OVERRIDE these as ...
9 years, 2 months ago (2011-10-06 20:30:12 UTC) #6
Leandro Graciá Gil
9 years, 2 months ago (2011-10-06 22:00:28 UTC) #7
Fixing nits and trying the bots once more. Will land the patch if there are no
problems with the bots.

http://codereview.chromium.org/8137005/diff/16001/chrome/browser/speech/chrom...
File chrome/browser/speech/chrome_speech_input_manager.h (right):

http://codereview.chromium.org/8137005/diff/16001/chrome/browser/speech/chrom...
chrome/browser/speech/chrome_speech_input_manager.h:24:
SpeechInputBubble::Button button);
On 2011/10/06 20:30:12, Satish wrote:
> OVERRIDE these as well?

Done.

http://codereview.chromium.org/8137005/diff/16001/content/common/speech_input...
File content/common/speech_input_result.h (right):

http://codereview.chromium.org/8137005/diff/16001/content/common/speech_input...
content/common/speech_input_result.h:30: //
http://www.w3.org/2005/Incubator/htmlspeech/2010/10/ (continues below)
On 2011/10/06 20:30:12, Satish wrote:
> I think it is fine to have URLs > 80 chars, please check with existing code.

Done.

http://codereview.chromium.org/8137005/diff/16001/content/common/speech_input...
content/common/speech_input_result.h:46: SpeechInputResult() : error(kErrorNone)
{}
On 2011/10/06 20:30:12, Satish wrote:
> mac bot complains about this, needs to go into a .cc file

Done.

Powered by Google App Engine
This is Rietveld 408576698