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

Unified Diff: media/base/video_facing.h

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: refactor to pass VideoCaptureObserver in setters, not in ctor 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: media/base/video_facing.h
diff --git a/media/base/video_facing.h b/media/base/video_facing.h
index 9bd0b50e0a52421c1bc14af77c02d9a3f83c534d..388aabea4fba992ff6977b386866761cebecafd1 100644
--- a/media/base/video_facing.h
+++ b/media/base/video_facing.h
@@ -5,6 +5,10 @@
#ifndef MEDIA_BASE_VIDEO_FACING_H_
#define MEDIA_BASE_VIDEO_FACING_H_
+#if defined(OS_CHROMEOS)
+#include "chromeos/audio/cras_audio_handler.h"
chfremer1 2017/01/25 18:13:44 I am not familiar with the dependency structures a
shenghao 2017/01/29 10:21:02 Yes, as you can see in https://cs.chromium.org/chr
+#endif
+
namespace media {
// Facing mode for video capture.
@@ -16,6 +20,21 @@ enum VideoFacingMode {
NUM_MEDIA_VIDEO_FACING_MODE
};
+class VideoCaptureObserver {
chfremer1 2017/01/25 18:13:44 It would be cleaner (and make our life easier in t
shenghao 2017/01/29 10:21:02 Done.
+ public:
+#if defined(OS_CHROMEOS)
+ VideoCaptureObserver(chromeos::VideoCaptureObserver* observer);
+#endif
+ VideoCaptureObserver();
+ void OnVideoCaptureStarted(VideoFacingMode facing);
+ void OnVideoCaptureStopped(VideoFacingMode facing);
+
+#if defined(OS_CHROMEOS)
+ private:
+ chromeos::VideoCaptureObserver* const observer_;
+#endif
+};
+
} // namespace media
#endif // MEDIA_BASE_VIDEO_FACING_H_

Powered by Google App Engine
This is Rietveld 408576698