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

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

Issue 2590193002: Add FacingMode to MediaStreamTrack.getSettings() (Closed)
Patch Set: Layout test, with TODO 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
« no previous file with comments | « third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 419bc359298234420a46282e489065c78dfbe2c0..14b69e2b934490b4656f518260e3796fa7541135 100644
--- a/third_party/WebKit/public/platform/WebMediaStreamTrack.h
+++ b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
@@ -41,16 +41,20 @@ class WebString;
class WebMediaStreamTrack {
public:
+ enum class FacingMode { None, User, Environment, Left, Right };
+
struct Settings {
bool hasFrameRate() { return frameRate >= 0.0; }
bool hasWidth() { return width >= 0; }
bool hasHeight() { return height >= 0; }
+ bool hasFacingMode() { return facingMode != FacingMode::None; }
// The variables are read from
// MediaStreamTrack::GetSettings only.
double frameRate = -1.0;
long width = -1;
long height = -1;
WebString deviceId;
+ FacingMode facingMode = FacingMode::None;
};
class TrackData {
« no previous file with comments | « third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698