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

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

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: Created 3 years, 10 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 14b69e2b934490b4656f518260e3796fa7541135..af40b537cc363b7bb7b52e73426042a7feb47f2c 100644
--- a/third_party/WebKit/public/platform/WebMediaStreamTrack.h
+++ b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
@@ -48,6 +48,7 @@ class WebMediaStreamTrack {
bool hasWidth() { return width >= 0; }
bool hasHeight() { return height >= 0; }
bool hasFacingMode() { return facingMode != FacingMode::None; }
+ bool hasVideoKind() { return !videoKind.isNull(); }
kinuko 2017/02/07 04:55:49 nit: all of these could be const methods
aleksandar.stojiljkovic 2017/02/07 11:33:49 Done.
// The variables are read from
// MediaStreamTrack::GetSettings only.
double frameRate = -1.0;
@@ -55,6 +56,8 @@ class WebMediaStreamTrack {
long height = -1;
WebString deviceId;
FacingMode facingMode = FacingMode::None;
+ // Media Capture Depth Stream Extensions.
+ WebString videoKind;
};
class TrackData {

Powered by Google App Engine
This is Rietveld 408576698