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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaConstraints.h

Issue 1581103002: Use new-style constraints for device selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@constraints-errors
Patch Set: Review comments Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 { 166 {
167 } 167 }
168 168
169 void setExact(const WebString& exact) 169 void setExact(const WebString& exact)
170 { 170 {
171 m_exact.assign(&exact, 1); 171 m_exact.assign(&exact, 1);
172 } 172 }
173 173
174 BLINK_PLATFORM_EXPORT bool matches(WebString value) const; 174 BLINK_PLATFORM_EXPORT bool matches(WebString value) const;
175 BLINK_PLATFORM_EXPORT bool isEmpty() const; 175 BLINK_PLATFORM_EXPORT bool isEmpty() const;
176 BLINK_PLATFORM_EXPORT const WebVector<WebString>& exact() const;
177 BLINK_PLATFORM_EXPORT const WebVector<WebString>& ideal() const;
176 178
177 private: 179 private:
178 WebVector<WebString> m_exact; 180 WebVector<WebString> m_exact;
179 WebVector<WebString> m_ideal; 181 WebVector<WebString> m_ideal;
180 }; 182 };
181 183
182 class BooleanConstraint { 184 class BooleanConstraint {
183 public: 185 public:
184 BooleanConstraint() 186 BooleanConstraint()
185 : m_ideal(false) 187 : m_ideal(false)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 BooleanConstraint googExperimentalEchoCancellation; 237 BooleanConstraint googExperimentalEchoCancellation;
236 BooleanConstraint googAutoGainControl; 238 BooleanConstraint googAutoGainControl;
237 BooleanConstraint googExperimentalAutoGainControl; 239 BooleanConstraint googExperimentalAutoGainControl;
238 BooleanConstraint googNoiseSuppression; 240 BooleanConstraint googNoiseSuppression;
239 BooleanConstraint googHighpassFilter; 241 BooleanConstraint googHighpassFilter;
240 BooleanConstraint googTypingNoiseDetection; 242 BooleanConstraint googTypingNoiseDetection;
241 BooleanConstraint googExperimentalNoiseSuppression; 243 BooleanConstraint googExperimentalNoiseSuppression;
242 BooleanConstraint googBeamforming; 244 BooleanConstraint googBeamforming;
243 StringConstraint googArrayGeometry; 245 StringConstraint googArrayGeometry;
244 BooleanConstraint googAudioMirroring; 246 BooleanConstraint googAudioMirroring;
247 BooleanConstraint googDAEchoCancellation;
248 BooleanConstraint googAecDump;
249 BooleanConstraint googNoiseReduction;
250 StringConstraint offerToReceiveAudio;
251 StringConstraint offerToReceiveVideo;
252 BooleanConstraint voiceActivityDetection;
253 BooleanConstraint iceRestart;
254 BooleanConstraint googUseRtpMux;
255 BooleanConstraint enableDtlsSrtp;
256 BooleanConstraint enableRtpDataChannels;
257 BooleanConstraint enableDscp;
258 BooleanConstraint enableIPv6;
259 BooleanConstraint googEnableVideoSuspendBelowMinBitrate;
260 LongConstraint googNumUnsignalledRecvStreams;
261 BooleanConstraint googCombinedAudioVideoBwe;
262 LongConstraint googScreencastMinBitrate;
263 BooleanConstraint googCpuOveruseDetection;
264 LongConstraint googCpuUnderuseThreshold;
265 LongConstraint googCpuOveruseThreshold;
266 LongConstraint googCpuUnderuseEncodeRsdThreshold;
267 LongConstraint googCpuOveruseEncodeRsdThreshold;
268 BooleanConstraint googCpuOveruseEncodeUsage;
269 LongConstraint googHighStartBitrate;
270 BooleanConstraint googPayloadPadding;
245 271
246 BLINK_PLATFORM_EXPORT bool isEmpty() const; 272 BLINK_PLATFORM_EXPORT bool isEmpty() const;
247 }; 273 };
248 274
249 // Old type/value form of constraint. Will be deprecated. 275 // Old type/value form of constraint. Will be deprecated.
250 struct WebMediaConstraint { 276 struct WebMediaConstraint {
251 WebMediaConstraint() 277 WebMediaConstraint()
252 { 278 {
253 } 279 }
254 280
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 BLINK_PLATFORM_EXPORT const WebMediaTrackConstraintSet& basic() const; 323 BLINK_PLATFORM_EXPORT const WebMediaTrackConstraintSet& basic() const;
298 BLINK_PLATFORM_EXPORT const WebVector<WebMediaTrackConstraintSet>& advanced( ) const; 324 BLINK_PLATFORM_EXPORT const WebVector<WebMediaTrackConstraintSet>& advanced( ) const;
299 325
300 private: 326 private:
301 WebPrivatePtr<WebMediaConstraintsPrivate> m_private; 327 WebPrivatePtr<WebMediaConstraintsPrivate> m_private;
302 }; 328 };
303 329
304 } // namespace blink 330 } // namespace blink
305 331
306 #endif // WebMediaConstraints_h 332 #endif // WebMediaConstraints_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698