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

Unified Diff: chromeos/audio/cras_audio_handler.h

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: Moved to chrome_browser_main_chromeos.cc Created 3 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 | « chromeos/DEPS ('k') | chromeos/audio/cras_audio_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/cras_audio_handler.h
diff --git a/chromeos/audio/cras_audio_handler.h b/chromeos/audio/cras_audio_handler.h
index 1408f061f5d103fc56b55aed917072477056c511..ac8a75687a66f598618fedb618227d695fb78b57 100644
--- a/chromeos/audio/cras_audio_handler.h
+++ b/chromeos/audio/cras_audio_handler.h
@@ -21,6 +21,7 @@
#include "chromeos/dbus/cras_audio_client.h"
#include "chromeos/dbus/session_manager_client.h"
#include "chromeos/dbus/volume_state.h"
+#include "media/base/video_facing.h"
namespace chromeos {
@@ -28,11 +29,12 @@ class AudioDevicesPrefHandler;
class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
public AudioPrefObserver,
- public SessionManagerClient::Observer {
+ public SessionManagerClient::Observer,
+ public media::VideoCaptureObserver {
public:
- typedef std::priority_queue<AudioDevice,
- std::vector<AudioDevice>,
- AudioDeviceCompare> AudioDevicePriorityQueue;
+ typedef std::
+ priority_queue<AudioDevice, std::vector<AudioDevice>, AudioDeviceCompare>
+ AudioDevicePriorityQueue;
typedef std::vector<uint64_t> NodeIdList;
// Volume change reasons that are not user-initiated.
@@ -103,6 +105,10 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
// Gets the global instance. Initialize must be called first.
static CrasAudioHandler* Get();
+ // Overrides media::VideoCaptureObserver.
+ void OnVideoCaptureStarted(media::VideoFacingMode facing) override;
+ void OnVideoCaptureStopped(media::VideoFacingMode facing) override;
+
// Adds an audio observer.
void AddAudioObserver(AudioObserver* observer);
« no previous file with comments | « chromeos/DEPS ('k') | chromeos/audio/cras_audio_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698