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

Side by Side Diff: media/base/video_facing.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 unified diff | Download patch
« no previous file with comments | « media/base/BUILD.gn ('k') | media/capture/video/video_capture_device_descriptor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_VIDEO_FACING_H_ 5 #ifndef MEDIA_BASE_VIDEO_FACING_H_
6 #define MEDIA_BASE_VIDEO_FACING_H_ 6 #define MEDIA_BASE_VIDEO_FACING_H_
7 7
8 namespace media { 8 namespace media {
9 9
10 // Facing mode for video capture. 10 // Facing mode for video capture.
11 enum VideoFacingMode { 11 enum VideoFacingMode {
12 MEDIA_VIDEO_FACING_NONE = 0, 12 MEDIA_VIDEO_FACING_NONE = 0,
13 MEDIA_VIDEO_FACING_USER, 13 MEDIA_VIDEO_FACING_USER,
14 MEDIA_VIDEO_FACING_ENVIRONMENT, 14 MEDIA_VIDEO_FACING_ENVIRONMENT,
15 15
16 NUM_MEDIA_VIDEO_FACING_MODE 16 NUM_MEDIA_VIDEO_FACING_MODES
17 };
18
19 // Clients interested in video capture events can implement this interface
20 // and register the observers to MediaStreamManager or VideoCaptureManager.
21 class VideoCaptureObserver {
22 public:
23 virtual ~VideoCaptureObserver() {}
24 virtual void OnVideoCaptureStarted(VideoFacingMode facing) = 0;
25 virtual void OnVideoCaptureStopped(VideoFacingMode facing) = 0;
17 }; 26 };
18 27
19 } // namespace media 28 } // namespace media
20 29
21 #endif // MEDIA_BASE_VIDEO_FACING_H_ 30 #endif // MEDIA_BASE_VIDEO_FACING_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/capture/video/video_capture_device_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698