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

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

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: mac bot fix. 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
« no previous file with comments | « content/browser/speech/speech_input_manager.h ('k') | content/browser/speech/speech_recognition_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_input_manager.cc
diff --git a/content/browser/speech/speech_input_manager.cc b/content/browser/speech/speech_input_manager.cc
index 5a37ec78a4126f8b5782d841dd72326d6daba4ef..f3f6402fb74afc6bc99d2a997d2868412a4b7acc 100644
--- a/content/browser/speech/speech_input_manager.cc
+++ b/content/browser/speech/speech_input_manager.cc
@@ -119,7 +119,7 @@ void SpeechInputManager::StopRecording(int caller_id) {
}
void SpeechInputManager::SetRecognitionResult(
- int caller_id, bool error, const SpeechInputResultArray& result) {
+ int caller_id, const SpeechInputResult& result) {
DCHECK(HasPendingRequest(caller_id));
GetDelegate(caller_id)->SetRecognitionResult(caller_id, result);
}
@@ -138,8 +138,14 @@ void SpeechInputManager::DidCompleteRecognition(int caller_id) {
DoClose(caller_id);
}
+void SpeechInputManager::DidStartReceivingSpeech(int caller_id) {
+}
+
+void SpeechInputManager::DidStopReceivingSpeech(int caller_id) {
+}
+
void SpeechInputManager::OnRecognizerError(
- int caller_id, SpeechRecognizer::ErrorCode error) {
+ int caller_id, SpeechInputError error) {
if (caller_id == recording_caller_id_)
recording_caller_id_ = 0;
requests_[caller_id].is_active = false;
« no previous file with comments | « content/browser/speech/speech_input_manager.h ('k') | content/browser/speech/speech_recognition_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698