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

Unified Diff: third_party/WebKit/public/platform/WebMediaStreamTrack.h

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: address review comment 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: third_party/WebKit/public/platform/WebMediaStreamTrack.h
diff --git a/third_party/WebKit/public/platform/WebMediaStreamTrack.h b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
index d9191b721badcf0e80afb731e5014a181312a689..d531fbb760aa246efa2db2721f250de6eefc3882 100644
--- a/third_party/WebKit/public/platform/WebMediaStreamTrack.h
+++ b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
@@ -42,6 +42,8 @@ class WebString;
class WebMediaStreamTrack {
public:
struct Settings {
+ // TODO(hta): b/34118695. Consider to rename it to FacingMode.
jochen (gone - plz use gerrit) 2017/01/11 13:23:27 as a rule of thumb, please never refer to buganize
shenghao 2017/01/12 08:10:49 Done.
+ enum VideoFacingMode { User, Environment, Left, Right };
bool hasFrameRate() { return frameRate >= 0.0; }
bool hasWidth() { return width >= 0; }
bool hasHeight() { return height >= 0; }
@@ -51,6 +53,7 @@ class WebMediaStreamTrack {
long width = -1;
long height = -1;
WebString deviceId;
+ VideoFacingMode facingMode = VideoFacingMode::User;
mcasas 2017/01/11 22:24:59 I made a comment that's possibly lost in the revie
shenghao 2017/01/12 08:10:49 Done.
};
class TrackData {
« media/capture/video_capturer_source.cc ('K') | « media/capture/video_capturer_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698