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

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

Issue 9568002: Renamed speech input implementation from to speech_recognition_*. The namespace has been renamed fr… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed nits according to reviewers and renamed x-webkit-speech related stuff to InputTagSpeech*. Created 8 years, 10 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/public/browser/speech_recognizer_delegate.h
diff --git a/content/public/browser/speech_recognizer_delegate.h b/content/public/browser/speech_recognizer_delegate.h
index daf482a12fe02f40cf37170ac65393ff21527cd6..14be40414e81ad2bc7837b0619762d53392b6887 100644
--- a/content/public/browser/speech_recognizer_delegate.h
+++ b/content/public/browser/speech_recognizer_delegate.h
@@ -6,7 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_DELEGATE_H_
#pragma once
-#include "content/public/common/speech_input_result.h"
+#include "content/public/common/speech_recognition_result.h"
namespace content {
@@ -15,7 +15,7 @@ namespace content {
class SpeechRecognizerDelegate {
public:
virtual void SetRecognitionResult(int caller_id,
- const SpeechInputResult& result) = 0;
+ const SpeechRecognitionResult& result) = 0;
// Invoked when the first audio packet was received from the audio capture
// device.
@@ -41,7 +41,8 @@ class SpeechRecognizerDelegate {
// session has already been cancelled when this call is made and the DidXxxx
// callbacks will not be issued. It is safe to destroy/release the
// |SpeechRecognizer| object while processing this call.
- virtual void OnRecognizerError(int caller_id, SpeechInputError error) = 0;
+ virtual void OnRecognizerError(int caller_id,
+ SpeechRecognitionErrorCode error) = 0;
// At the start of recognition, a short amount of audio is recorded to
// estimate the environment/background noise and this callback is issued

Powered by Google App Engine
This is Rietveld 408576698