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

Unified Diff: content/browser/speech/input_tag_speech_dispatcher_host.cc

Issue 11421103: Update the Speech Api to support array(s) of result items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix issue with page reloads and add a TODO. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/input_tag_speech_dispatcher_host.cc
diff --git a/content/browser/speech/input_tag_speech_dispatcher_host.cc b/content/browser/speech/input_tag_speech_dispatcher_host.cc
index 32ba964fa07304f180815af5dd0e13e1f4a7796f..14abf5c58d0da0254b012ecae21c1e410c5cfffc 100644
--- a/content/browser/speech/input_tag_speech_dispatcher_host.cc
+++ b/content/browser/speech/input_tag_speech_dispatcher_host.cc
@@ -117,18 +117,18 @@ void InputTagSpeechDispatcherHost::OnStopRecording(int render_view_id,
}
// -------- SpeechRecognitionEventListener interface implementation -----------
-void InputTagSpeechDispatcherHost::OnRecognitionResult(
+void InputTagSpeechDispatcherHost::OnRecognitionResults(
int session_id,
- const SpeechRecognitionResult& result) {
+ const SpeechRecognitionResults& results) {
VLOG(1) << "InputTagSpeechDispatcherHost::OnRecognitionResult enter";
hans 2012/11/28 14:15:35 ultra nit: while here, we might as well update thi
tommi (sloooow) - chröme 2012/11/29 09:30:20 Done.
const SpeechRecognitionSessionContext& context =
manager()->GetSessionContext(session_id);
- Send(new InputTagSpeechMsg_SetRecognitionResult(
+ Send(new InputTagSpeechMsg_SetRecognitionResults(
context.render_view_id,
context.request_id,
- result));
+ results));
VLOG(1) << "InputTagSpeechDispatcherHost::OnRecognitionResult exit";
}

Powered by Google App Engine
This is Rietveld 408576698