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

Unified Diff: content/public/browser/speech_input_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_input_manager.h
diff --git a/content/public/browser/speech_input_manager.h b/content/public/browser/speech_input_manager.h
deleted file mode 100644
index 409d5dc3484a56274166dbe7ebcc0172e9b026ed..0000000000000000000000000000000000000000
--- a/content/public/browser/speech_input_manager.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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_
-
-#include "base/string16.h"
-#include "content/common/content_export.h"
-
-namespace content {
-
-// This is the gatekeeper for speech recognition in the browser process. It
-// 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 {
- public:
- // Returns the singleton instance.
- CONTENT_EXPORT static SpeechInputManager* GetInstance();
-
- // Starts/restarts recognition for an existing request.
- virtual void StartRecognitionForRequest(int caller_id) = 0;
-
- // Cancels recognition for an existing request.
- virtual void CancelRecognitionForRequest(int caller_id) = 0;
-
- // Called when the user clicks outside the speech input UI causing it to close
- // and possibly have speech input go to another element.
- virtual void FocusLostForRequest(int caller_id) = 0;
-
- // Returns true if the OS reports existence of audio recording devices.
- virtual bool HasAudioInputDevices() = 0;
-
- // Used to determine if something else is currently making use of audio input.
- virtual bool IsRecordingInProcess() = 0;
-
- // Returns a human readable string for the model/make of the active audio
- // input device for this computer.
- virtual string16 GetAudioInputDeviceModel() = 0;
-
- // Invokes the platform provided microphone settings UI in a non-blocking way,
- // via the BrowserThread::FILE thread.
- virtual void ShowAudioInputSettings() = 0;
-
- protected:
- virtual ~SpeechInputManager() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_H_
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/speech_input_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698