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

Unified Diff: media/audio/audio_manager.h

Issue 6602012: Adds method to invoke platform provided audio input UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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
« no previous file with comments | « no previous file | media/audio/audio_manager_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager.h
diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h
index 2afc78902f9680a5096390ea04e8a4f483fa76de..370fd8e8e05f8d02d19ace39f68ba3b7407c1e62 100644
--- a/media/audio/audio_manager.h
+++ b/media/audio/audio_manager.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/string16.h"
+#include "base/task.h"
#include "media/audio/audio_parameters.h"
class AudioInputStream;
@@ -34,6 +35,16 @@ class AudioManager {
// input device for this computer.
virtual string16 GetAudioInputDeviceModel() = 0;
+ // Returns true if the platform specific audio input settings UI is known
+ // and can be shown.
+ virtual bool CanShowAudioInputSettings() = 0;
+
+ // Opens the platform default audio input settings UI.
+ // Note: This could invoke an external application/preferences pane, so
+ // ideally must not be called from the UI thread or other time sensitive
+ // threads to avoid blocking the rest of the application.
+ virtual void ShowAudioInputSettings() = 0;
+
// Factory for all the supported stream formats. |params| defines parameters
// of the audio stream to be created.
//
@@ -103,4 +114,6 @@ class AudioManager {
static AudioManager* CreateAudioManager();
};
+DISABLE_RUNNABLE_METHOD_REFCOUNT(AudioManager);
+
#endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
« no previous file with comments | « no previous file | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698