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

Unified Diff: content/browser/speech/speech_input_manager.h

Issue 8137005: Applying changes to the existing speech input code to support the extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review and unit test fixes. Created 9 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: content/browser/speech/speech_input_manager.h
diff --git a/content/browser/speech/speech_input_manager.h b/content/browser/speech/speech_input_manager.h
index c690780f924df4bf7c1faaff7a3587c4c8a7fc45..2a3581b5b79764012466d9fd107b20d72c566ef7 100644
--- a/content/browser/speech/speech_input_manager.h
+++ b/content/browser/speech/speech_input_manager.h
@@ -29,7 +29,7 @@ class CONTENT_EXPORT SpeechInputManager : public SpeechRecognizerDelegate {
public:
virtual void SetRecognitionResult(
int caller_id,
- const SpeechInputResultArray& result) = 0;
+ const SpeechInputResult& result) = 0;
virtual void DidCompleteRecording(int caller_id) = 0;
virtual void DidCompleteRecognition(int caller_id) = 0;
@@ -67,17 +67,21 @@ class CONTENT_EXPORT SpeechInputManager : public SpeechRecognizerDelegate {
virtual void CancelAllRequestsWithDelegate(Delegate* delegate);
virtual void StopRecording(int caller_id);
- // SpeechRecognizer::Delegate methods.
+ // SpeechRecognizerDelegate methods.
virtual void DidStartReceivingAudio(int caller_id);
Satish 2011/10/06 09:09:06 OVERRIDE
Leandro GraciĆ” Gil 2011/10/06 18:26:25 Done.
virtual void SetRecognitionResult(int caller_id,
bool error,
- const SpeechInputResultArray& result);
- virtual void DidCompleteRecording(int caller_id);
- virtual void DidCompleteRecognition(int caller_id);
+ const SpeechInputResult& result) OVERRIDE;
+ virtual void DidCompleteRecording(int caller_id) OVERRIDE;
+ virtual void DidCompleteRecognition(int caller_id) OVERRIDE;
+ virtual void DidStartReceivingSpeech(int caller_id) OVERRIDE;
+ virtual void DidStopReceivingSpeech(int caller_id) OVERRIDE;
+
virtual void OnRecognizerError(int caller_id,
- SpeechRecognizer::ErrorCode error);
- virtual void DidCompleteEnvironmentEstimation(int caller_id);
- virtual void SetInputVolume(int caller_id, float volume, float noise_volume);
+ SpeechInputError error) OVERRIDE;
+ virtual void DidCompleteEnvironmentEstimation(int caller_id) OVERRIDE;
+ virtual void SetInputVolume(int caller_id, float volume,
+ float noise_volume) OVERRIDE;
protected:
// The pure virtual methods are used for displaying the current state of
@@ -113,7 +117,7 @@ class CONTENT_EXPORT SpeechInputManager : public SpeechRecognizerDelegate {
// Called when there has been a error with the recognition.
virtual void ShowRecognizerError(int caller_id,
- SpeechRecognizer::ErrorCode error) = 0;
+ SpeechInputError error) = 0;
// Called when recognition has ended or has been canceled.
virtual void DoClose(int caller_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698