Index: content/renderer/speech_input_dispatcher.cc |
diff --git a/content/renderer/speech_input_dispatcher.cc b/content/renderer/speech_input_dispatcher.cc |
index 305521dfba01743083b07e7fb45655abefa5d1b3..46ea51765a76bd405bce4d91d3d4d793e2e2571f 100644 |
--- a/content/renderer/speech_input_dispatcher.cc |
+++ b/content/renderer/speech_input_dispatcher.cc |
@@ -84,11 +84,13 @@ void SpeechInputDispatcher::stopRecording(int request_id) { |
} |
void SpeechInputDispatcher::OnSpeechRecognitionResult( |
- int request_id, const speech_input::SpeechInputResultArray& result) { |
+ int request_id, |
+ const speech_input::SpeechInputResult& result) { |
VLOG(1) << "SpeechInputDispatcher::OnSpeechRecognitionResult enter"; |
- WebKit::WebSpeechInputResultArray webkit_result(result.size()); |
- for (size_t i = 0; i < result.size(); ++i) |
- webkit_result[i].set(result[i].utterance, result[i].confidence); |
+ WebKit::WebSpeechInputResultArray webkit_result(result.hypotheses.size()); |
+ for (size_t i = 0; i < result.hypotheses.size(); ++i) |
Satish
2011/10/04 20:36:33
suggest using braces for multiline for blocks such
Leandro GraciĆ” Gil
2011/10/05 22:09:00
Done.
|
+ webkit_result[i].set(result.hypotheses[i].utterance, |
+ result.hypotheses[i].confidence); |
listener_->setRecognitionResult(request_id, webkit_result); |
VLOG(1) << "SpeechInputDispatcher::OnSpeechRecognitionResult exit"; |
} |