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

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

Issue 2645613005: MediaStreamTrack: Add echo-cancellation and device-id to getSettings (Closed)
Patch Set: 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 419bc359298234420a46282e489065c78dfbe2c0..0e5d291e468626618482e4e598fdd84a91ac27e4 100644
--- a/third_party/WebKit/public/platform/WebMediaStreamTrack.h
+++ b/third_party/WebKit/public/platform/WebMediaStreamTrack.h
@@ -45,12 +45,21 @@ class WebMediaStreamTrack {
bool hasFrameRate() { return frameRate >= 0.0; }
bool hasWidth() { return width >= 0; }
bool hasHeight() { return height >= 0; }
+ bool hasEchoCancellation() { return m_hasEchoCancellation; }
// The variables are read from
// MediaStreamTrack::GetSettings only.
double frameRate = -1.0;
long width = -1;
long height = -1;
WebString deviceId;
+ bool echoCancellation = false;
+ void setEchoCancellation(bool value) {
+ m_hasEchoCancellation = true;
+ echoCancellation = value;
+ }
+
+ private:
+ bool m_hasEchoCancellation = false;
Guido Urdaneta 2017/01/19 15:28:06 Given that this has private fields now, change to
};
class TrackData {

Powered by Google App Engine
This is Rietveld 408576698