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

Unified Diff: chrome/browser/speech/speech_recognizer.cc

Issue 4119004: Add ability to parse multiple recognition results and send them to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move header to chrome/common and address review comments. Created 10 years, 2 months 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
« no previous file with comments | « chrome/browser/speech/speech_recognizer.h ('k') | chrome/browser/speech/speech_recognizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_recognizer.cc
diff --git a/chrome/browser/speech/speech_recognizer.cc b/chrome/browser/speech/speech_recognizer.cc
index 8ad459064ecbea56fc4f5d1e713e5f89dc63ed09..580339a84d4448e834aa644c51030b6d4a435a72 100644
--- a/chrome/browser/speech/speech_recognizer.cc
+++ b/chrome/browser/speech/speech_recognizer.cc
@@ -314,13 +314,14 @@ void SpeechRecognizer::HandleOnData(string* data) {
// here as POST chunks.
}
-void SpeechRecognizer::SetRecognitionResult(bool error, const string16& value) {
- if (value.empty()) {
+void SpeechRecognizer::SetRecognitionResult(
+ bool error, const SpeechInputResultArray& result) {
+ if (result.empty()) {
InformErrorAndCancelRecognition(RECOGNIZER_ERROR_NO_RESULTS);
return;
}
- delegate_->SetRecognitionResult(caller_id_, error, value);
+ delegate_->SetRecognitionResult(caller_id_, error, result);
// Guard against the delegate freeing us until we finish our job.
scoped_refptr<SpeechRecognizer> me(this);
« no previous file with comments | « chrome/browser/speech/speech_recognizer.h ('k') | chrome/browser/speech/speech_recognizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698