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

Unified Diff: chromeos/audio/cras_audio_handler.h

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: Pass VideoCaptureObserver as ctor parameter Created 3 years, 11 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: chromeos/audio/cras_audio_handler.h
diff --git a/chromeos/audio/cras_audio_handler.h b/chromeos/audio/cras_audio_handler.h
index a4f9cc39eb1c86e1f557eee57f94f4924e115ae3..37ecf40147f4fe250b40a1226397a8163411c288 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 "component/arc/video_facing.h"
namespace chromeos {
@@ -28,7 +29,8 @@ class AudioDevicesPrefHandler;
class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
public AudioPrefObserver,
- public SessionManagerClient::Observer {
+ public SessionManagerClient::Observer,
+ public component::VideoCaptureObserver {
public:
typedef std::priority_queue<AudioDevice,
std::vector<AudioDevice>,
@@ -103,6 +105,9 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer,
// Gets the global instance. Initialize must be called first.
static CrasAudioHandler* Get();
+ void OnVideoCaptureStarted(component::VideoFacingMode facing) override;
+ void OnVideoCaptureStopped(component::VideoFacingMode facing) override;
+
// Adds an audio observer.
virtual void AddAudioObserver(AudioObserver* observer);

Powered by Google App Engine
This is Rietveld 408576698