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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_H_
7
8 #include "base/string16.h"
9 #include "content/common/content_export.h"
10
11 namespace content {
12
13 // This is the gatekeeper for speech recognition in the browser process. It
14 // handles requests received from various render views and makes sure only one
15 // of them can use speech recognition at a time. It also sends recognition
16 // results and status events to the render views when required.
17 class SpeechInputManager {
18 public:
19 // Returns the singleton instance.
20 CONTENT_EXPORT static SpeechInputManager* GetInstance();
21
22 // Starts/restarts recognition for an existing request.
23 virtual void StartRecognitionForRequest(int caller_id) = 0;
24
25 // Cancels recognition for an existing request.
26 virtual void CancelRecognitionForRequest(int caller_id) = 0;
27
28 // Called when the user clicks outside the speech input UI causing it to close
29 // and possibly have speech input go to another element.
30 virtual void FocusLostForRequest(int caller_id) = 0;
31
32 // Returns true if the OS reports existence of audio recording devices.
33 virtual bool HasAudioInputDevices() = 0;
34
35 // Used to determine if something else is currently making use of audio input.
36 virtual bool IsRecordingInProcess() = 0;
37
38 // Returns a human readable string for the model/make of the active audio
39 // input device for this computer.
40 virtual string16 GetAudioInputDeviceModel() = 0;
41
42 // Invokes the platform provided microphone settings UI in a non-blocking way,
43 // via the BrowserThread::FILE thread.
44 virtual void ShowAudioInputSettings() = 0;
45
46 protected:
47 virtual ~SpeechInputManager() {}
48 };
49
50 } // namespace content
51
52 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_H_
OLDNEW
« 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