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

Side by Side Diff: components/arc/video_facing.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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698