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

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

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
Index: chrome/browser/speech/speech_recognizer.h
diff --git a/chrome/browser/speech/speech_recognizer.h b/chrome/browser/speech/speech_recognizer.h
index 7e154acda508d4e8a42d98c5374ecad6e7d6db37..48a73c81922fe8e399eb6189f0950b68baa87d0b 100644
--- a/chrome/browser/speech/speech_recognizer.h
+++ b/chrome/browser/speech/speech_recognizer.h
@@ -36,9 +36,10 @@ class SpeechRecognizer
// Implemented by the caller to receive recognition events.
class Delegate {
public:
- virtual void SetRecognitionResult(int caller_id,
- bool error,
- const string16& value) = 0;
+ virtual void SetRecognitionResult(
+ int caller_id,
+ bool error,
+ const SpeechInputResultArray& result) = 0;
// Invoked when audio recording stops, either due to the end pointer
// detecting silence in user input or if |StopRecording| was called. The
@@ -96,7 +97,7 @@ class SpeechRecognizer
uint32 size);
// SpeechRecognitionRequest::Delegate methods.
- void SetRecognitionResult(bool error, const string16& value);
+ void SetRecognitionResult(bool error, const SpeechInputResultArray& result);
static const int kAudioSampleRate;
static const int kAudioPacketIntervalMs; // Duration of each audio packet.
« no previous file with comments | « chrome/browser/speech/speech_recognition_request_unittest.cc ('k') | chrome/browser/speech/speech_recognizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698