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

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

Issue 1910463002: Implement MediaStreamTrack.getConstraints (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments on layout test Created 4 years, 8 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/UserMediaRequest.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/WebMediaConstraints.h
diff --git a/third_party/WebKit/public/platform/WebMediaConstraints.h b/third_party/WebKit/public/platform/WebMediaConstraints.h
index 49afc70d31ece5428de3a45425abbc0ea88ee77d..b5175e973464936d2135f936efe5eaf1a2e291ac 100644
--- a/third_party/WebKit/public/platform/WebMediaConstraints.h
+++ b/third_party/WebKit/public/platform/WebMediaConstraints.h
@@ -97,6 +97,8 @@ public:
long max() const { return m_max; }
bool hasExact() const { return m_hasExact; }
long exact() const { return m_exact; }
+ bool hasIdeal() const { return m_hasIdeal; }
+ long ideal() const { return m_ideal; }
private:
long m_min;
@@ -152,6 +154,8 @@ public:
double max() const { return m_max; }
bool hasExact() const { return m_hasExact; }
double exact() const { return m_exact; }
+ bool hasIdeal() const { return m_hasIdeal; }
+ double ideal() const { return m_ideal; }
private:
double m_min;
@@ -191,6 +195,7 @@ public:
bool hasMandatory() const override;
WebString toString() const override;
bool hasExact() const { return !m_exact.isEmpty(); }
+ bool hasIdeal() const { return !m_ideal.isEmpty(); }
const WebVector<WebString>& exact() const;
const WebVector<WebString>& ideal() const;
@@ -222,6 +227,7 @@ public:
bool hasMandatory() const override;
WebString toString() const override;
bool hasExact() const { return m_hasExact; }
+ bool hasIdeal() const { return m_hasIdeal; }
private:
unsigned m_ideal : 1;
« no previous file with comments | « third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698