OLD | NEW |
---|---|
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, |
satorux1
2017/02/14 00:58:45
random idea: I'm not familiar with the terminology
shenghao
2017/02/15 03:00:38
We want to use the same terms as in https://cs.chr
| |
15 | 15 |
16 NUM_MEDIA_VIDEO_FACING_MODE | 16 NUM_MEDIA_VIDEO_FACING_MODE |
satorux1
2017/02/14 00:58:45
nit: Add 'S' at the end?
shenghao
2017/02/15 03:00:38
Done.
| |
17 }; | 17 }; |
18 | 18 |
19 class VideoCaptureObserver { | |
satorux1
2017/02/14 00:58:45
class comment is missing. I think it'd be good to
shenghao
2017/02/15 03:00:38
Done.
| |
20 public: | |
21 virtual ~VideoCaptureObserver() {} | |
22 virtual void OnVideoCaptureStarted(VideoFacingMode facing) = 0; | |
23 virtual void OnVideoCaptureStopped(VideoFacingMode facing) = 0; | |
24 }; | |
25 | |
19 } // namespace media | 26 } // namespace media |
20 | 27 |
21 #endif // MEDIA_BASE_VIDEO_FACING_H_ | 28 #endif // MEDIA_BASE_VIDEO_FACING_H_ |
OLD | NEW |