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

Unified Diff: content/public/browser/speech_recognition_event_listener.h

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: sigh Created 8 years 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 | « content/common/speech_recognition_messages.h ('k') | content/public/common/speech_recognition_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/speech_recognition_event_listener.h
diff --git a/content/public/browser/speech_recognition_event_listener.h b/content/public/browser/speech_recognition_event_listener.h
index 6b1495d76a9dddbec3c9d3e9de51ed1d436ac3b3..653bfe74c9dec6ac9d8e7bf494e68fbed1cbf255 100644
--- a/content/public/browser/speech_recognition_event_listener.h
+++ b/content/public/browser/speech_recognition_event_listener.h
@@ -7,11 +7,11 @@
#include "base/basictypes.h"
#include "content/common/content_export.h"
+#include "content/public/common/speech_recognition_result.h"
namespace content {
struct SpeechRecognitionError;
-struct SpeechRecognitionResult;
// The interface to be implemented by consumers interested in receiving
// speech recognition events.
@@ -36,13 +36,13 @@ class CONTENT_EXPORT SpeechRecognitionEventListener {
// Informs that the endpointer has stopped detecting sound (a long silence).
virtual void OnSoundEnd(int session_id) = 0;
- // Invoked when audio capture stops, either due to the endpointer detecting
+ // Invoked when audio capture stops, either due to the endpoint detecting
// silence, an internal error, or an explicit stop was issued.
virtual void OnAudioEnd(int session_id) = 0;
// Invoked when a result is retrieved.
- virtual void OnRecognitionResult(int session_id,
- const SpeechRecognitionResult& result) = 0;
+ virtual void OnRecognitionResults(int session_id,
+ const SpeechRecognitionResults& results) = 0;
// Invoked if there was an error while capturing or recognizing audio.
// The recognition has already been cancelled when this call is made and
« no previous file with comments | « content/common/speech_recognition_messages.h ('k') | content/public/common/speech_recognition_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698