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

Issue 3035035: Adds chromium side plumbing to pass speech input calls back and forth with WebKit. (Closed)

Created:
10 years, 4 months ago by Satish
Modified:
9 years, 7 months ago
Reviewers:
hans, bulach, jorlow, joth
CC:
chromium-reviews, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Adds chromium side plumbing to pass speech input calls back and forth with WebKit. Please advise if any of the code needs to be within "#if ENABLE_INPUT_SPEECH", since most of the speech input code in webkit is under "#if ENABLE(INPUT_SPEECH)" - Created renderer/SpeechInputDispatcher, implements WebKit::WebSpeechInputController which is used by WebView for invoking speech input. - Created browser/speech/SpeechInputDispatcherHost to receive IPC messages from the above SpeechInputDispatcher. Nothing done yet apart from receiving the messages. - Creates new directory chrome/browser/speech, this will be used for SpeechInputDispatcherHost, network based speech recognizer, speech audio recording/buffering code as well as speech output (Text-to-speech) code in future. BUG=none TEST=browser_tests --gtest_filter=SpeechInputBrowserTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54981

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Marcus's comments #

Total comments: 25

Patch Set 3 : Addressed all comments. #

Patch Set 4 : Addressed all comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+534 lines, -1 line) Patch
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 chunks +5 lines, -1 line 0 comments Download
A chrome/browser/speech/speech_input_browsertest.cc View 2 3 1 chunk +102 lines, -0 lines 1 comment Download
A chrome/browser/speech/speech_input_dispatcher_host.h View 1 2 1 chunk +65 lines, -0 lines 1 comment Download
A chrome/browser/speech/speech_input_dispatcher_host.cc View 1 2 1 chunk +101 lines, -0 lines 0 comments Download
A chrome/browser/speech/speech_input_manager.h View 2 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/speech/speech_input_manager.cc View 2 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 2 chunks +31 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
A chrome/renderer/speech_input_dispatcher.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/renderer/speech_input_dispatcher.cc View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/test/data/speech/basic_recognition.html View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Satish
10 years, 4 months ago (2010-07-28 12:49:46 UTC) #1
Satish
adding marcus and joth as well
10 years, 4 months ago (2010-07-29 16:06:29 UTC) #2
bulach
it looks good overall, but a couple of points: 1. even without functionality, it'd be ...
10 years, 4 months ago (2010-07-29 16:50:04 UTC) #3
bulach
sorry, forgot to send a couple of nits.. :) http://codereview.chromium.org/3035035/diff/1/8 File chrome/common/render_messages_internal.h (right): http://codereview.chromium.org/3035035/diff/1/8#newcode2553 chrome/common/render_messages_internal.h:2553: ...
10 years, 4 months ago (2010-07-29 16:50:25 UTC) #4
Satish
> 1. even without functionality, it'd be great to have a browser test to exercise ...
10 years, 4 months ago (2010-07-29 21:26:08 UTC) #5
Satish
Addressed all review comments so far: - Added interface SpeechInputManager which gets invoked by SpeechInputDispatcherHost ...
10 years, 4 months ago (2010-08-02 14:40:26 UTC) #6
Satish
This patch depends https://bugs.webkit.org/show_bug.cgi?id=43352 to be submitted and rolled in. I'll upload the latest code ...
10 years, 4 months ago (2010-08-02 16:33:50 UTC) #7
bulach
nice, thanks for adding the tests Satish! great to see code being exercised. :) overall ...
10 years, 4 months ago (2010-08-02 21:18:34 UTC) #8
Satish
Thanks, I'll address all the formatting and style comments in the next patch tomorrow. One ...
10 years, 4 months ago (2010-08-02 21:31:09 UTC) #9
jorlow
Looking pretty good. You don't need to wait for a LGTM from me if the ...
10 years, 4 months ago (2010-08-03 13:48:01 UTC) #10
Satish
Thanks, will address the comments in my next patch.. couple of questions below. http://codereview.chromium.org/3035035/diff/7001/8004 File ...
10 years, 4 months ago (2010-08-03 13:58:30 UTC) #11
jorlow
http://codereview.chromium.org/3035035/diff/7001/8004 File chrome/browser/speech/speech_input_dispatcher_host.cc (right): http://codereview.chromium.org/3035035/diff/7001/8004#newcode42 chrome/browser/speech/speech_input_dispatcher_host.cc:42: *msg_was_ok = true; On 2010/08/03 13:58:31, Satish wrote: > ...
10 years, 4 months ago (2010-08-03 14:09:17 UTC) #12
hans
On 2010/08/03 13:58:30, Satish wrote: > http://codereview.chromium.org/3035035/diff/7001/8004#newcode42 > chrome/browser/speech/speech_input_dispatcher_host.cc:42: *msg_was_ok = true; > On 2010/08/03 ...
10 years, 4 months ago (2010-08-03 14:14:01 UTC) #13
jorlow
On 2010/08/03 14:14:01, hans wrote: > On 2010/08/03 13:58:30, Satish wrote: > > http://codereview.chromium.org/3035035/diff/7001/8004#newcode42 > ...
10 years, 4 months ago (2010-08-03 14:15:17 UTC) #14
Satish
Addressed all the comments so far. Please take another look.
10 years, 4 months ago (2010-08-03 17:14:36 UTC) #15
bulach
LGTM good stuff! couple of minor nits: http://codereview.chromium.org/3035035/diff/25001/26003 File chrome/browser/speech/speech_input_browsertest.cc (right): http://codereview.chromium.org/3035035/diff/25001/26003#newcode57 chrome/browser/speech/speech_input_browsertest.cc:57: listener_->SetRecognitionResult(render_view_id_, ASCIIToUTF16(kTestResult)); ...
10 years, 4 months ago (2010-08-04 19:29:05 UTC) #16
Satish
10 years, 4 months ago (2010-08-04 19:36:38 UTC) #17
Addressed both comments, will submit the patch. Thanks!

Powered by Google App Engine
This is Rietveld 408576698