OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_ARC_VIDEO_FACING_H_ | |
6 #define COMPONENTS_ARC_VIDEO_FACING_H_ | |
7 | |
8 namespace component { | |
9 | |
10 enum VideoFacingMode { | |
chfremer
2017/01/20 18:23:52
Can we make this an enum class?
shenghao
2017/01/24 12:52:00
Done.
| |
11 NONE = 0, | |
chfremer
2017/01/20 18:23:52
Why is this entry needed and what does it mean?
shenghao
2017/01/24 12:52:00
This enum should have 1-1 mapping from VideoFacing
| |
12 // Video device is facing the user. I.e. front camera. | |
13 USER, | |
14 // Video device is facing the environment. I.e. back camera. | |
15 ENVIRONMENT | |
16 }; | |
chfremer
2017/01/20 18:23:52
Thinking about convertible devices, could it happe
shenghao
2017/01/24 12:52:00
Yeah I am aware of the convertibles. However I sti
| |
17 | |
18 class VideoCaptureObserver { | |
19 public: | |
20 virtual void OnVideoCaptureStarted(VideoFacingMode facing) = 0; | |
21 virtual void OnVideoCaptureStopped(VideoFacingMode facing) = 0; | |
22 }; | |
23 | |
24 } | |
25 | |
26 #endif // COMPONENTS_ARC_VIDEO_FACING_H_ | |
27 | |
OLD | NEW |