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

Unified Diff: content/public/browser/speech_recognition_manager.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: Rebased from master. Created 8 years, 9 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_recognition_manager.h
diff --git a/content/public/browser/speech_input_manager.h b/content/public/browser/speech_recognition_manager.h
similarity index 81%
rename from content/public/browser/speech_input_manager.h
rename to content/public/browser/speech_recognition_manager.h
index 409d5dc3484a56274166dbe7ebcc0172e9b026ed..89651c17a1284c42e4f3a13d68256e58ceab8b1c 100644
--- a/content/public/browser/speech_input_manager.h
+++ b/content/public/browser/speech_recognition_manager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_H_
-#define CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_H_
+#ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
+#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
#include "base/string16.h"
#include "content/common/content_export.h"
@@ -14,10 +14,10 @@ namespace content {
// handles requests received from various render views and makes sure only one
// of them can use speech recognition at a time. It also sends recognition
// results and status events to the render views when required.
-class SpeechInputManager {
+class SpeechRecognitionManager {
public:
// Returns the singleton instance.
- CONTENT_EXPORT static SpeechInputManager* GetInstance();
+ CONTENT_EXPORT static SpeechRecognitionManager* GetInstance();
// Starts/restarts recognition for an existing request.
virtual void StartRecognitionForRequest(int caller_id) = 0;
@@ -33,7 +33,7 @@ class SpeechInputManager {
virtual bool HasAudioInputDevices() = 0;
// Used to determine if something else is currently making use of audio input.
- virtual bool IsRecordingInProcess() = 0;
+ virtual bool IsCapturingAudio() = 0;
// Returns a human readable string for the model/make of the active audio
// input device for this computer.
@@ -44,9 +44,9 @@ class SpeechInputManager {
virtual void ShowAudioInputSettings() = 0;
protected:
- virtual ~SpeechInputManager() {}
+ virtual ~SpeechRecognitionManager() {}
};
} // namespace content
-#endif // CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_H_
+#endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
« no previous file with comments | « content/public/browser/speech_input_preferences.h ('k') | content/public/browser/speech_recognition_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698